anki/ts/editor/editable.scss

52 lines
718 B
SCSS
Raw Normal View History

2021-08-17 22:07:28 +02:00
@use 'scrollbar';
anki-editable {
display: block;
overflow-wrap: break-word;
overflow: auto;
padding: 6px;
&:focus {
outline: none;
}
* {
max-width: 100%;
}
}
p {
margin-top: 0;
margin-bottom: 1rem;
&:empty::after {
content: "\a";
white-space: pre;
}
}
2021-07-26 16:06:50 +02:00
:host(.nightMode) * {
@include scrollbar.night-mode;
}
img.drawing {
zoom: 50%;
2021-02-16 18:28:40 +01:00
.nightMode & {
filter: unquote("invert() hue-rotate(180deg)");
}
}
[hidden] {
display: none;
}
2021-08-17 22:07:28 +02:00
@import "codemirror/lib/codemirror";
@import "codemirror/theme/monokai";
@import "codemirror/addon/fold/foldgutter";
.CodeMirror {
height: auto;
padding: 6px 0;
}