Skip to content

Commit 94fbd44

Browse files
authored
Set EasyMDE heading font-size to the same size as the resulting markdown (#24151) (#24152)
Backport #24151 Fix #23816 <img width="519" alt="image" src="https://user-images.githubusercontent.com/2114189/232283304-21f56e82-d80e-4199-9b14-74699d80cd20.png">
1 parent 494e373 commit 94fbd44

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

web_src/css/markup/content.css

+26
Original file line numberDiff line numberDiff line change
@@ -558,3 +558,29 @@
558558
border-top-left-radius: 0 !important;
559559
border-top-right-radius: 0 !important;
560560
}
561+
562+
563+
/* use the same styles as markup content, this is a quick backport, 1.20 has a ComboMarkdownEditor */
564+
.CodeMirror-scroll .cm-header-1 {
565+
font-size: 2em;
566+
}
567+
568+
.CodeMirror-scroll .cm-header-2 {
569+
font-size: 1.5em;
570+
}
571+
572+
.CodeMirror-scroll .cm-header-3 {
573+
font-size: 1.25em;
574+
}
575+
576+
.CodeMirror-scroll .cm-header-4 {
577+
font-size: 1em;
578+
}
579+
580+
.CodeMirror-scroll .cm-header-5 {
581+
font-size: 0.875em;
582+
}
583+
584+
.CodeMirror-scroll .cm-header-6 {
585+
font-size: 0.85em;
586+
}

0 commit comments

Comments
 (0)