anki/qt/ts/scss/webview.scss

61 lines
1.1 KiB
SCSS
Raw Normal View History

2019-02-05 04:59:03 +01:00
/* 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;
2020-01-23 09:36:42 +01:00
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;
}
2020-01-23 00:02:42 +01:00
2020-01-23 22:17:24 +01:00
a {
color: vars.$day-link;
}
2020-01-23 00:02:42 +01:00
body.nightMode {
color: vars.$night-text-fg;
background: vars.$night-window-bg;
2020-01-23 00:02:42 +01:00
}
2020-01-23 22:17:24 +01:00
2020-01-23 22:41:39 +01:00
body.nightMode::-webkit-scrollbar {
background: vars.$night-window-bg;
}
body.nightMode::-webkit-scrollbar:horizontal {
height: 12px;
2020-01-23 22:41:39 +01:00
}
body.nightMode::-webkit-scrollbar:vertical {
width: 12px;
2020-01-23 22:41:39 +01:00
}
body.nightMode::-webkit-scrollbar-thumb {
background: vars.$fusion-button-hover-bg;
2020-01-23 22:41:39 +01:00
border-radius: 8px;
}
body.nightMode::-webkit-scrollbar-thumb:horizontal {
min-width: 50px;
}
body.nightMode::-webkit-scrollbar-thumb:vertical {
min-height: 50px;
}
2020-01-23 22:17:24 +01:00
.nightMode {
a {
color: vars.$night-link;
}
}
body { overscroll-behavior: none; }