Skip to content

Instantly share code, notes, and snippets.

@melopilosyan
Created March 16, 2017 14:42
Show Gist options
  • Save melopilosyan/08f069dd22beee4ad9516cb552cf6001 to your computer and use it in GitHub Desktop.
Save melopilosyan/08f069dd22beee4ad9516cb552cf6001 to your computer and use it in GitHub Desktop.
Change horizontal scrollbar appearance
&::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
background-color: #F5F5F5;
border-radius: $ip-scrollbar-height;
}
&::-webkit-scrollbar{
height: $ip-scrollbar-height;
background-color: #F5F5F5;
}
&::-webkit-scrollbar-thumb {
background-color: #FB6401;
background-image: -webkit-linear-gradient(0deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
border-radius: $ip-scrollbar-height;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment