Skip to content

Instantly share code, notes, and snippets.

@oilvier
Created May 3, 2021 14:53
Show Gist options
  • Save oilvier/8c9f347569c4a1dafa5a30c875eb170f to your computer and use it in GitHub Desktop.
Save oilvier/8c9f347569c4a1dafa5a30c875eb170f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@mixin custom-scrollbars {
scrollbar-width: thin;
scrollbar-color: grey red;
&::-webkit-scrollbar{
width: 4px;
}
&::-webkit-scrollbar-track{
background-color: red;
}
&::-webkit-scrollbar-thumb {
border-radius: 3px;
background: grey;
border: 3px solid red;
}
}
body {
@include custom-scrollbars;
height: 2000px;
}
<ul>
<li class="foo">lorem ipsum</li>
<li class="foo __bar">lorem ipsum</li>
<li class="foo __bar baz">lorem ipsum</li>
</ul>
<ul>
<li class="foo2">lorem ipsum</li>
<li class="foo2--bar">lorem ipsum</li>
<li class="foo2 foo2--bar baz2">lorem ipsum</li>
</ul>
body {
scrollbar-width: thin;
scrollbar-color: grey red;
height: 2000px;
}
body::-webkit-scrollbar {
width: 4px;
}
body::-webkit-scrollbar-track {
background-color: red;
}
body::-webkit-scrollbar-thumb {
border-radius: 3px;
background: grey;
border: 3px solid red;
}
{
"sass": {
"compiler": "libsass/3.5.5",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment