Explorar el Código

enhance(ui): extra white space of code block from top

charlie hace 3 años
padre
commit
f8c4f50cf8
Se han modificado 1 ficheros con 16 adiciones y 20 borrados
  1. 16 20
      src/main/frontend/extensions/code.css

+ 16 - 20
src/main/frontend/extensions/code.css

@@ -13,7 +13,7 @@
     position: absolute;
     position: absolute;
     width: fit-content;
     width: fit-content;
     /* height:2rem; */
     /* height:2rem; */
-    order:3;
+    order: 3;
     display: flex;
     display: flex;
     left: auto;
     left: auto;
     right: 0;
     right: 0;
@@ -21,10 +21,6 @@
     z-index: 9999;
     z-index: 9999;
   }
   }
 
 
-  .code-editor {
-      margin-top: 28px;
-  }
-
   &-calc {
   &-calc {
     @apply text-sm;
     @apply text-sm;
     padding: 0.25em;
     padding: 0.25em;
@@ -40,22 +36,22 @@
 }
 }
 
 
 .CodeMirror {
 .CodeMirror {
-    width: 100%;
-    font-family: Fira Code, Monaco, Menlo, Consolas, 'COURIER NEW', monospace;
-    border-radius: 2px;
-    line-height: 1.45em;
-
-    &:not(.CodeMirror-focused) {
-        .CodeMirror-activeline-background {
-            background: unset !important;
-        }
+  width: 100%;
+  font-family: Fira Code, Monaco, Menlo, Consolas, 'COURIER NEW', monospace;
+  border-radius: 2px;
+  line-height: 1.45em;
+
+  &:not(.CodeMirror-focused) {
+    .CodeMirror-activeline-background {
+      background: unset !important;
     }
     }
+  }
 
 
-    pre.CodeMirror-line {
-        box-shadow: none !important;
-    }
+  pre.CodeMirror-line {
+    box-shadow: none !important;
+  }
 
 
-    .CodeMirror-hscrollbar {
-        cursor: pointer;
-    }
+  .CodeMirror-hscrollbar {
+    cursor: pointer;
+  }
 }
 }