Anki/qt/aqt/data/web/css/webview.scss
Matthias Metelka c1176a2e6c
Fix custom webview scrollbar not showing (#2085)
* Fix custom scrollbar not showing

* Move body selector out of scrollbar mixin

* Apply custom scrollbar to child elements too

* Remove some duplicate definitions

* Run prettier
2022-09-26 09:13:06 +10:00

33 lines
680 B
SCSS

/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
@use "sass/scrollbar";
@use "sass/buttons";
* {
// border-box would be better, but we need to
// keep the old behaviour for now to avoid breaking
// add-ons/card templates
box-sizing: content-box;
}
body {
color: var(--fg);
background: var(--canvas);
transition: opacity 0.5s ease-out;
margin: 2em;
overscroll-behavior: none;
&:not(.isMac),
&:not(.isMac) * {
@include scrollbar.custom;
}
}
a {
color: var(--accent-link);
text-decoration: none;
}
h1 {
margin-bottom: 0.2em;
}