mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-12-21 01:52:37 +00:00
1310fbf645
Add support for enabling, resizing, and disabling the new realtime-preview feature. Bug: T293347 Bug: T303767 Change-Id: I8c8c25fe56be55a61f4b8d1d2ef8cf74483aa241
29 lines
489 B
Plaintext
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;
|
|
}
|