mediawiki-extensions-CodeMi.../resources/ext.CodeMirror.less
Ed Sanders 6d92dd818d Use upstream OOUI icons for WikiEditor toolbar
Also uses upstream tool-active styling, which was
based on cm-on.svg.

Depends-On: I3e6f65f6f290778d3fbfa22f5d212c26fee12a86
Change-Id: Ib42be9f8b87efe1387eb5c77698fd2f0af0a673d
2018-03-23 13:43:30 +00:00

38 lines
662 B
Plaintext

@import 'mediawiki.mixins';
.CodeMirror {
line-height: 1.5em;
padding: 0.1em;
}
.wikiEditor-ui .CodeMirror {
clear: both;
}
.mw-codeMirror-classicToolbar {
border: 1px solid #a2a9b1;
}
.CodeMirror pre,
.CodeMirror-lines {
padding: 0;
}
// Classic toolbar
&.mw-toolbar-editbutton {
.background-image-svg( 'images/old-cm-off.svg', 'images/old-cm-off.png' );
}
.mw-editbutton-codemirror-active {
// Classic toolbar
&.mw-toolbar-editbutton {
.background-image-svg( 'images/old-cm-on.svg', 'images/old-cm-on.png' );
}
}
.wikiEditor-ui-toolbar,
.oo-ui-popupWidget.ve-init-mw-switchPopupWidget {
// Increase z-index to above scrollbar
z-index: 7;
}