mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
0f309f5b90
The previous patch I15aa2c0 (approved by UX) was incomplete. The required indicator was still shown, depending on the skin. This patch also reduces the amount of generated HTML when it doesn't have an effect anyway. At the moment an empty <span></span> is generated for _every_ parameter in the dialog. That's potentially hundreds. But the element is only needed for deprecated and (in the old UI) required parameters. A missing space is added while we touch this code anyway. The missing whitespace between label and indicator icon is confirmed to be a bug by UX. Styles that are the same on all skins are moved to the .css file that's loaded for all skins. Missing word-wrapping for overly long template parameter names (on the right side of the dialog) is added. The position of the indicator icon was broken on Minerva the moment a parameter name is a bit longer. Fixed by replacing `inline-block` with `inline`. Bug: T290492 Change-Id: Ie346d88969cec2effaf90d328d08567ab7b7bf75
56 lines
1.2 KiB
CSS
56 lines
1.2 KiB
CSS
/*!
|
|
* VisualEditor MediaWiki UserInterface MWParameterPage styles.
|
|
*
|
|
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-ui-mwParameterPage .ve-ui-mwParameter-wikitextFallbackInput {
|
|
/* Support: Blink, Gecko, Webkit */
|
|
/* Specify a valid second value to fix size, see T176636 */
|
|
font-family: monospace, monospace;
|
|
background-color: #c8ccd1;
|
|
}
|
|
|
|
.ve-ui-mwParameterPage-warning {
|
|
color: #202122; /* @wmui-color-base10 */
|
|
font-weight: normal;
|
|
margin-top: 0.5em;
|
|
}
|
|
|
|
.ve-ui-mwParameterPage-warning .oo-ui-iconElement-icon {
|
|
opacity: 0.87;
|
|
}
|
|
|
|
.ve-ui-mwParameterPage-info {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.ve-ui-mwParameterPage-label {
|
|
display: inline;
|
|
vertical-align: middle;
|
|
font-weight: bold;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.ve-ui-mwParameterPage-statusIndicator {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.ve-ui-mwParameterPage-inlineDescription {
|
|
position: relative;
|
|
}
|
|
|
|
.ve-ui-mwParameterPage-inlineDescription .ve-ui-expandableContent-container {
|
|
right: 0;
|
|
}
|
|
|
|
.ve-ui-mwParameterPage-undocumentedLabel {
|
|
margin-left: 0.4em;
|
|
font-size: 13px;
|
|
font-style: italic;
|
|
color: #72777d;
|
|
}
|