label: 3.2.0

fix: 修復當hexo的_config沒有設置description時,會導致pjax在頁面與文章間切換會無效 close #381
improvement: 當隱藏部分沒配置時,左下角設置按鈕會消失 #353
improvement: 網站背景可配置 (顏色(HEX值/RGB值/顔色單詞/漸變色)/漸變色/圖片鏈接)
improvement: 夜間模式下,背景顔色/top-img/footer-bg 設置為顔色時,不再強制顯示黑色,而是改為遮罩降低亮度
This commit is contained in:
Jerry
2020-09-28 21:55:47 +08:00
Unverified
parent d5670e25e4
commit de11040293
11 changed files with 86 additions and 95 deletions

View File

@@ -2,7 +2,6 @@
position: relative
width: 100%
background-color: $light-blue
background-attachment: scroll
background-position: center center
background-size: cover
background-repeat: no-repeat

View File

@@ -28,21 +28,15 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
--reward-pop: lighten(#121212, 10)
--sidebar-icon-color: alpha(#FFFFFF, .7)
// footer
#web_bg[data-type=color]
background: darken(#121212, 2)
#web_bg[data-type=photo]:before
#web_bg:before,
#footer:before,
#page-header:before
position: absolute
width: 100%
height: 100%
background-color: alpha($dark-black, .7)
content: ''
#footer
&:before
background-color: alpha($dark-black, .7)
#article-container
code
background: #2c2c2c
@@ -56,16 +50,6 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
//
#page-header
&:before
position: absolute
top: 0
left: 0
display: block
width: 100%
height: 100%
background-color: alpha($dark-black, .7)
content: ''
& > #nav.fixed,
&.no-top-img #nav
background: alpha(#121212, .8)
@@ -165,5 +149,6 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
#artitalk_main #lazy
background: #121212
#operare_artitalk .c2
background: #121212

View File

@@ -32,7 +32,7 @@ $code-font-size = hexo-config('font.code-font-size') ? convert(hexo-config('font
$font-color = #1F2D3D
$rem = 20px
$text-line-height = 2
$web-bg = hexo-config('background') && convert(hexo-config('background'))
$web-bg = hexo-config('background') && unquote(hexo-config('background'))
$index_top_img_height = hexo-config('index_top_img_height') ? convert(hexo-config('index_top_img_height')) : 100vh
$index_site_info_top = hexo-config('index_site_info_top') ? convert(hexo-config('index_site_info_top')) : 43%
// Global color & SVG