mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-08 12:07:06 +08:00
feat: 預設關閉 structured_data
feat: 升級一些項目依賴 feat: 重寫 README.md 和 README_CN.md,改進文檔結構和內容 feat: tags 標籤插件夜間模式調整 feat: 加按鈕懸停效果和動畫 fix: 修復右下角箭頭圖標位置沒有居中的 bug feat: 增加右下角箭頭和滾動百分比的切換效果 improvement: 優化 tags 頁標籤雲顯示效果 improvement: 整合部分js到 init.js improvement: 統一 CSS 變數使用,改進主題一致性
This commit is contained in:
@@ -181,6 +181,60 @@ if hexo-config('avatar.effect') == true
|
||||
.reward-main
|
||||
animation: donate_effcet .3s .1s ease both
|
||||
|
||||
.btn-effects
|
||||
position: relative
|
||||
overflow: hidden
|
||||
transition: all .3s cubic-bezier(.4, 0, .2, 1)
|
||||
transform: translateZ(0)
|
||||
|
||||
&:hover
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, .15)
|
||||
text-decoration: none
|
||||
transform: translateY(-1px) scale(1.02)
|
||||
|
||||
&:active
|
||||
transition-duration: .1s
|
||||
transform: translateY(0) scale(.98)
|
||||
|
||||
i
|
||||
display: inline-block
|
||||
vertical-align: middle
|
||||
transition: all .3s cubic-bezier(.4, 0, .2, 1)
|
||||
|
||||
&:hover i
|
||||
animation: buttonIconBounce .6s ease-in-out
|
||||
|
||||
i + span
|
||||
margin-left: 6px
|
||||
vertical-align: middle
|
||||
transition: margin-left .3s cubic-bezier(.4, 0, .2, 1)
|
||||
|
||||
&:hover i + span
|
||||
margin-left: 8px
|
||||
|
||||
&::before
|
||||
position: absolute
|
||||
top: 0
|
||||
left: -100%
|
||||
z-index: 1
|
||||
width: 100%
|
||||
height: 100%
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent)
|
||||
content: ''
|
||||
transition: left .5s cubic-bezier(.4, 0, .2, 1)
|
||||
|
||||
&:hover::before
|
||||
left: 100%
|
||||
|
||||
& > *
|
||||
position: relative
|
||||
z-index: 2
|
||||
|
||||
.btn-effects-large
|
||||
&:hover
|
||||
box-shadow: 0 6px 16px rgba(0, 0, 0, .2)
|
||||
transform: translateY(-2px) scale(1.03)
|
||||
|
||||
@keyframes scroll-down-effect
|
||||
0%
|
||||
opacity: .4
|
||||
@@ -278,3 +332,17 @@ if hexo-config('avatar.effect') == true
|
||||
|
||||
100%
|
||||
transform: translateX(0)
|
||||
|
||||
@keyframes buttonIconBounce
|
||||
0%,
|
||||
100%
|
||||
transform: translateY(0) scale(1)
|
||||
|
||||
25%
|
||||
transform: translateY(-3px) scale(1.1) rotateZ(-5deg)
|
||||
|
||||
50%
|
||||
transform: translateY(0) scale(1.05) rotateZ(0)
|
||||
|
||||
75%
|
||||
transform: translateY(-1px) scale(1.02) rotateZ(2deg)
|
||||
@@ -39,6 +39,65 @@
|
||||
--zoom-bg: #fff
|
||||
--mark-bg: alpha($dark-black, .3)
|
||||
|
||||
// tags plugin
|
||||
:root
|
||||
--btn-color: $btn-color
|
||||
--btn-default-color: $btn-default-color
|
||||
--tags-blue-color: $tagsP-blue-color
|
||||
--tags-blue-color-lighten: lighten($tagsP-blue-color, 85%)
|
||||
--tags-pink-color: $tagsP-pink-color
|
||||
--tags-pink-color-lighten: lighten($tagsP-pink-color, 85%)
|
||||
--tags-red-color: $tagsP-red-color
|
||||
--tags-red-color-lighten: lighten($tagsP-red-color, 85%)
|
||||
--tags-orange-color: $tagsP-orange-color
|
||||
--tags-orange-color-lighten: lighten($tagsP-orange-color, 85%)
|
||||
--tags-purple-color: $tagsP-purple-color
|
||||
--tags-purple-color-lighten: lighten($tagsP-purple-color, 85%)
|
||||
--tags-green-color: $tagsP-green-color
|
||||
--tags-green-color-lighten: lighten($tagsP-green-color, 85%)
|
||||
--note-default-border: $note-default-border
|
||||
--note-default-bg: $note-default-bg
|
||||
--note-default-text: $note-default-text
|
||||
--note-modern-default-border: $note-modern-default-border
|
||||
--note-modern-default-bg: $note-modern-default-bg
|
||||
--note-modern-default-text: $note-modern-default-text
|
||||
--note-modern-default-hover: $note-modern-default-hover
|
||||
--note-primary-border: $note-primary-border
|
||||
--note-primary-bg: $note-primary-bg
|
||||
--note-primary-text: $note-primary-text
|
||||
--note-modern-primary-border: $note-modern-primary-border
|
||||
--note-modern-primary-bg: $note-modern-primary-bg
|
||||
--note-modern-primary-text: $note-modern-primary-text
|
||||
--note-modern-primary-hover: $note-modern-primary-hover
|
||||
--note-info-border: $note-info-border
|
||||
--note-info-bg: $note-info-bg
|
||||
--note-info-text: $note-info-text
|
||||
--note-modern-info-border: $note-modern-info-border
|
||||
--note-modern-info-bg: $note-modern-info-bg
|
||||
--note-modern-info-text: $note-modern-info-text
|
||||
--note-modern-info-hover: $note-modern-info-hover
|
||||
--note-success-border: $note-success-border
|
||||
--note-success-bg: $note-success-bg
|
||||
--note-success-text: $note-success-text
|
||||
--note-modern-success-border: $note-modern-success-border
|
||||
--note-modern-success-bg: $note-modern-success-bg
|
||||
--note-modern-success-text: $note-modern-success-text
|
||||
--note-modern-success-hover: $note-modern-success-hover
|
||||
--note-warning-border: $note-warning-border
|
||||
--note-warning-bg: $note-warning-bg
|
||||
--note-warning-text: $note-warning-text
|
||||
--note-modern-warning-border: $note-modern-warning-border
|
||||
--note-modern-warning-bg: $note-modern-warning-bg
|
||||
--note-modern-warning-text: $note-modern-warning-text
|
||||
--note-modern-warning-hover: $note-modern-warning-hover
|
||||
--note-danger-border: $note-danger-border
|
||||
--note-danger-bg: $note-danger-bg
|
||||
--note-danger-text: $note-danger-text
|
||||
--note-modern-danger-border: $note-modern-danger-border
|
||||
--note-modern-danger-bg: $note-modern-danger-bg
|
||||
--note-modern-danger-text: $note-modern-danger-text
|
||||
--note-modern-danger-hover: $note-modern-danger-hover
|
||||
|
||||
body
|
||||
position: relative
|
||||
overflow-y: scroll
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
text-align: center
|
||||
line-height: 2.4
|
||||
addBorderRadius(7)
|
||||
@extend .btn-effects
|
||||
|
||||
&:hover
|
||||
background-color: var(--btn-hover-color)
|
||||
|
||||
@@ -15,9 +15,12 @@
|
||||
color: var(--btn-color)
|
||||
cursor: pointer
|
||||
addBorderRadius()
|
||||
@extend .btn-effects
|
||||
@extend .btn-effects-large
|
||||
|
||||
i
|
||||
margin-right: 5px
|
||||
vertical-align: baseline
|
||||
|
||||
&:hover
|
||||
.reward-button
|
||||
@@ -28,7 +31,7 @@
|
||||
|
||||
.reward-main
|
||||
position: absolute
|
||||
bottom: 40px
|
||||
bottom: 50px
|
||||
left: 0
|
||||
z-index: 100
|
||||
display: none
|
||||
|
||||
@@ -54,19 +54,52 @@
|
||||
|
||||
if hexo-config('rightside_scroll_percent')
|
||||
#go-up
|
||||
position: relative
|
||||
|
||||
.scroll-percent
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
display: none
|
||||
width: 100%
|
||||
height: 100%
|
||||
opacity: 0
|
||||
transition: all .4s cubic-bezier(.4, 0, .2, 1)
|
||||
transform: scale(.8)
|
||||
|
||||
i
|
||||
position: relative
|
||||
z-index: 1
|
||||
width: 100%
|
||||
opacity: 1
|
||||
transition: all .4s cubic-bezier(.4, 0, .2, 1)
|
||||
transform: scale(1)
|
||||
|
||||
&.show-percent
|
||||
.scroll-percent
|
||||
display: block
|
||||
opacity: 1
|
||||
transform: scale(1)
|
||||
animation: fadeInScale .4s ease-out
|
||||
|
||||
& + i
|
||||
display: none
|
||||
i
|
||||
opacity: 0
|
||||
transform: scale(.8)
|
||||
|
||||
&:hover
|
||||
&:hover.show-percent
|
||||
.scroll-percent
|
||||
display: none
|
||||
opacity: 0
|
||||
transform: scale(.8)
|
||||
|
||||
& + i
|
||||
display: block
|
||||
i
|
||||
opacity: 1 !important
|
||||
transform: scale(1) !important
|
||||
|
||||
@keyframes fadeInScale
|
||||
from
|
||||
opacity: 0
|
||||
transform: scale(.8)
|
||||
|
||||
to
|
||||
opacity: 1
|
||||
transform: scale(1)
|
||||
@@ -33,6 +33,56 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
|
||||
--timeline-bg: lighten(#121212, 5)
|
||||
--zoom-bg: #121212
|
||||
--mark-bg: alpha($dark-black, .6)
|
||||
--btn-color: darken($btn-color, 20%)
|
||||
--btn-default-color: lighten($btn-default-color, 20%)
|
||||
--tags-blue-color: desaturate(darken($tagsP-blue-color, 20%), 25%)
|
||||
--tags-blue-color-lighten: rgba(66, 139, 202, .15)
|
||||
--tags-pink-color: desaturate(darken($tagsP-pink-color, 22%), 30%)
|
||||
--tags-pink-color-lighten: rgba(255, 105, 180, .15)
|
||||
--tags-red-color: desaturate(darken($tagsP-red-color, 25%), 28%)
|
||||
--tags-red-color-lighten: rgba(255, 0, 0, .15)
|
||||
--tags-orange-color: desaturate(darken($tagsP-orange-color, 22%), 32%)
|
||||
--tags-orange-color-lighten: rgba(255, 140, 0, .15)
|
||||
--tags-purple-color: desaturate(darken($tagsP-purple-color, 18%), 30%)
|
||||
--tags-purple-color-lighten: rgba(111, 66, 193, .15)
|
||||
--tags-green-color: desaturate(darken($tagsP-green-color, 20%), 28%)
|
||||
--tags-green-color-lighten: rgba(92, 184, 92, .15)
|
||||
--note-default-border: $note-dark-default-border
|
||||
--note-default-bg: $note-dark-default-bg
|
||||
--note-default-text: $note-dark-default-text
|
||||
--note-modern-default-border: $note-dark-modern-default-border
|
||||
--note-modern-default-bg: $note-dark-modern-default-bg
|
||||
--note-modern-default-text: $note-dark-modern-default-text
|
||||
--note-primary-border: $note-dark-primary-border
|
||||
--note-primary-bg: $note-dark-primary-bg
|
||||
--note-primary-text: $note-dark-primary-text
|
||||
--note-modern-primary-border: $note-dark-modern-primary-border
|
||||
--note-modern-primary-bg: $note-dark-modern-primary-bg
|
||||
--note-modern-primary-text: $note-dark-modern-primary-text
|
||||
--note-info-border: $note-dark-info-border
|
||||
--note-info-bg: $note-dark-info-bg
|
||||
--note-info-text: $note-dark-info-text
|
||||
--note-modern-info-border: $note-dark-modern-info-border
|
||||
--note-modern-info-bg: $note-dark-modern-info-bg
|
||||
--note-modern-info-text: $note-dark-modern-info-text
|
||||
--note-success-border: $note-dark-success-border
|
||||
--note-success-bg: $note-dark-success-bg
|
||||
--note-success-text: $note-dark-success-text
|
||||
--note-modern-success-border: $note-dark-modern-success-border
|
||||
--note-modern-success-bg: $note-dark-modern-success-bg
|
||||
--note-modern-success-text: $note-dark-modern-success-text
|
||||
--note-warning-border: $note-dark-warning-border
|
||||
--note-warning-bg: $note-dark-warning-bg
|
||||
--note-warning-text: $note-dark-warning-text
|
||||
--note-modern-warning-border: $note-dark-modern-warning-border
|
||||
--note-modern-warning-bg: $note-dark-modern-warning-bg
|
||||
--note-modern-warning-text: $note-dark-modern-warning-text
|
||||
--note-danger-border: $note-dark-danger-border
|
||||
--note-danger-bg: $note-dark-danger-bg
|
||||
--note-danger-text: $note-dark-danger-text
|
||||
--note-modern-danger-border: $note-dark-modern-danger-border
|
||||
--note-modern-danger-bg: $note-dark-modern-danger-bg
|
||||
--note-modern-danger-text: $note-dark-modern-danger-text
|
||||
|
||||
#web_bg:before
|
||||
position: absolute
|
||||
@@ -78,23 +128,17 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
|
||||
#switch-btn
|
||||
filter: brightness(.8)
|
||||
|
||||
// note
|
||||
if hexo-config('note.style') == 'modern' || hexo-config('note.style') == 'flat'
|
||||
.note
|
||||
filter: brightness(.8)
|
||||
|
||||
// hide-tags
|
||||
.hide-button,
|
||||
.btn-beautify,
|
||||
.hl-label,
|
||||
#post-outdate-notice,
|
||||
.error-img,
|
||||
.container iframe,
|
||||
.gist,
|
||||
.ads-wrap
|
||||
.ads-wrap,
|
||||
.tag-cloud-list > a
|
||||
filter: brightness(.8)
|
||||
|
||||
img
|
||||
img:not(.cover)
|
||||
if hexo-config('lazyload.enable') && hexo-config('lazyload.blur') && !hexo-config('lazyload.placeholder')
|
||||
filter: blur(0) brightness(.8)
|
||||
else
|
||||
@@ -148,7 +192,7 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
|
||||
--at-color-font: alpha(#FFFFFF, .7)
|
||||
--at-color-meta: alpha(#FFFFFF, .7)
|
||||
--at-color-grey: alpha(#FFFFFF, .7)
|
||||
|
||||
|
||||
.atk-send-btn,
|
||||
.atk-badge
|
||||
color: alpha(#FFFFFF, .7) !important
|
||||
|
||||
@@ -1,27 +1,91 @@
|
||||
.tag-cloud
|
||||
&-list
|
||||
animation: tagsFadeIn .6s cubic-bezier(.4, 0, .2, 1)
|
||||
|
||||
&:hover a:not(:hover)
|
||||
opacity: .7
|
||||
transform: scale(.98)
|
||||
|
||||
a
|
||||
position: relative
|
||||
display: inline-block
|
||||
margin: 2px
|
||||
padding: 2px 7px
|
||||
margin: 5px
|
||||
padding: 3px 12px
|
||||
line-height: 1.7
|
||||
transition: all .3s
|
||||
addBorderRadius(5)
|
||||
transition: all .3s cubic-bezier(.4, 0, .2, 1)
|
||||
addBorderRadius(7)
|
||||
overflow: hidden
|
||||
color: white
|
||||
transform: translateY(0) scale(1)
|
||||
will-change: transform, background-color, box-shadow
|
||||
|
||||
&::before
|
||||
position: absolute
|
||||
top: 0
|
||||
left: -100%
|
||||
z-index: -1
|
||||
width: 100%
|
||||
height: 100%
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent)
|
||||
content: ''
|
||||
transition: left .6s cubic-bezier(.4, 0, .2, 1)
|
||||
|
||||
&:hover
|
||||
background: var(--btn-bg) !important
|
||||
box-shadow: 2px 2px 6px rgba(0, 0, 0, .2)
|
||||
background: var(--btn-hover-color) !important
|
||||
box-shadow:
|
||||
0 6px 20px rgba(0, 0, 0, .12),
|
||||
0 4px 8px rgba(0, 0, 0, .08),
|
||||
0 0 0 1px rgba(255, 255, 255, .05)
|
||||
color: var(--btn-color) !important
|
||||
transform: translateY(-2px) scale(1.02)
|
||||
|
||||
&::before
|
||||
left: 100%
|
||||
|
||||
&:active
|
||||
box-shadow:
|
||||
0 3px 8px rgba(0, 0, 0, .15),
|
||||
0 1px 3px rgba(0, 0, 0, .1)
|
||||
transition: all .15s cubic-bezier(.4, 0, .2, 1)
|
||||
transform: translateY(-1px) scale(.98)
|
||||
|
||||
+maxWidth768()
|
||||
zoom: .85
|
||||
|
||||
&:hover
|
||||
transform: translateY(-1px) scale(1.01)
|
||||
|
||||
&:active
|
||||
transform: translateY(0) scale(.99)
|
||||
|
||||
&::before
|
||||
display: none
|
||||
|
||||
&-title
|
||||
font-size: 2.57em
|
||||
animation: titleSlideIn .8s cubic-bezier(.4, 0, .2, 1)
|
||||
|
||||
+maxWidth768()
|
||||
font-size: 2em
|
||||
|
||||
@keyframes tagsFadeIn
|
||||
from
|
||||
opacity: 0
|
||||
transform: translateY(20px)
|
||||
|
||||
to
|
||||
opacity: 1
|
||||
transform: translateY(0)
|
||||
|
||||
@keyframes titleSlideIn
|
||||
from
|
||||
opacity: 0
|
||||
transform: translateX(-30px)
|
||||
|
||||
to
|
||||
opacity: 1
|
||||
transform: translateX(0)
|
||||
|
||||
.page-title
|
||||
& + .tag-cloud-list
|
||||
text-align: left
|
||||
|
||||
@@ -7,21 +7,20 @@
|
||||
display: inline-block
|
||||
margin: 0 4px 6px
|
||||
padding: 0 15px
|
||||
background-color: var(--btn-beautify-color, $btn-default-color)
|
||||
color: $btn-color
|
||||
background-color: var(--btn-beautify-color, var(--btn-default-color))
|
||||
color: var(--btn-color, $btn-color)
|
||||
vertical-align: top
|
||||
line-height: 2
|
||||
addBorderRadius()
|
||||
@extend .btn-effects
|
||||
|
||||
for $type in $color-types
|
||||
&.{$type}
|
||||
--btn-beautify-color: lookup('$tagsP-' + $type + '-color')
|
||||
--btn-beautify-color: unquote('var(--tags-' + $type + '-color)')
|
||||
|
||||
&:hover
|
||||
background-color: var(--btn-hover-color)
|
||||
|
||||
i + span
|
||||
margin-left: 6px
|
||||
|
||||
&:not(.block) + .btn-beautify:not(.block)
|
||||
margin: 0 4px 20px
|
||||
|
||||
@@ -39,18 +38,26 @@
|
||||
|
||||
&.larger
|
||||
padding: 6px 15px
|
||||
|
||||
&:hover
|
||||
text-decoration: none
|
||||
@extend .btn-effects-large
|
||||
|
||||
&.outline
|
||||
border: 1px solid transparent
|
||||
border-color: var(--btn-beautify-color, $btn-default-color)
|
||||
border-color: var(--btn-beautify-color, var(--btn-default-color))
|
||||
background-color: transparent
|
||||
color: var(--btn-beautify-color, $btn-default-color)
|
||||
color: var(--btn-beautify-color, var(--btn-default-color))
|
||||
|
||||
i,
|
||||
span
|
||||
transition: color .3s cubic-bezier(.4, 0, .2, 1)
|
||||
|
||||
&::before
|
||||
background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .1), transparent)
|
||||
|
||||
&:hover
|
||||
background-color: var(--btn-beautify-color, $btn-default-color)
|
||||
border-color: var(--btn-beautify-color, var(--btn-default-color))
|
||||
background-color: var(--btn-beautify-color, var(--btn-default-color))
|
||||
color: var(--btn-color) !important
|
||||
|
||||
&:hover
|
||||
color: white !important
|
||||
i,
|
||||
span
|
||||
color: var(--btn-color)
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
background: $tag-hide-bg
|
||||
color: var(--white)
|
||||
addBorderRadius()
|
||||
@extend .btn-effects
|
||||
|
||||
&:hover
|
||||
background-color: var(--btn-hover-color)
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
.hl-label
|
||||
padding: 2px 4px
|
||||
color: $btn-color
|
||||
color: var(--btn-color, $btn-color)
|
||||
addBorderRadius(3)
|
||||
|
||||
&.default
|
||||
background-color: $btn-default-color
|
||||
background-color: var(--btn-default-color)
|
||||
|
||||
for $type in $color-types
|
||||
&.{$type}
|
||||
background-color: lookup('$tagsP-' + $type + '-color')
|
||||
background-color: unquote('var(--tags-' + $type + '-color)')
|
||||
|
||||
@@ -19,32 +19,32 @@
|
||||
for $type in $color-types
|
||||
&.{$type}
|
||||
&:not(.disabled)
|
||||
border-left-color: lookup('$tagsP-' + $type + '-color') !important
|
||||
border-left-color: unquote('var(--tags-' + $type + '-color)') !important
|
||||
|
||||
&.modern
|
||||
border-left-color: transparent !important
|
||||
color: lookup('$tagsP-' + $type + '-color')
|
||||
color: unquote('var(--tags-' + $type + '-color)')
|
||||
|
||||
&:not(.simple)
|
||||
background: lighten(lookup('$tagsP-' + $type + '-color'), 85%) !important
|
||||
background: unquote('var(--tags-' + $type + '-color-lighten)')
|
||||
|
||||
& > .note-icon
|
||||
color: lookup('$tagsP-' + $type + '-color')
|
||||
color: unquote('var(--tags-' + $type + '-color)')
|
||||
|
||||
&.simple
|
||||
border: 1px solid #EEEEEE
|
||||
border: 1px solid var(--note-default-border)
|
||||
border-left-width: 5px
|
||||
|
||||
&.modern
|
||||
border: 1px solid transparent !important
|
||||
background-color: #f5f5f5
|
||||
color: $font-black
|
||||
background-color: var(--note-modern-default-bg)
|
||||
color: var(--note-modern-default-text)
|
||||
|
||||
&.flat
|
||||
border: initial
|
||||
border-left: 5px solid #EEEEEE
|
||||
background-color: lighten(#EEEEEE, 65%)
|
||||
color: $font-black
|
||||
border-left: 5px solid var(--note-default-border)
|
||||
background-color: var(--note-default-bg)
|
||||
color: var(--note-default-text)
|
||||
|
||||
h2,
|
||||
h3,
|
||||
@@ -90,29 +90,30 @@
|
||||
for $type in $note-types
|
||||
&.{$type}
|
||||
&.flat
|
||||
background: lookup('$note-' + $type + '-bg')
|
||||
background: unquote('var(--note-' + $type + '-bg)')
|
||||
color: var(--font-color)
|
||||
|
||||
&.modern
|
||||
border-color: lookup('$note-modern-' + $type + '-border')
|
||||
background: lookup('$note-modern-' + $type + '-bg')
|
||||
color: lookup('$note-modern-' + $type + '-text')
|
||||
border-color: unquote('var(--note-modern-' + $type + '-border)') !important
|
||||
background: unquote('var(--note-modern-' + $type + '-bg)')
|
||||
color: unquote('var(--note-modern-' + $type + '-text)')
|
||||
|
||||
a
|
||||
&:not(.btn)
|
||||
color: lookup('$note-modern-' + $type + '-text')
|
||||
color: unquote('var(--note-modern-' + $type + '-text)')
|
||||
|
||||
&:hover
|
||||
color: lookup('$note-modern-' + $type + '-hover')
|
||||
color: unquote('var(--note-modern-' + $type + '-hover)')
|
||||
|
||||
&:not(.modern)
|
||||
border-left-color: lookup('$note-' + $type + '-border')
|
||||
border-left-color: unquote('var(--note-' + $type + '-border)')
|
||||
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6
|
||||
color: lookup('$note-' + $type + '-text')
|
||||
color: unquote('var(--note-' + $type + '-text)')
|
||||
|
||||
if $note-icons
|
||||
&:not(.no-icon)
|
||||
@@ -121,4 +122,4 @@
|
||||
|
||||
&:not(.modern)
|
||||
&::before
|
||||
color: lookup('$note-' + $type + '-text')
|
||||
color: unquote('var(--note-' + $type + '-text)')
|
||||
|
||||
@@ -13,11 +13,9 @@ $code-foreground = $themeColorEnable && hexo-config('theme_color.code_foreground
|
||||
$code-background = $themeColorEnable && hexo-config('theme_color.code_background') ? convert(hexo-config('theme_color.code_background')) : rgba(27, 31, 35, .05)
|
||||
$theme-toc-color = $themeColorEnable && hexo-config('theme_color.toc_color') ? convert(hexo-config('theme_color.toc_color')) : $strong-cyan
|
||||
// font
|
||||
|
||||
$chineseFont = $language == 'zh-CN' ? 'Microsoft YaHei' : 'Microsoft JhengHei'
|
||||
$default-font-family = -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Lato, Roboto, 'PingFang SC', $chineseFont, sans-serif
|
||||
$default-code-font = consolas, Menlo, monospace, 'PingFang SC', $chineseFont, sans-serif
|
||||
|
||||
$font-family = hexo-config('font.font_family') ? unquote(hexo-config('font.font_family')) : $default-font-family
|
||||
$code-font-family = hexo-config('font.code_font_family') ? unquote(hexo-config('font.code_font_family')) : $default-code-font
|
||||
$site-name-font = hexo-config('blog_title_font.font_family') && unquote(hexo-config('blog_title_font.font_family'))
|
||||
@@ -184,3 +182,52 @@ $tab-to-top-color = #99a9bf
|
||||
$tab-to-top-hover-color = $theme-color
|
||||
// Tag Plugins - timeline
|
||||
$timeline-default-color = $theme-color
|
||||
// note - darkmode
|
||||
// Default
|
||||
$note-dark-default-border = #5a5a5a
|
||||
$note-dark-default-bg = #2b2b2b
|
||||
$note-dark-default-text = #b3b3b3
|
||||
$note-dark-modern-default-border = #9a9a9a
|
||||
$note-dark-modern-default-bg = #353535
|
||||
$note-dark-modern-default-text = #c4c4c4
|
||||
$note-dark-modern-default-hover = #d0d0d0
|
||||
// Primary
|
||||
$note-dark-primary-border = #5935a1
|
||||
$note-dark-primary-bg = #2e1c3e
|
||||
$note-dark-primary-text = #a47dd4
|
||||
$note-dark-modern-primary-border = #9985cc
|
||||
$note-dark-modern-primary-bg = #3c2d4c
|
||||
$note-dark-modern-primary-text = #b693e6
|
||||
$note-dark-modern-primary-hover = #c9a8f0
|
||||
// Info
|
||||
$note-dark-info-border = #346fa2
|
||||
$note-dark-info-bg = #1f2e3b
|
||||
$note-dark-info-text = #7bb3db
|
||||
$note-dark-modern-info-border = #7ca8b5
|
||||
$note-dark-modern-info-bg = #2b3c44
|
||||
$note-dark-modern-info-text = #8fc6e0
|
||||
$note-dark-modern-info-hover = #a3d4ea
|
||||
// Success
|
||||
$note-dark-success-border = #4a944a
|
||||
$note-dark-success-bg = #202e20
|
||||
$note-dark-success-text = #82c682
|
||||
$note-dark-modern-success-border = #8bb087
|
||||
$note-dark-modern-success-bg = #2c3d2c
|
||||
$note-dark-modern-success-text = #96d196
|
||||
$note-dark-modern-success-hover = #a8dca8
|
||||
// Warning
|
||||
$note-dark-warning-border = #c08a3e
|
||||
$note-dark-warning-bg = #3e301f
|
||||
$note-dark-warning-text = #e6ba6b
|
||||
$note-dark-modern-warning-border = #b8a285
|
||||
$note-dark-modern-warning-bg = #4b3c2b
|
||||
$note-dark-modern-warning-text = #d4b373
|
||||
$note-dark-modern-warning-hover = #e0c080
|
||||
// Danger
|
||||
$note-dark-danger-border = #b34440
|
||||
$note-dark-danger-bg = #3b201f
|
||||
$note-dark-danger-text = #e67572
|
||||
$note-dark-modern-danger-border = #c7898c
|
||||
$note-dark-modern-danger-bg = #4d2b2e
|
||||
$note-dark-modern-danger-text = #d98b8e
|
||||
$note-dark-modern-danger-hover = #e59fa2
|
||||
@@ -249,7 +249,7 @@
|
||||
'rotateCW',
|
||||
'flipX',
|
||||
'flipY',
|
||||
"reset"
|
||||
'reset'
|
||||
],
|
||||
right: ['autoplay', 'thumbs', 'close']
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user