feat: note 標籤優化(可自定義icon圖標/可覆蓋配置中的style)

feat: 增加部分特效 Mobile設置(activate_power_mode/fireworks/click_heart/ClickShowText)
feat: aside 分類 收縮/展開 增加slide效果
improvement: 更改canvas_ribbon_piao 為 canvas_fluttering_ribbon
improvement: darkmode 字體顔色加深
improvement: 優化nav的進入,應該修復一些用户在本地測試中無法顯示nav的bugs
improvement: 部分css和html優化
fix: 修復鼠標點擊文字特效,文字過長導致頁面有滾動條的bugs
remove: 移除anime js, 集成在fireworks的js裏
remove: 刪除特效js,改為cdn引入
This commit is contained in:
Jerry
2020-09-12 02:44:57 +08:00
Unverified
parent 92b39ff515
commit 554d05d576
23 changed files with 144 additions and 856 deletions

View File

@@ -226,6 +226,10 @@ _:future,
#menus
padding-right: 0 !important
&.show
opacity: 1
animation: headerNoOpacity 1s
#blog_name
flex: 1

View File

@@ -1,32 +1,32 @@
if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
[data-theme='dark']
--global-bg: darken(#121212, 2)
--font-color: alpha(#FFFFFF, .6)
--hr-border: alpha(#FFFFFF, .3)
--hr-before-color: alpha(#FFFFFF, .6)
--font-color: alpha(#FFFFFF, .7)
--hr-border: alpha(#FFFFFF, .4)
--hr-before-color: alpha(#FFFFFF, .7)
--search-bg: #121212
--search-input-color: alpha(#FFFFFF, .6)
--search-result-title: alpha(#FFFFFF, .8)
--search-input-color: alpha(#FFFFFF, .7)
--search-result-title: alpha(#FFFFFF, .9)
--preloader-bg: darken(#121212, 2)
--preloader-color: alpha(#FFFFFF, .6)
--preloader-color: alpha(#FFFFFF, .7)
--tab-border-color: #2c2c2c
--tab-botton-bg: #2c2c2c
--tab-botton-color: alpha(#FFFFFF, .6)
--tab-botton-color: alpha(#FFFFFF, .7)
--tab-button-hover-bg: lighten(#121212, 15)
--tab-button-active-bg: #121212
--card-bg: #121212
--sidebar-bg: #121212
--btn-hover-color: lighten(#121212, 40)
--btn-color: alpha(#FFFFFF, .6)
--btn-color: alpha(#FFFFFF, .7)
--btn-bg: lighten(#121212, 5)
--text-bg-hover: lighten(#121212, 15)
--light-grey: alpha(#FFFFFF, .6)
--white: alpha(#FFFFFF, .8)
--text-highlight-color: alpha(#FFFFFF, .8)
--blockquote-color: alpha(#FFFFFF, .6)
--light-grey: alpha(#FFFFFF, .7)
--white: alpha(#FFFFFF, .9)
--text-highlight-color: alpha(#FFFFFF, .9)
--blockquote-color: alpha(#FFFFFF, .7)
--blockquote-bg: lighten(#121212, 10)
--reward-pop: lighten(#121212, 10)
--sidebar-icon-color: alpha(#FFFFFF, .6)
--sidebar-icon-color: alpha(#FFFFFF, .7)
// footer
#web_bg[data-type=color]
@@ -76,7 +76,7 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
pre,
.highlight:not(.js-file-line-container)
background-color: lighten(#121212, 2) !important
color: alpha(#FFFFFF, .6) !important
color: alpha(#FFFFFF, .7) !important
figure.highlight
box-shadow: none
@@ -86,7 +86,7 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
background: lighten(#121212, 5)
.line:before
color: alpha(#FFFFFF, .6) !important
color: alpha(#FFFFFF, .7) !important
.hljs
background-color: lighten(#121212, 2) !important
@@ -104,12 +104,12 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
background: #2c2c2c !important
label
filter: brightness(.7)
filter: brightness(.8)
// note
if hexo-config('note.style') == 'modern' || hexo-config('note.style') == 'flat'
.note
filter: brightness(.7)
filter: brightness(.8)
// hide-tags
.hide-button,
@@ -121,7 +121,7 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
img,
.gist,
.aplayer
filter: brightness(.7)
filter: brightness(.8)
#aside_content .aside-list > .aside-list-item:not(:last-child)
border-bottom: 1px dashed alpha(#FFFFFF, .1)
@@ -131,7 +131,7 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
#hexo-blog-encrypt
label,
input
color: alpha(#FFFFFF, .6) !important
color: alpha(#FFFFFF, .7) !important
input
background-color: #121212
@@ -141,24 +141,24 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
filter: brightness(.8)
svg
fill: alpha(#FFFFFF, .8) !important
fill: alpha(#FFFFFF, .9) !important
// Disqus and Disqusjs
#disqus_thread
#dsqjs
.dsqjs-tab-active,
.dsqjs-no-comment
color: alpha(#FFFFFF, .6)
color: alpha(#FFFFFF, .7)
.dsqjs-order-label
background-color: lighten(#121212, 5)
.dsqjs-post-body
color: alpha(#FFFFFF, .6)
color: alpha(#FFFFFF, .7)
code,
pre
background: #2c2c2c
blockquote
color: alpha(#FFFFFF, .6)
color: alpha(#FFFFFF, .7)

View File

@@ -32,9 +32,9 @@
&:hover
text-decoration: none
for $type in $btn-types
for $type in $tagsP-types
&.{$type}
background-color: lookup('$btn-' + $type + '-color')
background-color: lookup('$tagsP-' + $type + '-color')
&.outline
border: 1px solid transparent
@@ -49,10 +49,10 @@
&:hover
color: white !important
for $type in $btn-types
for $type in $tagsP-types
&.{$type}
border-color: lookup('$btn-' + $type + '-color')
color: lookup('$btn-' + $type + '-color')
border-color: lookup('$tagsP-' + $type + '-color')
color: lookup('$tagsP-' + $type + '-color')
&.button--animated:before
background: lookup('$btn-' + $type + '-color')
background: lookup('$tagsP-' + $type + '-color')

View File

@@ -1,28 +1,51 @@
.note
$note-icons = hexo-config('note.icons')
$note-style = hexo-config('note.style')
position: relative
margin: 0 0 1rem
padding: 15px
if ($note-style == 'simple')
if hexo-config('note.border_radius') is a 'unit'
border-radius: unit(hexo-config('note.border_radius'), px)
&.icon
padding-left: 2.25rem
& > .note-icon
position: absolute
top: calc(50% - .4rem)
left: .7rem
font-size: larger
for $type in $tagsP-types
&.{$type}
&:not(.disabled)
border-left-color: lookup('$tagsP-' + $type + '-color') !important
&.modern
border-left-color: transparent !important
color: lookup('$tagsP-' + $type + '-color')
&:not(.simple)
background: lighten(lookup('$tagsP-' + $type + '-color'), 80%) !important
& > .note-icon
color: lookup('$tagsP-' + $type + '-color')
&.simple
border: 1px solid #EEEEEE
border-left-width: 5px
if ($note-style == 'modern')
border: 1px solid transparent
&.modern
border: 1px solid transparent !important
background-color: #f5f5f5
color: $font-black
if ($note-style == 'flat')
&.flat
border: initial
border-left: 5px solid #EEEEEE
background-color: lighten(#EEEEEE, 65%)
color: $font-black
if hexo-config('note.border_radius') is a 'unit'
border-radius: unit(hexo-config('note.border_radius'), px)
h2,
h3,
h4,
@@ -52,21 +75,21 @@
if $note-icons
&:not(.no-icon)
padding-left: 45px
padding-left: 2.25rem
&::before
position: absolute
top: 13px
left: 15px
top: calc(50% - .8rem)
left: .7rem
font-size: larger
@extend .fontawesomeIcon
for $type in $note-types
&.{$type}
if ($note-style == 'flat')
&.flat
background: lookup('$note-' + $type + '-bg')
if ($note-style == 'modern')
&.modern
border-color: lookup('$note-modern-' + $type + '-border')
background: lookup('$note-modern-' + $type + '-bg')
color: lookup('$note-modern-' + $type + '-text')
@@ -78,7 +101,7 @@
&:hover
color: lookup('$note-modern-' + $type + '-hover')
if ($note-style != 'modern')
&:not(.modern)
border-left-color: lookup('$note-' + $type + '-border')
h2,
@@ -89,8 +112,10 @@
color: lookup('$note-' + $type + '-text')
if $note-icons
&:not(.no-icon)::before
content: lookup('$note-' + $type + '-icon')
&:not(.no-icon)
&::before
content: lookup('$note-' + $type + '-icon')
if ($note-style != 'modern')
color: lookup('$note-' + $type + '-text')
&:not(.modern)
&::before
color: lookup('$note-' + $type + '-text')

View File

@@ -160,16 +160,16 @@ $note-modern-danger-border = #ebcdd2
$note-modern-danger-bg = lighten(spin($note-modern-danger-border, 10), 35% + ($lbg * 4))
$note-modern-danger-text = #a94442
$note-modern-danger-hover = darken(spin($note-modern-danger-text, -10), 22%)
// Tag Plugins - Button
$btn-types = 'blue' 'pink' 'red' 'purple' 'orange' 'green'
// Tag Plugins - Button/note
$tagsP-types = 'blue' 'pink' 'red' 'purple' 'orange' 'green'
$btn-color = #fff
$btn-default-color = #777
$btn-blue-color = #428bca
$btn-pink-color = #FF69B4
$btn-red-color = #FF0000
$btn-orange-color = #FF8C00
$btn-purple-color = #6f42c1
$btn-green-color = #5cb85c
$tagsP-blue-color = #428bca
$tagsP-pink-color = #FF69B4
$tagsP-red-color = #FF0000
$tagsP-orange-color = #FF8C00
$tagsP-purple-color = #6f42c1
$tagsP-green-color = #5cb85c
// Tag Plugins - Tab
$tab-border-color = #f0f0f0
$tab-botton-bg = #f0f0f0