mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 17:40:55 +08:00
🐛 適配hexo 5.0.0 修復toc點擊不會跳轉的bugs
🐛 適配hexo 5.0.0 修復toc點擊不會跳轉的bugs 🍻 文件整理 🍻 UI微調
This commit is contained in:
@@ -245,11 +245,11 @@ if hexo-config('avatar.effect') == true
|
||||
|
||||
#mobile-sidebar-menus
|
||||
&.open
|
||||
transform: translate3d(-100%, 0px, 0px)
|
||||
transform: translate3d(-100%, 0, 0)
|
||||
|
||||
for i in 1 2 3 4
|
||||
> :nth-child({i})
|
||||
animation: sidebarItem (i / 5)s
|
||||
animation: sidebarItem (i / 5) s
|
||||
|
||||
@keyframes scroll-down-effect
|
||||
0%
|
||||
|
||||
@@ -3,7 +3,7 @@ figure.highlight
|
||||
table
|
||||
&::-webkit-scrollbar-thumb
|
||||
background: $highlight-scrollbar
|
||||
|
||||
|
||||
pre .deletion
|
||||
color: $highlight-deletion
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ if $highlight_theme == 'default'
|
||||
}
|
||||
$highlight-scrollbar = darken($highlight-background, 6)
|
||||
|
||||
if $highlight_theme == 'darker' || $highlight_theme == 'mac'
|
||||
if $highlight_theme == 'darker' || ($highlight_theme == 'mac')
|
||||
$highlight-background = #212121
|
||||
$highlight-current-line = #282a2e
|
||||
$highlight-selection = #61616150
|
||||
@@ -40,7 +40,7 @@ if $highlight_theme == 'darker' || $highlight_theme == 'mac'
|
||||
$highlight-purple = #C792EA
|
||||
$highlight-deletion = #BF42BF
|
||||
$highlight-addition = #105EDE
|
||||
$highlight-mac-border = rgba(0,0,0,.4)
|
||||
$highlight-mac-border = rgba(0, 0, 0, .4)
|
||||
$highlight-gutter = {
|
||||
color: alpha($highlight-foreground, .5),
|
||||
bg-color: $highlight-background
|
||||
@@ -101,7 +101,7 @@ if $highlight_theme == 'ocean'
|
||||
}
|
||||
$highlight-scrollbar = darken($highlight-background, 5)
|
||||
|
||||
if $highlight_theme == 'light' || $highlight_theme == 'mac light'
|
||||
if $highlight_theme == 'light' || ($highlight_theme == 'mac light')
|
||||
$highlight-background = #F6F8FA
|
||||
$highlight-current-line = #00346e
|
||||
$highlight-selection = #80CBC440
|
||||
@@ -127,7 +127,6 @@ if $highlight_theme == 'light' || $highlight_theme == 'mac light'
|
||||
}
|
||||
$highlight-scrollbar = darken($highlight-background, 8)
|
||||
|
||||
|
||||
if $highlight_theme == false
|
||||
$highlight-background = #F6F8FA
|
||||
$highlight-foreground = #90A4AE
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
border-radius: 8px
|
||||
background: $comments-switch-bg
|
||||
else
|
||||
vertical-align: middle
|
||||
|
||||
> span
|
||||
display: none
|
||||
|
||||
|
||||
@@ -69,8 +69,7 @@ beautify()
|
||||
padding-left: .6rem
|
||||
|
||||
@media screen and (max-width: $sm)
|
||||
padding-left: 0.2rem
|
||||
|
||||
padding-left: .2rem
|
||||
|
||||
li
|
||||
&:not(.tab)
|
||||
|
||||
@@ -49,5 +49,5 @@
|
||||
|
||||
.relatedPosts_title
|
||||
@extend .limit-more-line
|
||||
-webkit-line-clamp: 2
|
||||
color: var(--white)
|
||||
-webkit-line-clamp: 2
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
left: auto
|
||||
z-index: 103
|
||||
width: $mobile-sidebar-width
|
||||
box-shadow: none
|
||||
opacity: 1
|
||||
transition: all .4s
|
||||
box-shadow: none
|
||||
|
||||
.toc-child
|
||||
display: block !important
|
||||
|
||||
Reference in New Issue
Block a user