anki/ts/editable/editable-base.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

29 lines
311 B
SCSS

@use "sass/scrollbar";
* {
max-width: 100%;
}
p {
margin-top: 0;
margin-bottom: 1rem;
&:empty::after {
content: "\a";
white-space: pre;
}
}
[hidden] {
display: none;
}
:host(body),
:host(body) * {
@include scrollbar.custom;
}
pre {
white-space: pre-wrap;
}