Anki/qt/aqt/data/web/css/reviewer-bottom.scss
Matthias Metelka 87db774412 Apply CSS variables from Python side
Why go full-circle with the Sass variables? This way we only need one interface for add-on authors to interact with. It also makes it easier for us to apply additional themes in the future.
2022-10-23 12:59:05 +02:00

86 lines
1.2 KiB
SCSS

/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
@use "sass/vars" as *;
@use "sass/card-counts";
:root {
--focus-color: #{palette-of(border-focus)};
.isMac {
--focus-color: rgba(0 103 244 / 0.247);
}
}
body {
margin: 0;
padding: 0;
}
button {
min-width: 60px;
white-space: nowrap;
margin: 0.5em;
}
.hitem {
margin-top: 2px;
}
.stat {
padding-top: 5px;
@media (max-width: 583px) {
display: none;
}
}
.stat2 {
padding-top: 3px;
font-weight: normal;
}
.stattxt {
padding-left: 5px;
padding-right: 5px;
white-space: nowrap;
}
#ansbut {
margin-bottom: 1em;
}
:focus {
outline: 1px auto color(focus-color);
.nightMode & {
outline: none;
box-shadow: 0 0 0 2px color(focus-color);
}
}
.nobold {
font-weight: normal;
display: inline-block;
padding-top: 4px;
}
.spacer {
height: 18px;
}
.spacer2 {
height: 16px;
}
#outer {
border-top: 1px solid color(border);
/* Better compatibility with graphics pad/touchscreen */
-webkit-user-select: none;
}
.nightMode {
#outer {
border-top-color: color(border-subtle);
}
}