Last active
August 29, 2015 14:20
-
-
Save codiceovvio/43df1d453e4a0c3125b0 to your computer and use it in GitHub Desktop.
Customize Chrome Scrollbar Styles
This file contains hidden or 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
| /** | |
| * Chrome browser scrollbar custom style | |
| */ | |
| /* The Scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| } | |
| /* The Scrollbar Track */ | |
| ::-webkit-scrollbar-track { | |
| -webkit-box-shadow: inset 0px 0px 0px rgba(0,0,0,0.3); | |
| } | |
| /* The Scrollbar Handle */ | |
| ::-webkit-scrollbar-thumb { | |
| -webkit-border-radius: 4px; | |
| border-radius: 4px; | |
| background: rgba(0, 99, 78, 1); | |
| -webkit-box-shadow: inset 0 0 2px rgba(0,0,0,0.5); | |
| } | |
| /* The Scrollbar Handle when the window loses focus */ | |
| ::-webkit-scrollbar-thumb:window-inactive { | |
| //background: rgba(255,0,0,0.4); | |
| background: rgba(0, 99, 78, 0.4); | |
| } | |
| /* Define overflow for html and body */ | |
| html { | |
| overflow: auto; | |
| } | |
| body { | |
| overflow-y: scroll; | |
| overflow-x: hidden; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment