Improved scrollbar

This commit is contained in:
2021-11-20 13:06:16 +09:00
parent 1c21184e7b
commit fb2dc7b58d
3 changed files with 23 additions and 11 deletions

17
styles/scrollbar.scarlet Normal file
View File

@ -0,0 +1,17 @@
// Desktop scrollbar
@media (hover: hover) and (pointer: fine)
body
scrollbar-width scrollbar-size
scrollbar-color scrollbar-thumb-color scrollbar-track-color
::-webkit-scrollbar
width scrollbar-size
::-webkit-scrollbar-track
background-color scrollbar-track-color
::-webkit-scrollbar-thumb
border scrollbar-border-size solid transparent
border-radius 5px
background-clip content-box
background-color scrollbar-thumb-color