mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
aaffa6aa46
Replacing remaining greys and reds apart Monobook/Apex specific stylesheets with WikimediaUI palette colors. Bug: T173459 Change-Id: I9b5b1c379bf76e8da57eeff28c7dd000f148a8fc
39 lines
1.2 KiB
CSS
39 lines
1.2 KiB
CSS
/*!
|
|
* VisualEditor MediaWiki UserInterface MWAceEditorWidget styles.
|
|
*
|
|
* @copyright 2011-2017 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-ui-mwAceEditorWidget .ace_editor {
|
|
border: 1px solid #c8ccd1;
|
|
margin: 1px;
|
|
/* Specify a valid second value to fix size in Chrome/FF */
|
|
font-family: monospace, 'Courier';
|
|
font-size: inherit;
|
|
line-height: 1.5;
|
|
/* 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;
|
|
}
|
|
|
|
.ve-ui-mwAceEditorWidget .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;
|
|
}
|
|
|
|
.ve-ui-mwAceEditorWidget.oo-ui-widget-enabled.oo-ui-flaggedElement-invalid .ace_editor {
|
|
border-color: #d33;
|
|
}
|