From 5c9651e7214c71dcd713479edaa014e57a7d0b7c Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 14 Mar 2020 00:45:43 +0800 Subject: [PATCH] update --- _config.yml | 2 +- source/css/_layout/article.styl | 97 +++++++++++++++++---------------- 2 files changed, 50 insertions(+), 49 deletions(-) diff --git a/_config.yml b/_config.yml index d0e3551fe..fcdb52b53 100755 --- a/_config.yml +++ b/_config.yml @@ -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/cdn-volantis@2.1.4.1/css/style.css + css: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-volantis@2.1.4.3/css/style.css js: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-volantis@2.1.4/js/app.js diff --git a/source/css/_layout/article.styl b/source/css/_layout/article.styl index 844da6be2..1eda79c90 100644 --- a/source/css/_layout/article.styl +++ b/source/css/_layout/article.styl @@ -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 @@ -251,7 +204,6 @@ &:active box-shadow: none - header padding: $gap * 0.25 .6em padding-bottom: 0 @@ -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