Add CSS for hidden textarea and line numbers

This commit is contained in:
2026-02-01 03:50:44 +01:00
parent a1f129a9cb
commit 5b5371d3a8

View File

@@ -644,6 +644,40 @@ body:not([data-theme="light"]) .folder-item {
outline: none;
}
.editor__textarea--hidden {
display: none;
}
.editor__textarea-wrap--preview .tln-wrapper {
display: none;
}
.tln-wrapper {
padding: 14px 10px;
min-width: 3ch;
text-align: right;
font-family: "SF Mono", "Menlo", "Consolas", monospace;
font-size: 0.95rem;
line-height: 1.5;
color: var(--muted);
background: var(--bg-contrast);
border-right: 1px solid var(--border);
user-select: none;
overflow: hidden;
counter-reset: line;
}
.tln-line {
display: block;
height: 1.5em;
}
.tln-line::before {
counter-increment: line;
content: counter(line);
font-variant-numeric: tabular-nums;
}
.markdown-preview {
flex: 1;
width: 100%;
@@ -652,6 +686,10 @@ body:not([data-theme="light"]) .folder-item {
color: var(--ink);
}
.markdown-preview--hidden {
display: none;
}
.editor__footer {
display: flex;
flex-wrap: wrap;