提升highlight-tool的加載速度

 可設置取消谷歌自動廣告代碼加載
🐛 修復pjax下側邊欄分類打開/收縮按鈕 直接跳轉的bugs
🐛 修復代碼塊向右偏移的bugs
🐛 修復子目錄下,404頁面的回到首頁鏈接錯誤的bugs
This commit is contained in:
Jerry
2020-07-20 22:21:05 +08:00
Unverified
parent 4f64768011
commit 5ee7976c4a
10 changed files with 88 additions and 99 deletions

View File

@@ -135,6 +135,9 @@ blockquote
color: $highlight-tools.color
font-size: 14px
&.closed + table
display: none
.expand
position: absolute
padding: .4rem .7rem
@@ -215,9 +218,3 @@ blockquote
.code-lang
left: 3.8rem !important
// when the page.highlight_shrink set to true
#body-wrap.code-close
figure.highlight
& > :not(.highlight-tools)
display: none

View File

@@ -195,15 +195,15 @@
width: calc(100% - 70% - 20px)
text-align: right
&-icon
float: right
margin-right: -.35rem
padding: .35rem
transition: transform .3s
transform: rotate(0)
i
float: right
margin-right: -.35rem
padding: .35rem
transition: transform .3s
transform: rotate(0)
&.expand
transform: rotate(-90deg)
&.expand
transform: rotate(-90deg)
if hexo-config('aside.card_categories.expand') == false
+ .child

View File

@@ -1,4 +1,12 @@
#vcomment
.vbtn
border: none
background: var(--btn-bg)
color: var(--btn-color)
&:hover
background: var(--btn-hover-color)
if hexo-config('valine.bg')
textarea
background: url(hexo-config('valine.bg')) 100% 100% no-repeat