Skip to content

Instantly share code, notes, and snippets.

@rxgx
Last active October 30, 2015 16:25
Show Gist options
  • Save rxgx/1572511 to your computer and use it in GitHub Desktop.
Save rxgx/1572511 to your computer and use it in GitHub Desktop.
scrollbar styles taken from the Chrome store
::-webkit-scrollbar,
::-webkit-scrollbar-thumb {
overflow: visible;
border-radius: 0;
border: solid 1px #A6A6A6;
}
::-webkit-scrollbar {
width: 10px;
border-right: 0;
border-top: 0;
border-bottom: 0;
background: -webkit-gradient(linear,left top,right top,color-stop(0%,rgba(202, 202, 202, 0.07)),color-stop(100%,rgba(229, 229, 229, 0.07)));
background: -webkit-linear-gradient(left,rgba(202, 202, 202, 0.07) 0%,rgba(229, 229, 229, 0.07) 100%);
-webkit-box-shadow: 0 0 1px 0 rgba(0,0,0,.15) inset,0 1px 0 0 #fff;
box-shadow: 0 0 1px 0 rgba(0,0,0,.15) inset,0 1px 0 0 #fff;
background-color: rgb(240, 240, 240);
}
::-webkit-scrollbar-thumb {
background: -webkit-gradient(linear,left top,right top,color-stop(0%,rgba(233, 233, 233, 0.05)),color-stop(100%,rgba(221, 221, 221, 0.05)));
background: -webkit-linear-gradient(left,rgba(233, 233, 233, 0.05) 0%,rgba(221, 221, 221, 0.05) 100%);
-webkit-box-shadow: 0 2px 1px 0 rgba(0,0,0,.05);
box-shadow: 0 2px 1px 0 rgba(0,0,0,.05);
background-color: #E9E9E9;
}
::-webkit-scrollbar-button {
height: 0;
display: block;
background-color: transparent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment