Created
October 13, 2023 17:49
-
-
Save rpavlik/8aac11dc8370b6bed8ec11b96c2572e9 to your computer and use it in GitHub Desktop.
Less sucky scrollbars in webkit/electron apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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