Skip to content

Instantly share code, notes, and snippets.

@Gkiokan
Created August 22, 2023 23:19
Show Gist options
  • Save Gkiokan/b23a66394b10557f9153443e6e8ae570 to your computer and use it in GitHub Desktop.
Save Gkiokan/b23a66394b10557f9153443e6e8ae570 to your computer and use it in GitHub Desktop.
Scrollbar Base SCSS
html, body.body--dark {
/* Foreground, Background */
scrollbar-color: #999 #333;
::-webkit-scrollbar {
width: 10px; /* Mostly for vertical scrollbars */
height: 5px; /* Mostly for horizontal scrollbars */
}
::-webkit-scrollbar-thumb { /* Foreground */
background: #2a2a2a;
}
::-webkit-scrollbar-track { /* Background */
background: #1a1a1a;
}
}
body.body--light {
/* Foreground, Background */
scrollbar-color: #999 #333;
::-webkit-scrollbar {
width: 10px; /* Mostly for vertical scrollbars */
height: 5px; /* Mostly for horizontal scrollbars */
}
::-webkit-scrollbar-thumb { /* Foreground */
background: #ccc;
}
::-webkit-scrollbar-track { /* Background */
background: #efefef;
}
}
.noselect {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment