Created
June 19, 2017 02:56
-
-
Save miguelmota/cefab67f3d5d0540d1c9fc6652a92e1f to your computer and use it in GitHub Desktop.
CSS 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
body::-webkit-scrollbar, | |
.overflow-x::-webkit-scrollbar, | |
.overflow-y::-webkit-scrollbar { | |
width: 5px; | |
height: 5px; | |
} | |
body::-webkit-scrollbar-track, | |
.overflow-x::-webkit-scrollbar-track, | |
.overflow-y::-webkit-scrollbar-track { | |
background: #000; | |
} | |
body::-webkit-scrollbar-thumb, | |
.overflow-x::-webkit-scrollbar-thumb, | |
.overflow-y::-webkit-scrollbar-thumb { | |
background-color: rgba(73, 65, 88, 0.7); | |
border: 1px solid rgba(49, 49, 49, 0.6); | |
} | |
body::-webkit-scrollbar-thumb:hover, | |
.overflow-x::-webkit-scrollbar-thumb:hover, | |
.overflow-y::-webkit-scrollbar-thumb:hover { | |
background-color: rgba(100, 100, 100, 0.7); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment