| 1 |
@import 'mediawiki.skin.variables.less'; |
| 2 |
|
| 3 |
// Overrides for WikiEditor. |
| 4 |
|
| 5 |
.wikiEditor-ui-text .cm-editor { |
| 6 |
border: inherit; |
| 7 |
} |
| 8 |
|
| 9 |
.cm-mw-toggle-wikieditor { |
| 10 |
.oo-ui-icon-syntax-highlight { |
| 11 |
background-color: @color-base; |
| 12 |
// The SVG is just barely over 300 bytes, and is also only temporary |
| 13 |
// until an official icon has been established in Codex/OOUI (T174145). |
| 14 |
/* @embed */ |
| 15 |
@url: url( codemirror.icon.svg ); |
| 16 |
-webkit-mask-image: @url; |
| 17 |
mask-image: @url; |
| 18 |
-webkit-mask-size: @size-icon-medium; |
| 19 |
mask-size: @size-icon-medium; |
| 20 |
-webkit-mask-repeat: no-repeat; |
| 21 |
mask-repeat: no-repeat; |
| 22 |
-webkit-mask-position: center; |
| 23 |
mask-position: center; |
| 24 |
} |
| 25 |
|
| 26 |
&:hover { |
| 27 |
background-color: @background-color-interactive; |
| 28 |
} |
| 29 |
|
| 30 |
&.oo-ui-toggleWidget-on { |
| 31 |
.oo-ui-labelElement-label { |
| 32 |
color: @color-progressive; |
| 33 |
} |
| 34 |
|
| 35 |
.oo-ui-icon-syntax-highlight { |
| 36 |
background-color: @color-progressive; |
| 37 |
} |
| 38 |
} |
| 39 |
|
| 40 |
&.oo-ui-buttonElement-frameless.oo-ui-labelElement.oo-ui-iconElement:first-child { |
| 41 |
margin-left: 0; |
| 42 |
} |
| 43 |
} |
| 44 |
|
| 45 |
// Hide all buttons except CodeMirror on read only pages (T301615) |
| 46 |
// This is the same hack that CodeEditor uses to customize the toolbar. |
| 47 |
// WikiEditor should be updated to better handle read only pages (T188817). |
| 48 |
.ext-codemirror-readonly { |
| 49 |
.wikiEditor-section-secondary, |
| 50 |
.group:not( .group-codemirror ), |
| 51 |
.tabs, |
| 52 |
.sections { |
| 53 |
display: none; |
| 54 |
} |
| 55 |
} |