Created
March 10, 2016 07:16
-
-
Save saulcosta/cac52e42077b35384959 to your computer and use it in GitHub Desktop.
Cleaner 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
// ------------- // | |
// Google Chrome // | |
// ------------- // | |
::-webkit-scrollbar { | |
width: 7px; // width of vertical scrollbar | |
height: 7px; // height of horizontal scrollbar | |
} | |
| |
// Part of scrollbar that moves up and down as you scroll | |
::-webkit-scrollbar-thumb { | |
background: rgba(50, 50, 50, .3); | |
} | |
| |
// Background color and such of scrollbar | |
::-webkit-scrollbar-track { | |
background: rgba(50, 50, 50, .2); | |
} | |
| |
// ----------------- // | |
// Internet Explorer // | |
// ----------------- // | |
body { | |
// Part of scrollbar that moves up and down as you scroll | |
scrollbar-face-color: rgba(50, 50, 50, .3); | |
// background color and such of scrollbar | |
scrollbar-track-color: rgba(50, 50, 50, .2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment