mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
1849924eff
This matches the existing naming scheme better. I also plan to re-use this class for other types that are not templates. That's why the name is the more generic "transclusion" now. This patch also removes a `padding: 2px` that's not that helpful. We will need paddings later, but need to choose them much more carfully. Bug: T274544 Change-Id: I6f0f630da2230b023b3fb065e5ad86d8211bb7b3
120 lines
4.1 KiB
CSS
120 lines
4.1 KiB
CSS
/*!
|
|
* VisualEditor MediaWiki UserInterface MWTransclusionDialog styles.
|
|
*
|
|
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-ui-mwTransclusionDialog-addTemplateFieldset > .oo-ui-widget {
|
|
display: inline-block;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-addTemplateFieldset > .oo-ui-buttonElement-framed {
|
|
margin-left: 0.5em;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-addTemplateFieldset .mw-widget-titleInputWidget {
|
|
min-width: 10em;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-addParameterFieldset .ve-ui-mwParameterSearchWidget {
|
|
position: relative;
|
|
overflow: hidden;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-addParameterFieldset .oo-ui-searchWidget-results {
|
|
position: relative;
|
|
padding-bottom: 5em;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-removeButton {
|
|
position: absolute;
|
|
top: 0.85714286em; /* Equals ≈`12px` */
|
|
right: 1.5em;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-addButton {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-enhancedSearch .mw-widget-titleWidget-menu-withDescriptions .mw-widget-titleOptionWidget .oo-ui-labelElement-label {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-enhancedSearch .mw-widget-titleWidget-menu-withDescriptions .mw-widget-titleOptionWidget .oo-ui-labelElement-label .oo-ui-labelElement-label-highlight {
|
|
font-weight: normal;
|
|
}
|
|
|
|
.ve-ui-mwTemplateTitleInputWidget-redirectedfrom {
|
|
font-style: italic;
|
|
}
|
|
|
|
.ve-ui-mwTemplateDialog .oo-ui-outlineOptionWidget.oo-ui-flaggedElement-empty .oo-ui-iconElement-icon {
|
|
opacity: 0.51;
|
|
}
|
|
|
|
.ve-ui-mwTemplateDialog .oo-ui-outlineOptionWidget.oo-ui-flaggedElement-empty .oo-ui-labelElement-label {
|
|
color: #72777d;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog .oo-ui-bookletLayout .oo-ui-fieldsetLayout > .oo-ui-labelElement-label {
|
|
height: 1.5em;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-collapsed .oo-ui-bookletLayout .oo-ui-fieldsetLayout > .oo-ui-iconElement-icon,
|
|
.ve-ui-mwTransclusionDialog-collapsed .oo-ui-bookletLayout .oo-ui-fieldsetLayout > .oo-ui-labelElement-label,
|
|
.ve-ui-mwTransclusionDialog-collapsed .oo-ui-bookletLayout .ve-ui-mwTransclusionDialog-removeButton,
|
|
.ve-ui-mwTransclusionDialog-expanded .oo-ui-bookletLayout .ve-ui-mwTemplatePage-more,
|
|
.ve-ui-mwTransclusionDialog-expanded .oo-ui-bookletLayout .ve-ui-mwParameterPage-addUndocumented {
|
|
display: none;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog.ve-ui-mwTemplateDialog-ready .oo-ui-bookletLayout .oo-ui-fieldsetLayout > .oo-ui-labelElement-label,
|
|
.ve-ui-mwTransclusionDialog.ve-ui-mwTemplateDialog-ready .oo-ui-bookletLayout .oo-ui-fieldsetLayout > .oo-ui-iconElement-icon,
|
|
.ve-ui-mwTransclusionDialog.ve-ui-mwTemplateDialog-ready .oo-ui-bookletLayout .ve-ui-mwTransclusionDialog-removeButton,
|
|
.ve-ui-mwTransclusionDialog.ve-ui-mwTemplateDialog-ready .oo-ui-bookletLayout .ve-ui-mwTemplatePage-more,
|
|
.ve-ui-mwTransclusionDialog.ve-ui-mwTemplateDialog-ready .oo-ui-bookletLayout .ve-ui-mwParameterPage-addUndocumented,
|
|
.ve-ui-mwTransclusionDialog.ve-ui-mwTemplateDialog-ready .oo-ui-bookletLayout > .oo-ui-gridLayout > .oo-ui-panelLayout {
|
|
-webkit-transition: all 250ms ease-in-out;
|
|
-moz-transition: all 250ms ease-in-out;
|
|
transition: all 250ms ease-in-out;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-bigger .oo-ui-menuLayout > .oo-ui-menuLayout-menu {
|
|
width: 240px;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-bigger .oo-ui-menuLayout > .oo-ui-menuLayout-content {
|
|
left: 240px;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-addTemplateFieldset .oo-ui-inline-help {
|
|
color: inherit;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-collapsed .oo-ui-bookletLayout .ve-ui-mwTransclusionDialog-addTemplateFieldset.oo-ui-fieldsetLayout > .oo-ui-labelElement-label {
|
|
display: inline-block;
|
|
}
|
|
|
|
.ve-ui-mwTemplateDialog .ve-ui-mwTransclusionOutlineItem,
|
|
.ve-ui-mwTemplateDialog .ve-ui-mwTransclusionOutlineLabel {
|
|
display: block;
|
|
overflow: hidden;
|
|
right: 0;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
padding: 2px;
|
|
}
|
|
|
|
.ve-ui-mwTemplateDialog .ve-ui-mwTransclusionOutlineLabel .oo-ui-labelWidget {
|
|
/* FIXME: padding kludged to roughly match the spec. */
|
|
padding: 11px 12px 11px 6px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ve-ui-mwTemplateDialog .ve-ui-mwTransclusionOutlineItem .oo-ui-labelWidget {
|
|
display: inline;
|
|
}
|