mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
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).
57 lines
968 B
SCSS
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; }
|