Skip to content

Instantly share code, notes, and snippets.

@rpavlik
Created October 13, 2023 17:49
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 rpavlik/8aac11dc8370b6bed8ec11b96c2572e9 to your computer and use it in GitHub Desktop.
Save rpavlik/8aac11dc8370b6bed8ec11b96c2572e9 to your computer and use it in GitHub Desktop.
Less sucky scrollbars in webkit/electron apps
/* inspired by https://artemis.sh/2023/10/12/scrollbars.html and https://gist.github.com/devinrhode2/2573411 */
/* tested out in logseq since it lets you monkey with the CSS of the app live. */
html ::-webkit-scrollbar {
width: 15px;
background-color: #333;
-webkit-border-radius: 100px;
}
html ::-webkit-scrollbar-thumb:vertical {
background-color: #aaa;
-webkit-border-radius: 100px;
}
html ::-webkit-scrollbar-thumb:vertical:active {
background-color: #ccc;
-webkit-border-radius: 100px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment