Skip to content

Commit 59230d2

Browse files
committed
add per-element variable
1 parent ad60b11 commit 59230d2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web_src/css/editor/combomarkdowneditor.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.combo-markdown-editor {
22
width: 100%;
3+
--height-textarea: 140px;
34
}
45

56
.combo-markdown-editor markdown-toolbar {
@@ -37,13 +38,13 @@
3738
.combo-markdown-editor textarea.markdown-text-editor {
3839
display: block;
3940
width: 100%;
40-
min-height: 140px;
41-
max-height: calc(100vh - 140px);
41+
min-height: var(--height-textarea);
42+
max-height: calc(100vh - var(--height-textarea));
4243
resize: vertical;
4344
}
4445

4546
.combo-markdown-editor .CodeMirror-scroll {
46-
max-height: calc(100vh - 140px);
47+
max-height: calc(100vh - var(--height-textarea));
4748
}
4849

4950
/* use the same styles as markup/content.css */

0 commit comments

Comments
 (0)