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

This commit is contained in:
charlie
2022-06-11 13:23:46 +08:00
committed by Tienson Qin
parent e93480b664
commit f8c4f50cf8

View File

@@ -13,7 +13,7 @@
position: absolute;
width: fit-content;
/* height:2rem; */
order:3;
order: 3;
display: flex;
left: auto;
right: 0;
@@ -21,10 +21,6 @@
z-index: 9999;
}
.code-editor {
margin-top: 28px;
}
&-calc {
@apply text-sm;
padding: 0.25em;
@@ -40,22 +36,22 @@
}
.CodeMirror {
width: 100%;
font-family: Fira Code, Monaco, Menlo, Consolas, 'COURIER NEW', monospace;
border-radius: 2px;
line-height: 1.45em;
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;
}
&: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;
}
}