Last active
March 8, 2018 08:30
-
-
Save howar31/d43942842b3683ced6728d11c8013b7e to your computer and use it in GitHub Desktop.
Neat and clean scrollbar CSS
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
// Simple Scrollbar | |
::-webkit-scrollbar { | |
width: 14px; | |
} | |
::-webkit-scrollbar-thumb { | |
border: 4px solid rgba(0, 0, 0, 0); | |
background-clip: padding-box; | |
-webkit-border-radius: 7px; | |
background-color: #666666; | |
-webkit-box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.05), inset 1px 1px 0px rgba(0, 0, 0, 0.05); | |
} | |
::-webkit-scrollbar-button { | |
width: 0; | |
height: 0; | |
display: none; | |
} | |
::-webkit-scrollbar-corner { | |
background-color: transparent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment