Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created June 19, 2017 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelmota/cefab67f3d5d0540d1c9fc6652a92e1f to your computer and use it in GitHub Desktop.
Save miguelmota/cefab67f3d5d0540d1c9fc6652a92e1f to your computer and use it in GitHub Desktop.
CSS scrollbar
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