Skip to content

Instantly share code, notes, and snippets.

@howar31
Last active March 8, 2018 08:30
Show Gist options
  • Save howar31/d43942842b3683ced6728d11c8013b7e to your computer and use it in GitHub Desktop.
Save howar31/d43942842b3683ced6728d11c8013b7e to your computer and use it in GitHub Desktop.
Neat and clean scrollbar CSS
// 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