feat: move scrollbar styles and add variables locally
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
@import "scrollbars";
|
||||
|
||||
@import "theme";
|
||||
|
||||
@import "content";
|
||||
|
31
src/styles/theme/scrollbars.scss
Normal file
31
src/styles/theme/scrollbars.scss
Normal file
@ -0,0 +1,31 @@
|
||||
$scrollbar-height: 8px;
|
||||
$scrollbar-track-color: $grey-200;
|
||||
$scrollbar-thumb-color: $grey-300;
|
||||
$scrollbar-hover-color: $grey-500;
|
||||
|
||||
// Chrome
|
||||
::-webkit-scrollbar {
|
||||
width: $scrollbar-height;
|
||||
height: $scrollbar-height;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: $scrollbar-track-color;
|
||||
border-radius: .5rem;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
border-radius: .5rem;
|
||||
background: $scrollbar-thumb-color;
|
||||
transition: all $transition;
|
||||
|
||||
&:hover {
|
||||
background: $scrollbar-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
// Firefox
|
||||
* {
|
||||
scrollbar-color: $scrollbar-thumb-color $scrollbar-track-color;
|
||||
scrollbar-width: thin;
|
||||
}
|
Reference in New Issue
Block a user