gab-social/app/javascript/styles/gabsocial/scrollbars.scss

36 lines
1.4 KiB
SCSS
Raw Normal View History

2019-07-02 08:10:25 +01:00
// A lot of this stuff is temporary for now.
// Content containers are meant to behave much differently than the mastodon default UI
// For now linking default gab colors to replace the base UI colors and formulas
html {scrollbar-color: lighten($gab-background-container, 4%) $gab-background-container;}
2019-07-02 08:10:25 +01:00
::-webkit-scrollbar {
width: 12px;
height: 12px;
2019-07-02 08:10:25 +01:00
}
::-webkit-scrollbar-thumb {
border: none;
background: rgba($gab-placeholder-accent, .5);
@at-root body.theme-gabsocial-light#{&} {background: rgba($gab-background-container-light, .3);}
2019-07-02 08:10:25 +01:00
}
::-webkit-scrollbar-thumb:hover {
background: rgba($gab-placeholder-accent, .75);
@at-root body.theme-gabsocial-light#{&} {background: rgba($gab-background-container-light, .4);}
2019-07-02 08:10:25 +01:00
}
::-webkit-scrollbar-thumb:active {
background: $gab-placeholder-accent;
@at-root body.theme-gabsocial-light#{&} {background: rgba($gab-background-container-light, .5);}
2019-07-02 08:10:25 +01:00
}
::-webkit-scrollbar-track {
border: none;
background: rgba($gab-background-container, .5);
@at-root body.theme-gabsocial-light#{&} {background: rgba($gab-background-base, .3);}
2019-07-02 08:10:25 +01:00
}
::-webkit-scrollbar-track:hover {
background: rgba($gab-background-container, .75);
@at-root body.theme-gabsocial-light#{&} {background: rgba($gab-background-base, .4);}
2019-07-02 08:10:25 +01:00
}
::-webkit-scrollbar-track:active {
background: $gab-background-container;
@at-root body.theme-gabsocial-light#{&} {background: rgba($gab-background-base, .5);}
2019-07-02 08:10:25 +01:00
}
::-webkit-scrollbar-corner {background: transparent;}