Last active
November 9, 2019 09:16
-
-
Save oti/0c5d7a349783ee80b041a48eaa6d71d8 to your computer and use it in GitHub Desktop.
::-webkit-scrollbar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Webkit | |
https://jsfiddle.net/oj5x30gx/1/ | |
-------------------------------------------------- */ | |
/* Turn on a 13x13 scrollbar */ | |
::-webkit-scrollbar { | |
width: 13px; | |
height: 13px; | |
} | |
::-webkit-scrollbar-button:vertical { | |
background-color: red; | |
} | |
/* Turn on single button up on top, and down on bottom */ | |
::-webkit-scrollbar-button:start:decrement, | |
::-webkit-scrollbar-button:end:increment { | |
display: block; | |
} | |
/* Turn off the down area up on top, and up area on bottom */ | |
::-webkit-scrollbar-button:vertical:start:increment, | |
::-webkit-scrollbar-button:vertical:end:decrement { | |
display: none; | |
} | |
/* Place The scroll down button at the bottom */ | |
::-webkit-scrollbar-button:vertical:increment { | |
background-color: limegreen; | |
pointer-events: none; | |
} | |
/* Place The scroll up button at the up */ | |
::-webkit-scrollbar-button:vertical:decrement { | |
background-color: gold; | |
pointer-events: none; | |
} | |
::-webkit-scrollbar-track:vertical { | |
background-color: pink; | |
} | |
/* Top area above thumb and below up button */ | |
::-webkit-scrollbar-track-piece:vertical:start { | |
border: 3px dashed blue; | |
} | |
/* Bottom area below thumb and down button */ | |
::-webkit-scrollbar-track-piece:vertical:end { | |
border: 3px dashed magenta; | |
} | |
/* Track below and above */ | |
::-webkit-scrollbar-track-piece { | |
background-color: skyblue; | |
} | |
/* The thumb itself */ | |
::-webkit-scrollbar-thumb:vertical { | |
background-color: tomato; | |
pointer-events: none; | |
} | |
/* Corner */ | |
::-webkit-scrollbar-corner:vertical { | |
background-color: black; | |
} | |
/* Resizer */ | |
::-webkit-scrollbar-resizer:vertical { | |
background-color: gray; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment