anki/sass/scrollbar.scss

37 lines
711 B
SCSS
Raw Normal View History

/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
@use "vars";
@use "fusion-vars";
@mixin night-mode {
2021-02-28 01:17:42 +01:00
&::-webkit-scrollbar {
background-color: var(--window-bg);
2021-02-28 01:17:42 +01:00
&:horizontal {
height: 12px;
}
2021-02-28 01:17:42 +01:00
&:vertical {
width: 12px;
}
}
2021-02-28 01:17:42 +01:00
&::-webkit-scrollbar-thumb {
background: fusion-vars.$button-hover-bg;
2021-02-28 01:17:42 +01:00
border-radius: 8px;
2021-02-28 01:17:42 +01:00
&:horizontal {
min-width: 50px;
}
2021-02-28 01:17:42 +01:00
&:vertical {
min-height: 50px;
}
}
&::-webkit-scrollbar-corner {
background-color: var(--window-bg);
}
}