Skip to content

Instantly share code, notes, and snippets.

@un1versal
Last active November 26, 2016 09:32
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 un1versal/b5803d60d6398c80808fbf618386a761 to your computer and use it in GitHub Desktop.
Save un1versal/b5803d60d6398c80808fbf618386a761 to your computer and use it in GitHub Desktop.
Works well with Firefox and GitHub Dark
/* overlay-scrollbars
* based on https://github.com/silverwind/overlay-scrollbars
* Version 2.1
*/
/* AGENT_SHEET */
scrollbar {
-moz-appearance: none !important;
background: none !important;
position: relative !important;
border: none !important;
z-index: 999999 !important;
}
scrollbar thumb {
-moz-appearance: none !important;
border: none !important;
padding: 0px 0px !important;
background: none !important;
border-radius: 0px !important;
}
scrollbar[orient="vertical"] thumb,
scrollbar[orient="horizontal"] thumb {
background: #898989 !important;
min-height: 14px !important;
min-width: 14px !important;
margin-top: -14px !important;
margin-bottom: 0px !important;
height: 14px !important
}
scrollbar[orient="vertical"] thumb:hover,
scrollbar[orient="vertical"] thumb:active,
scrollbar[orient="horizontal"] thumb:hover,
scrollbar[orient="horizontal"] thumb:active {
background: #5E8ACC !important
}
scrollbar[orient="vertical"] {
width: 14px !important;
margin-left: -14px !important;
margin-right: 0px !important;
margin-bottom: 0px !important;
}
scrollbar[orient="horizontal"] {
height: 14px !important;
margin-top: 0px !important;
margin-bottom: 0px !important;
}
scrollbar:not(#foo) {
background-color: rgba(135, 135, 135, .20) !important
}
scrollbar scrollbarbutton, scrollbar scrollcorner {
display: none !important
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment