mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
9307fa7095
As part of the plan to render extension errors in the inspector instead of the view, append an element to contain the error. More specifically, the element is a div that contains a LabelWidget (in which the error message is displayed) and a ButtonWidget (to expand and collapse the error). Initially the error element is hidden, but if Parsoid returns an error, the element will be shown. If the error is longer than 1 line, it is truncated but can be expanded. On closing the inspector, any remaining error is collapsed and hidden. Depends on I6002d9870d2b to work Bug: T113172 Change-Id: Ie84130d4ac0da9a738bf98ad0a3677d47566d585
28 lines
584 B
CSS
28 lines
584 B
CSS
/*!
|
|
* VisualEditor MediaWiki UserInterface alien extension inspector styles.
|
|
*
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-ui-mwLiveExtensionInspector-error-container-hidden {
|
|
display: none;
|
|
}
|
|
|
|
.ve-ui-mwLiveExtensionInspector-error {
|
|
display: block;
|
|
margin-right: 2.5em;
|
|
color: #c00;
|
|
}
|
|
|
|
.ve-ui-mwLiveExtensionInspector-error-collapsed {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ve-ui-mwLiveExtensionInspector-error-button {
|
|
float: right;
|
|
margin-top: -0.3em;
|
|
}
|