2015-10-21 15:30:57 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor MediaWiki UserInterface MWAceEditorWidget styles.
|
|
|
|
*
|
2023-12-01 16:06:11 +00:00
|
|
|
* @copyright See AUTHORS.txt
|
2015-10-21 15:30:57 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2019-01-13 00:21:33 +00:00
|
|
|
/* stylelint-disable selector-class-pattern */
|
|
|
|
|
2024-03-16 00:45:14 +00:00
|
|
|
.ve-ui-mwAceEditorWidget {
|
|
|
|
.ace_editor {
|
|
|
|
border: 1px solid #c8ccd1;
|
|
|
|
margin: 1px;
|
|
|
|
/* Support: Blink, Gecko, Webkit */
|
|
|
|
/* Specify a valid second value to fix size, see T176636 */
|
|
|
|
font-family: monospace, monospace;
|
|
|
|
font-size: inherit;
|
|
|
|
line-height: 1.5;
|
|
|
|
/* Allow tooptip outside of editor */
|
|
|
|
overflow: visible;
|
|
|
|
}
|
2017-03-15 17:43:07 +00:00
|
|
|
|
2024-03-16 00:45:14 +00:00
|
|
|
.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
|
|
|
|
2024-03-16 00:45:14 +00:00
|
|
|
.ace_focus {
|
|
|
|
/* TODO: Move to mediawiki theme only */
|
|
|
|
border-color: #36c;
|
|
|
|
/* 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
|
|
|
|
2024-03-16 00:45:14 +00:00
|
|
|
&.oo-ui-widget-enabled.oo-ui-flaggedElement-invalid .ace_editor {
|
2024-03-29 03:40:27 +00:00
|
|
|
border-color: #b32424;
|
2024-03-16 00:45:14 +00:00
|
|
|
}
|
2016-05-16 14:38:57 +00:00
|
|
|
}
|