Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoxuu committed Mar 13, 2020
1 parent 2ed3712 commit 5c9651e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 49 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ info:
version: '2.1.4'
docs: https://volantis.js.org/
cdn: # To use CDN, write 'use_cdn: true' in 'blog/_config.yml'.
css: https://cdn.jsdelivr.net/gh/xaoxuu/[email protected].1/css/style.css
css: https://cdn.jsdelivr.net/gh/xaoxuu/[email protected].3/css/style.css
js: https://cdn.jsdelivr.net/gh/xaoxuu/[email protected]/js/app.js


Expand Down
97 changes: 49 additions & 48 deletions source/css/_layout/article.styl
Original file line number Diff line number Diff line change
Expand Up @@ -93,53 +93,6 @@
&:active
color: darken($color-hover, 25%)

h1,h2,h3,h4,h5,h6
position: relative
pointer-events: none
&:before
content: ''
display: block
margin-top: 0 - $navbar-height - 2 * $gap
height: $navbar-height + 2 * $gap
visibility: hidden
pointer-events: none
&:first-child
margin-top: 0
padding-top: 0
&.title
left: 0
&:before
content: none
h1,h2
&:before
margin-top: $gap-h2 - $navbar-height - 2 * $gap
padding-bottom: .2em
border-bottom: 1px solid alpha($color-text, 10%)
h1
text-align: $textalign-h1
color: $color-h1
h2
text-align: $textalign-h2
color: $color-h2
h3
&:before
margin-top: $gap-h3 - $navbar-height - 2 * $gap
text-align: $textalign-h3
color: $color-h3
h4
&:before
margin-top: $gap-h4 - $navbar-height - 2 * $gap
text-align: $textalign-h4
margin-bottom: $gap-line
color: $color-h4
h5
font-weight: bold
margin-bottom: $gap-line
color: $color-h5
h6
margin-bottom: $gap-line
color: $color-h6


.subtitle
h6
Expand Down Expand Up @@ -251,7 +204,6 @@

&:active
box-shadow: none

header
padding: $gap * 0.25 .6em
padding-bottom: 0
Expand Down Expand Up @@ -305,6 +257,55 @@
.widget-blur
backdrop-filter: none

.article .article-entry>
h1,h2,h3,h4,h5,h6
position: relative
pointer-events: none
&:before
content: ''
display: block
margin-top: 0 - $navbar-height - 2 * $gap
height: $navbar-height + 2 * $gap
visibility: hidden
pointer-events: none
&:first-child
margin-top: 0
padding-top: 0
&.title
left: 0
&:before
content: none
h1,h2
&:before
margin-top: $gap-h2 - $navbar-height - 2 * $gap
padding-bottom: .2em
border-bottom: 1px solid alpha($color-text, 10%)
h1
text-align: $textalign-h1
color: $color-h1
h2
text-align: $textalign-h2
color: $color-h2
h3
&:before
margin-top: $gap-h3 - $navbar-height - 2 * $gap
text-align: $textalign-h3
color: $color-h3
h4
&:before
margin-top: $gap-h4 - $navbar-height - 2 * $gap
text-align: $textalign-h4
margin-bottom: $gap-line
color: $color-h4
h5
font-weight: bold
margin-bottom: $gap-line
color: $color-h5
h6
margin-bottom: $gap-line
color: $color-h6


article .readmore>a
font-size: $fontsize-meta
&:hover
Expand Down

0 comments on commit 5c9651e

Please sign in to comment.