diff --git a/_config.yml b/_config.yml index d3e17b0..1a1b290 100644 --- a/_config.yml +++ b/_config.yml @@ -620,10 +620,10 @@ subtitle: loop: true # source調用第三方服務 # source: false 關閉調用 - # source: 1 調用搏天api的隨機語錄(簡體) https://api.btstu.cn/ - # source: 2 調用一言網的一句話(簡體) https://hitokoto.cn/ - # source: 3 調用一句網(簡體) http://yijuzhan.com/ - # source: 4 調用今日詩詞(簡體) https://www.jinrishici.com/ + # source: 1 調用搏天api的隨機語錄(簡體) + # source: 2 調用一言網的一句話(簡體) + # source: 3 調用一句網(簡體) + # source: 4 調用今日詩詞(簡體) # subtitle 會先顯示 source , 再顯示 sub 的內容 source: false # 如果有英文逗號' , ',請使用轉義字元 , diff --git a/layout/includes/header/post-info.pug b/layout/includes/header/post-info.pug index 0aafd66..7e2d4c1 100644 --- a/layout/includes/header/post-info.pug +++ b/layout/includes/header/post-info.pug @@ -2,7 +2,7 @@ h1.post-title= page.title || _p('no_title') if theme.post_edit.enable a.post-edit-link(href=theme.post_edit.url + page.source title=_p('post.edit') target="_blank") - i.fa.fa-pen-nib + i.fas.fa-pencil-alt #post-meta .meta-firstline diff --git a/package.json b/package.json index f98960d..3ae4979 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-butterfly", - "version": "3.6.0-b7", + "version": "3.6.0", "description": "A Simple and Card UI Design theme for Hexo", "main": "package.json", "scripts": { @@ -20,13 +20,13 @@ }, "bugs": { "url": "https://github.com/jerryc127/hexo-theme-butterfly/issues", - "email": "wong@jerryc.me" + "email": "btf@immyw.com" }, "dependencies": { "hexo-renderer-stylus": "^2.0.1", "hexo-renderer-pug": "^1.0.0" }, "homepage": "https://butterfly.js.org/", - "author": "Jerry ", + "author": "Jerry ", "license": "Apache-2.0" } diff --git a/source/css/_global/index.styl b/source/css/_global/index.styl index d06931e..71fc5f1 100644 --- a/source/css/_global/index.styl +++ b/source/css/_global/index.styl @@ -27,6 +27,8 @@ --blockquote-bg: $blockquote-background-color --reward-pop: $reward-pop-up-bg --toc-link-color: $toc-link-color + --card-box-shadow: 0 3px 8px 6px rgba(7, 17, 27, .06) + --card-hover-box-shadow: 0 3px 8px 6px rgba(7, 17, 27, .15) html height: 100% diff --git a/source/css/_layout/404.styl b/source/css/_layout/404.styl index e7cedcb..e9a8610 100644 --- a/source/css/_layout/404.styl +++ b/source/css/_layout/404.styl @@ -18,7 +18,11 @@ if hexo-config('error_404.enable') height: 18rem border-radius: 8px background: var(--card-bg) - box-shadow: 0 4px 8px 6px rgba(7, 17, 27, .06) + box-shadow: var(--card-box-shadow) + transition: all .3s + + &:hover + box-shadow: var(--card-hover-box-shadow) +maxWidth768() flex-direction: column @@ -45,6 +49,7 @@ if hexo-config('error_404.enable') padding: .5rem text-align: center font-size: 14px + if $site-name-font font-family: $site-name-font diff --git a/source/css/_layout/aside.styl b/source/css/_layout/aside.styl index e73f941..cee1701 100644 --- a/source/css/_layout/aside.styl +++ b/source/css/_layout/aside.styl @@ -23,11 +23,11 @@ padding: 1rem 1.2rem border-radius: 8px background: var(--card-bg) - box-shadow: 0 4px 8px 6px rgba(7, 17, 27, .06) + box-shadow: var(--card-box-shadow) transition: box-shadow .3s &:hover - box-shadow: 0 4px 12px 12px rgba(7, 17, 27, .15) + box-shadow: var(--card-hover-box-shadow) if hexo-config('aside.mobile') == false +maxWidth768() diff --git a/source/css/_page/common.styl b/source/css/_page/common.styl index d60e178..5868fb9 100644 --- a/source/css/_page/common.styl +++ b/source/css/_page/common.styl @@ -18,10 +18,10 @@ padding: 50px 40px border-radius: 8px background: var(--card-bg) - box-shadow: 0 4px 8px 6px rgba(7, 17, 27, .06) + box-shadow: var(--card-box-shadow) &:hover - box-shadow: 0 4px 12px 12px rgba(7, 17, 27, .15) + box-shadow: var(--card-hover-box-shadow) +maxWidth768() padding: 1.8rem .7rem !important diff --git a/source/css/_page/homepage.styl b/source/css/_page/homepage.styl index e9ddf6e..7d10e3e 100644 --- a/source/css/_page/homepage.styl +++ b/source/css/_page/homepage.styl @@ -9,14 +9,14 @@ height: 20em border-radius: 12px 8px 8px 12px background: var(--card-bg) - box-shadow: 0 4px 8px 6px rgba(7, 17, 27, .06) + box-shadow: var(--card-box-shadow) transition: all .3s +maxWidth768() border-radius: 12px 12px 8px 8px &:hover - box-shadow: 0 4px 12px 12px rgba(7, 17, 27, .15) + box-shadow: var(--card-hover-box-shadow) img.post_bg transform: scale(1.1)