mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
657ba3648a
This only effects users of the CM6 CodeMirror class, so doesn't (yet) solve the issue for the 2017 editor which is partly what T245568 is for. I135bf0f7bf supposedly fixed it for the 2010 editor, but that fix apparently doesn't work anymore, and thus those styles have simply been removed (the .CodeMirror element is never a child of the edit font classes). This change also incidentally fixes font sizing issues by ensuring the styles are applied to `.cm-content` and not `.cm-editor`. This prior bug was most notably visible in other skins such as Timeless and Monobook. The colorblind CSS class is now applied in the same way using the EditorView.contrentAttributes facet. Bug: T245568 Change-Id: Iaaf65e47ce8ed9303147aadc7e18a9aaa051405b
21 lines
383 B
Plaintext
21 lines
383 B
Plaintext
@import 'mediawiki.mixins';
|
|
|
|
/* TODO: Remove styles below following CM6 upgrade, or move them to ext.CodeMirror.v6.WikiEditor.less */
|
|
|
|
.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;
|
|
}
|