2 * Custom CodeMirror BookStack overrides
7 border: 1px solid #ddd;
12 .page-content .cm-editor,
13 .CodeMirrorContainer .cm-editor {
17 // Manual dark-mode definition so that it applies to code blocks within the shadow
18 // dom which are used within the WYSIWYG editor, as the .dark-mode on the parent
19 // <html> node are not applies so instead we have the class on the parent element.
20 .dark-mode .cm-editor {
31 justify-content: center;
34 background-color: #EEE;
35 border: 1px solid #DDD;
36 border-radius: 0 4px 0 0;
37 @include lightDark(background-color, #eee, #333);
38 @include lightDark(border-color, #ddd, #444);
39 @include lightDark(color, #444, #888);
48 transition: background-color linear 60ms, color linear 60ms;
53 background: var(--color-positive);
57 outline: 0 !important;
60 .cm-editor:hover .cm-copy-button {