| 1 |
/*! |
| 2 |
* VisualEditor MediaWiki UserInterface MWAceEditorWidget styles. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
* @license The MIT License (MIT); see LICENSE.txt |
| 6 |
*/ |
| 7 |
|
| 8 |
/* stylelint-disable selector-class-pattern */ |
| 9 |
@import 'mediawiki.skin.variables.less'; |
| 10 |
|
| 11 |
.ve-ui-mwAceEditorWidget { |
| 12 |
.ace_editor { |
| 13 |
border: @border-subtle; |
| 14 |
margin: 1px; |
| 15 |
/* Support: Blink, Gecko, Webkit */ |
| 16 |
/* Specify a valid second value to fix size, see T176636 */ |
| 17 |
font-family: monospace, monospace; |
| 18 |
font-size: inherit; |
| 19 |
line-height: 1.5; |
| 20 |
/* Allow tooptip outside of editor */ |
| 21 |
overflow: visible; |
| 22 |
} |
| 23 |
|
| 24 |
.ace_tooltip { |
| 25 |
/* Make tooltip into status bar, as position is broken in Ace */ |
| 26 |
top: auto !important; /* stylelint-disable-line declaration-no-important */ |
| 27 |
bottom: -23px !important; /* stylelint-disable-line declaration-no-important */ |
| 28 |
left: 0 !important; /* stylelint-disable-line declaration-no-important */ |
| 29 |
white-space: pre-wrap; |
| 30 |
position: absolute; |
| 31 |
} |
| 32 |
|
| 33 |
.ace_focus { |
| 34 |
/* TODO: Move to mediawiki theme only */ |
| 35 |
border-color: @border-color-progressive--focus; |
| 36 |
/* HACK: Make border grow out as inset doesn't overlap absolute positioned children */ |
| 37 |
border-width: 2px; |
| 38 |
margin: 0; |
| 39 |
} |
| 40 |
|
| 41 |
&.oo-ui-widget-enabled.oo-ui-flaggedElement-invalid .ace_editor { |
| 42 |
border-color: @border-color-error; |
| 43 |
} |
| 44 |
} |