anki/qt/aqt/data/web/css/webview.scss
Henrik Giesel 8aa8174d4b Fix scrollbar issue in anki-editable component in two ways
- using :host-context(.nightMode) allows for applying the nightmode
  scroll bar inside the component
- apply max-width: 100% to all element within editable, not just images
2021-02-23 15:52:20 +01:00

27 lines
498 B
SCSS

/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
@use 'ts/sass/core';
@use 'ts/sass/scrollbar';
@use 'ts/sass/buttons';
// core.scss sets border-box, but we need to
// keep the old behaviour for now to avoid breaking
// add-ons/card templates
* {
box-sizing: content-box;
}
body {
margin: 2em;
overscroll-behavior: none;
}
h1 {
margin-bottom: 0.2em;
}
.nightMode {
@include scrollbar.night-mode;
}