anki/ts/editor/editable.scss

43 lines
651 B
SCSS
Raw Normal View History

@use 'ts/sass/scrollbar';
2021-06-17 17:18:00 +02:00
@import "ts/sass/codemirror/lib/codemirror";
@import "ts/sass/codemirror/theme/monokai";
2021-06-17 15:30:05 +02:00
anki-editable {
display: block;
overflow-wrap: break-word;
overflow: auto;
padding: 6px;
&:empty::after {
content: "\a";
white-space: pre;
}
* {
max-width: 100%;
}
}
p {
margin-top: 0;
margin-bottom: 1rem;
&:empty::after {
content: "\a";
white-space: pre;
}
}
:host-context(.nightMode) * {
@include scrollbar.night-mode;
}
img.drawing {
zoom: 50%;
2021-02-16 18:28:40 +01:00
.nightMode & {
filter: unquote("invert() hue-rotate(180deg)");
}
}