]> BookStack Code Mirror - bookstack/blobdiff - resources/sass/_codemirror.scss
Fixed OIDC Logout
[bookstack] / resources / sass / _codemirror.scss
index de82d4989715d75695e31c48b07a2134336f9356..c4b0e2e8958635b15aec5ff66c288d642f0f0108 100644 (file)
@@ -5,11 +5,19 @@
 .cm-editor {
   font-size: 12px;
   border: 1px solid #ddd;
-  margin-bottom: $-l;
   line-height: 1.4;
+  margin-bottom: $-l;
+}
+
+.page-content .cm-editor,
+.CodeMirrorContainer .cm-editor {
   border-radius: 4px;
 }
 
+.cm-editor .cm-line, .cm-editor .cm-gutter {
+  font-family: var(--font-code);
+}
+
 // Manual dark-mode definition so that it applies to code blocks within the shadow
 // dom which are used within the WYSIWYG editor, as the .dark-mode on the parent
 // <html> node are not applies so instead we have the class on the parent element.
@@ -46,7 +54,7 @@
     fill: currentColor;
   }
   &.success {
-    background: $positive;
+    background: var(--color-positive);
     color: #FFF;
   }
   &:focus {