breaking changes: 刪除 hide_sidebar_menu_child 配置,改為直接在 menu 配置 close #640

feat: sidebar menu 點擊展開不再限制只能點擊按鈕 #640
feat: TWIKOO 評論圖片添加 lightbox
feat: 升級 facebook comment js 到 v11
fix: 修復可能導致相關文章鏈接出錯的bug #549
improvement: 調整代碼框 ocean theme 下滾動條顏色 close #651
improvement: 當圖片沒有 figcaption 時,不會添加 figcaption 代碼
improvement: 代碼優化
This commit is contained in:
Jerry
2021-09-01 16:10:39 +08:00
Unverified
parent 7210f5b431
commit 484f036adb
16 changed files with 141 additions and 189 deletions

View File

@@ -212,7 +212,8 @@ blockquote
& > i
transform: rotate(180deg)
& + table
& + table,
& + pre
margin-bottom: 1.8em
&:not(.expand-done)

View File

@@ -63,7 +63,7 @@ if $highlight_theme == 'ocean'
color: $highlight-foreground,
bg-color: darken($highlight-background, 2)
}
$highlight-scrollbar = darken($highlight-background, 5)
$highlight-scrollbar = darken($highlight-foreground, 40)
if $highlighEnable
$highlight-comment = rgba(101, 115, 126, .8)

View File

@@ -293,10 +293,10 @@
.menus_item_child
display: block
i.expand
transform: rotate(180deg) !important
& > a > i:last-child
transform: rotate(180deg)
i.expand
& > a > i:last-child
padding: 4px
transition: transform .3s

View File

@@ -65,18 +65,20 @@
width: 15%
text-align: left
.expand
position: absolute
top: .78em
right: .9rem
transition: transform .3s
&.group
& > i:last-child
position: absolute
top: .78em
right: .9rem
transition: transform .3s
&.hide
transform: rotate(90deg) !important
&.hide
& > i:last-child
transform: rotate(90deg)
& + .menus_item_child
display: none
.menus_item_child
margin: 0
list-style: none
if hexo-config('hide_sidebar_menu_child')
display: none
list-style: none