2015-10-21 15:30:57 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor MediaWiki UserInterface MWAceEditorWidget styles.
|
|
|
|
*
|
2017-01-03 16:58:33 +00:00
|
|
|
* @copyright 2011-2017 VisualEditor Team and others; see AUTHORS.txt
|
2015-10-21 15:30:57 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
.ve-ui-mwAceEditorWidget .ace_editor {
|
2017-08-16 20:42:24 +00:00
|
|
|
border: 1px solid #c8ccd1;
|
2015-10-21 15:30:57 +00:00
|
|
|
margin: 1px;
|
2017-09-27 22:24:53 +00:00
|
|
|
/* Support: Blink, Gecko, Webkit */
|
|
|
|
/* Specify a valid second value to fix size, see T176636 */
|
|
|
|
font-family: monospace, monospace;
|
2015-10-21 15:30:57 +00:00
|
|
|
font-size: inherit;
|
|
|
|
line-height: 1.5;
|
2017-03-15 17:43:07 +00:00
|
|
|
/* Allow tooptip outside of editor */
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwAceEditorWidget .ace_tooltip {
|
|
|
|
/* Make tooltip into status bar, as position is broken in Ace */
|
|
|
|
top: auto !important; /* stylelint-disable-line declaration-no-important */
|
|
|
|
bottom: -23px !important; /* stylelint-disable-line declaration-no-important */
|
|
|
|
left: 0 !important; /* stylelint-disable-line declaration-no-important */
|
|
|
|
white-space: pre-wrap;
|
|
|
|
position: absolute;
|
2015-10-21 15:30:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwAceEditorWidget .ace_focus {
|
|
|
|
/* TODO: Move to mediawiki theme only */
|
2016-09-19 22:25:45 +00:00
|
|
|
border-color: #36c;
|
2015-10-21 15:30:57 +00:00
|
|
|
/* HACK: Make border grow out as inset doesn't overlap absolute positioned children */
|
|
|
|
border-width: 2px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2015-10-27 19:02:17 +00:00
|
|
|
|
|
|
|
.ve-ui-mwAceEditorWidget.oo-ui-widget-enabled.oo-ui-flaggedElement-invalid .ace_editor {
|
2017-08-16 20:42:24 +00:00
|
|
|
border-color: #d33;
|
2016-05-16 14:38:57 +00:00
|
|
|
}
|