Skip to content

Instantly share code, notes, and snippets.

@rpavlik
Created October 13, 2023 17:49
Show Gist options
  • 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