Anki/qt/ts/scss/webview.scss
Damien Elmes 2d26280dab migrate the majority of the sass vars to css variables
Allows add-ons to easily override the theme, and allows us to apply
styling to elements outside of the normal document flow (like applying
the normal background colour to a position: fixed element).
2020-09-01 10:24:38 +10:00

57 lines
968 B
SCSS

/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
@use 'vars';
@use 'buttons';
body {
margin: 2em;
color: var(--text-fg);
background: var(--window-bg);
}
h1 {
margin-bottom: 0.2em;
}
a {
color: var(--link);
}
body.nightMode {
color: var(--text-fg);
background: var(--window-bg);
}
body.nightMode::-webkit-scrollbar {
background: var(--window-bg);
}
body.nightMode::-webkit-scrollbar:horizontal {
height: 12px;
}
body.nightMode::-webkit-scrollbar:vertical {
width: 12px;
}
body.nightMode::-webkit-scrollbar-thumb {
background: buttons.$fusion-button-hover-bg;
border-radius: 8px;
}
body.nightMode::-webkit-scrollbar-thumb:horizontal {
min-width: 50px;
}
body.nightMode::-webkit-scrollbar-thumb:vertical {
min-height: 50px;
}
.nightMode {
a {
color: var(--link);
}
}
body { overscroll-behavior: none; }