mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
6d92dd818d
Also uses upstream tool-active styling, which was based on cm-on.svg. Depends-On: I3e6f65f6f290778d3fbfa22f5d212c26fee12a86 Change-Id: Ib42be9f8b87efe1387eb5c77698fd2f0af0a673d
38 lines
662 B
Plaintext
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;
|
|
}
|