mediawiki-extensions-CodeMi.../resources/ext.CodeMirror.less

31 lines
595 B
Plaintext
Raw Normal View History

@import 'mediawiki.mixins';
/* TODO: Remove styles below following CM6 upgrade, or move them to ext.CodeMirror.v6.WikiEditor.less */
.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;
}