custom scrollbar size
This commit is contained in:
parent
f37326822c
commit
be40bfd0ec
|
@ -199,6 +199,8 @@ style:
|
||||||
animated_avatar:
|
animated_avatar:
|
||||||
animate: auto # auto, always
|
animate: auto # auto, always
|
||||||
background: https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.2/avatar/round/rainbow64@3x.webp
|
background: https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.2/avatar/round/rainbow64@3x.webp
|
||||||
|
codeblock:
|
||||||
|
scrollbar: 4px
|
||||||
|
|
||||||
default:
|
default:
|
||||||
avatar: https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg
|
avatar: https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg
|
||||||
|
|
|
@ -36,7 +36,7 @@ article.md .highlight
|
||||||
margin: 0
|
margin: 0
|
||||||
background: transparent
|
background: transparent
|
||||||
border: none
|
border: none
|
||||||
scrollbar-codeblock()
|
scrollbar-codeblock(convert(hexo-config('style.codeblock.scrollbar')))
|
||||||
tr
|
tr
|
||||||
background: transparent
|
background: transparent
|
||||||
&:hover
|
&:hover
|
||||||
|
@ -71,7 +71,6 @@ article.md .highlight
|
||||||
.code
|
.code
|
||||||
vertical-align: top
|
vertical-align: top
|
||||||
&:before
|
&:before
|
||||||
content: ""
|
|
||||||
position: absolute
|
position: absolute
|
||||||
top: 0
|
top: 0
|
||||||
right: 0
|
right: 0
|
||||||
|
|
|
@ -68,10 +68,10 @@ scrollbar($w = 4px, $b = 2px, $c = var(--text-meta), $h = var(--text-p3))
|
||||||
background: $h
|
background: $h
|
||||||
|
|
||||||
|
|
||||||
scrollbar-codeblock()
|
scrollbar-codeblock($height = 4px)
|
||||||
&::-webkit-scrollbar
|
&::-webkit-scrollbar
|
||||||
height: 4px
|
height: $height
|
||||||
width: 4px
|
width: $height
|
||||||
&::-webkit-scrollbar-track-piece
|
&::-webkit-scrollbar-track-piece
|
||||||
background: transparent
|
background: transparent
|
||||||
&::-webkit-scrollbar-thumb
|
&::-webkit-scrollbar-thumb
|
||||||
|
|
Loading…
Reference in New Issue