mirror of
https://github.com/logseq/logseq.git
synced 2026-05-28 06:34:34 +00:00
enhance(ui): extra white space of code block from top
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user