From 5017ff8d25cbcddc7fd8bc75f7ca30e937483b30 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 18 Apr 2020 00:02:01 +0800 Subject: [PATCH] update --- _config.yml | 2 +- source/css/_base/index.styl | 2 +- source/css/_defines/fonts.styl | 3 ++- source/css/_highlight/index.styl | 5 ++--- source/css/_layout/article.styl | 4 ++-- source/css/_tag-plugins/folding.styl | 3 ++- source/css/_tag-plugins/tabs.styl | 2 +- 7 files changed, 11 insertions(+), 10 deletions(-) diff --git a/_config.yml b/_config.yml index e771452..3f0f2be 100755 --- a/_config.yml +++ b/_config.yml @@ -1,7 +1,7 @@ ############################### Theme Information ############################### info: name: Volantis # This is theme's name, not your blog's name. - version: '2.6.1' # This is theme's version. + version: '2.6.2' # This is theme's version. docs: https://volantis.js.org/ # This is theme's URL. cdn: css: diff --git a/source/css/_base/index.styl b/source/css/_base/index.styl index 9e7d969..debdbea 100644 --- a/source/css/_base/index.styl +++ b/source/css/_base/index.styl @@ -250,7 +250,7 @@ table td,th padding: 6px 16px border: 2px solid darken($color-block, 2) - line-height: 1.5 + line-height: $lineheight-fixed font-size: 90% tr word-break: keep-all diff --git a/source/css/_defines/fonts.styl b/source/css/_defines/fonts.styl index 98633ed..7ea8e55 100644 --- a/source/css/_defines/fonts.styl +++ b/source/css/_defines/fonts.styl @@ -52,7 +52,8 @@ $fontsize-code = convert(hexo-config('style.fontsize.code')) || .8125rem // 13p $fontsize-footnote = convert(hexo-config('style.fontsize.footnote')) || .75rem // the smallest (12px) // line-height -$lineheight = hexo-config('style.gap.line_height') || 2 +$lineheight = hexo-config('style.gap.line_height') || 1.75 +$lineheight-fixed = 1.5 $fontsize-large = 3rem $fontsize-huge = 4rem diff --git a/source/css/_highlight/index.styl b/source/css/_highlight/index.styl index d41df76..e470b04 100644 --- a/source/css/_highlight/index.styl +++ b/source/css/_highlight/index.styl @@ -77,7 +77,7 @@ pre font-family: $fontfamily-code border-radius: $border-codeblock border: 1px solid darken($color-codeblock, 6) - line-height: 1.5 + line-height: $lineheight-fixed trans() figcaption position: sticky @@ -93,7 +93,7 @@ pre td,th padding: 0 border: none - line-height: 1.5 + line-height: $lineheight-fixed margin: 0 background-color: transparent border: none @@ -205,7 +205,6 @@ $hl-amber = #FD8607 $hl-text = alpha($color-text, .9) .highlight pre // 行 - // line-height: 1.5 .line,.params color: $hl-text diff --git a/source/css/_layout/article.styl b/source/css/_layout/article.styl index a852b1e..1f96932 100644 --- a/source/css/_layout/article.styl +++ b/source/css/_layout/article.styl @@ -6,7 +6,7 @@ >a,>p>a,blockquote a,div.note a underline() >ul>li,>ol>li,tbody tr td - >a + >a,>p>a underline() div.tab-pane >p,li @@ -242,7 +242,7 @@ font-size: $fontsize-meta figure font-size: 13px - line-height: 1.6em + line-height: $lineheight-fixed .widget diff --git a/source/css/_tag-plugins/folding.styl b/source/css/_tag-plugins/folding.styl index af732a3..5fae68f 100644 --- a/source/css/_tag-plugins/folding.styl +++ b/source/css/_tag-plugins/folding.styl @@ -15,6 +15,7 @@ details font-size: $fontsize-meta font-weight: bold position: relative + line-height: $lineheight-fixed > p,h1,h2,h3,h4,h5,h6 display: inline @@ -92,7 +93,7 @@ details[open] margin: 0 - $gap margin-top: 0 > - p,.tabs,ul,ol,.highlight,.note,.fancybox + p,.tabs,ul,ol,.highlight,.note,.fancybox,details &:first-child margin-top: 0 &:last-child diff --git a/source/css/_tag-plugins/tabs.styl b/source/css/_tag-plugins/tabs.styl index 5188db2..929c5a7 100644 --- a/source/css/_tag-plugins/tabs.styl +++ b/source/css/_tag-plugins/tabs.styl @@ -24,7 +24,7 @@ div.tabs padding: 8px 8px 0 8px background: $color-block border-radius: $tbr $tbr 0 0 - line-height: 1.5 + line-height: $lineheight-fixed li.tab list-style-type: none margin-top: 0