Created
April 6, 2017 12:37
-
-
Save NichlasB/c14e39c6450cbbe33acd3fc379373ef8 to your computer and use it in GitHub Desktop.
Customize the Browser 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
/** BROWSER SCROLLBAR **/ | |
/* Scrollbar Styling */ | |
::-webkit-scrollbar { | |
width: 11px; | |
} | |
/* The new scrollbar will have a flat appearance with the set background color */ | |
::-webkit-scrollbar-track { | |
background-color: #FFD600; | |
border-left: 2px solid #DC0451; | |
} | |
/* This will style the thumb, ignoring the track */ | |
::-webkit-scrollbar-thumb { | |
background-color: rgba(220, 4, 81, 0.46); | |
border-top: 4px solid #DC0451; | |
border-bottom: 4px solid #DC0451; | |
} | |
/* Optionally, you can style the top and the bottom buttons (left and right for horizontal bars) */ | |
::-webkit-scrollbar-button { | |
background-color: #DC0451; | |
border-left: 2px solid #DC0451; | |
} | |
/* If both the vertical and the horizontal bars appear, then perhaps the right bottom corner also needs to be styled */ | |
::-webkit-scrollbar-corner { | |
background-color: #CACBCE; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment