Skip to content

Instantly share code, notes, and snippets.

@delphinpro
Last active February 10, 2020 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save delphinpro/266c7a76e614e1ccc69a8a7ac7b29dc5 to your computer and use it in GitHub Desktop.
Save delphinpro/266c7a76e614e1ccc69a8a7ac7b29dc5 to your computer and use it in GitHub Desktop.
@mixin webkit-scrollbar($color, $background: transparent, $size: 3px) {
&::-webkit-scrollbar {
width: $size;
height: $size;
}
&::-webkit-scrollbar-button {
display: none;
//background: none;
//size: $size;
//height: $size;
}
&::-webkit-scrollbar-corner {
background: transparent;
}
&::-webkit-scrollbar-track {
background-color: $background;
}
&::-webkit-scrollbar-thumb {
background-color: $color;
&:hover { background-color: $color; }
}
&::-webkit-resizer {
display: none;
//background: none;
//size: $size;
//height: $size;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment