Skip to content

Commit ec7e053

Browse files
committed
move to global variable
1 parent 59230d2 commit ec7e053

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

web_src/css/base.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
--border-radius-circle: 50%;
2222
--opacity-disabled: 0.55;
2323
--height-loading: 16rem;
24+
--min-height-textarea: 132px;
2425
--tab-size: 4;
2526
}
2627

@@ -493,7 +494,8 @@ ol.ui.list li,
493494
}
494495

495496
.ui.form textarea:not([rows]) {
496-
height: 8em; /* override fomantic default 12em */
497+
height: var(--min-height-textarea); /* override fomantic default 12em */
498+
min-height: var(--min-height-textarea); /* override fomantic default 8em */
497499
}
498500

499501
/* styles from removed fomantic transition module */

web_src/css/editor/combomarkdowneditor.css

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

65
.combo-markdown-editor markdown-toolbar {
@@ -38,13 +37,13 @@
3837
.combo-markdown-editor textarea.markdown-text-editor {
3938
display: block;
4039
width: 100%;
41-
min-height: var(--height-textarea);
42-
max-height: calc(100vh - var(--height-textarea));
40+
min-height: var(--min-height-textarea);
41+
max-height: calc(100vh - var(--min-height-textarea));
4342
resize: vertical;
4443
}
4544

4645
.combo-markdown-editor .CodeMirror-scroll {
47-
max-height: calc(100vh - var(--height-textarea));
46+
max-height: calc(100vh - var(--min-height-textarea));
4847
}
4948

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

0 commit comments

Comments
 (0)