mediawiki-extensions-CodeMi.../resources/ext.CodeMirror.less
Sam Wilson 1310fbf645 Support WikiEditor's realtime-preview feature
Add support for enabling, resizing, and disabling the new
realtime-preview feature.

Bug: T293347
Bug: T303767
Change-Id: I8c8c25fe56be55a61f4b8d1d2ef8cf74483aa241
2022-03-24 12:02:03 +08:00

29 lines
489 B
Plaintext

@import 'mediawiki.mixins';
.mw-editfont-monospace,
.mw-editfont-sans-serif,
.mw-editfont-serif {
.CodeMirror {
// Don't let CodeMirror set the font to monospace if it's set on an ancestor.
// See T245568
font-family: inherit;
}
}
.wikiEditor-ui .CodeMirror {
line-height: 1.5em;
padding: 0.1em;
clear: both;
box-sizing: border-box;
pre,
.CodeMirror-lines {
padding: 0;
}
}
.wikiEditor-ui-toolbar {
// Increase z-index to be above codemirror scrollbar
z-index: 7;
}