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