anki/qt/ts/scss/webview.scss
2020-01-26 10:39:53 +10:00

51 lines
911 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: vars.$day-text-fg;
// currently this is injected via webview.py to try to match the
// system background color
// background: vars.$day-window-bg;
}
h1 {
margin-bottom: 0.2em;
}
a {
color: vars.$day-link;
}
body.nightMode {
color: vars.$night-text-fg;
background: vars.$night-window-bg;
}
body.nightMode::-webkit-scrollbar {
background: vars.$night-window-bg;
}
body.nightMode::-webkit-scrollbar:horizontal {
height: 10px;
}
body.nightMode::-webkit-scrollbar:vertical {
width: 10px;
}
body.nightMode::-webkit-scrollbar-thumb {
background: vars.$fusion-button-hover-bg;
border-radius: 8px;
}
.nightMode {
a {
color: vars.$night-link;
}
}