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