mediawiki-extensions-Visual.../modules/ve-mw/ui/styles/pages/ve.ui.MWParameterPage-minerva.css
Thiemo Kreuz 0f309f5b90 Hide "required" indicator in new sidebar
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
2021-09-14 18:05:11 +02:00

44 lines
910 B
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-actions {
display: none;
}
.ve-ui-mwParameterPage-inlineDescription {
max-width: 50em;
}
.ve-ui-mwParameterPage-doc-required,
.ve-ui-mwParameterPage-doc-deprecated,
.ve-ui-mwParameterPage-inlineDescription .ve-ui-mwParameterPage-doc-example {
font-style: italic;
color: #54595d;
}
.ve-ui-mwParameterPage-infoButton,
.ve-ui-mwParameterPage-removeButton {
display: none;
}
.ve-ui-mwParameterPage-field {
padding-top: 0.25em;
}
.ve-ui-mwParameterPage .oo-ui-textInputWidget textarea {
height: 2.5em;
}
.ve-ui-mwParameterPage-addUndocumented {
display: none;
margin: 1em 0 0.5em 0;
}
.ve-ui-mwParameterPage:last-child .ve-ui-mwParameterPage-addUndocumented {
display: block;
}