5 * Custom CodeMirror BookStack overrides
10 border: 1px solid #ddd;
12 margin-bottom: vars.$l;
15 .page-content .cm-editor,
16 .CodeMirrorContainer .cm-editor {
24 .cm-editor .cm-line, .cm-editor .cm-gutter {
25 font-family: var(--font-code);
28 // Manual dark-mode definition so that it applies to code blocks within the shadow
29 // dom which are used within the WYSIWYG editor, as the .dark-mode on the parent
30 // <html> node are not applies so instead we have the class on the parent element.
31 .dark-mode .cm-editor {
42 justify-content: center;
44 inset-inline-end: -1px;
45 background-color: #EEE;
46 border: 1px solid #DDD;
47 border-start-end-radius: 4px;
48 @include mixins.lightDark(background-color, #eee, #333);
49 @include mixins.lightDark(border-color, #ddd, #444);
50 @include mixins.lightDark(color, #444, #888);
59 transition: background-color linear 60ms, color linear 60ms;
64 background: var(--color-positive);
68 outline: 0 !important;
71 .cm-editor:hover .cm-copy-button {