Skip to content

Instantly share code, notes, and snippets.

@NichlasB
Created April 6, 2017 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NichlasB/c14e39c6450cbbe33acd3fc379373ef8 to your computer and use it in GitHub Desktop.
Save NichlasB/c14e39c6450cbbe33acd3fc379373ef8 to your computer and use it in GitHub Desktop.
Customize the Browser Scrollbar
/** 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