Skip to content

Instantly share code, notes, and snippets.

@slavkapiyavka
Last active July 4, 2023 07:37
Show Gist options
  • Save slavkapiyavka/1b75c9b732b75293df9c5937e7b46b6b to your computer and use it in GitHub Desktop.
Save slavkapiyavka/1b75c9b732b75293df9c5937e7b46b6b to your computer and use it in GitHub Desktop.
customizable style scrollbar
:root {
--lightsteelblue: hsl(214, 41%, 78%);
--steelblue: hsl(207, 44%, 49%);
--lightgray: hsl(0, 0%, 83%);
}
::-webkit-scrollbar {
width: 6px;
height: 6px;
background-color: var(--lightsteelblue);
}
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-corner {
background-color: var(--steelblue);
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px var(--lightgray);
background-color: var(--lightsteelblue);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment