2022-07-12 12:06:54 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
|
2022-07-12 11:07:42 +00:00
|
|
|
// Copied from wikimedia-ui-base.less
|
|
|
|
@wmui-color-accent50: #36c;
|
|
|
|
@color-base--subtle: #72777d;
|
|
|
|
|
|
|
|
@selected-text-color: @wmui-color-accent50;
|
2022-07-19 10:17:26 +00:00
|
|
|
// This shade on a white background results in #eaf3ff a.k.a. @wmui-color-accent90
|
|
|
|
@selected-shading: rgba( 0, 109, 255, 21/255 );
|
2022-07-12 11:07:42 +00:00
|
|
|
|
|
|
|
// This shade on a white background results in #eaecf0 a.k.a. @background-color-base--hover a.k.a.
|
|
|
|
// @wmui-color-base80
|
2022-07-19 10:17:26 +00:00
|
|
|
@hover-shading: rgba( 0, 24, 73, 21/255 );
|
2022-07-12 11:07:42 +00:00
|
|
|
|
|
|
|
@on-click-text-color: @wmui-color-accent50;
|
|
|
|
// Same as .oo-ui-optionWidget-pressed, a.k.a. @background-color-primary--hover
|
|
|
|
@on-click-shading: rgba( 41, 98, 204, 0.1 );
|
|
|
|
|
2022-07-07 20:37:44 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineWidget {
|
|
|
|
.ve-ui-mwTransclusionOutline-ariaHidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwTransclusionOutlinePartWidget {
|
|
|
|
margin-top: 24px;
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
|
|
|
&:first-child .ve-ui-mwTransclusionOutlineButtonWidget {
|
|
|
|
margin-top: -24px;
|
|
|
|
}
|
|
|
|
|
2022-08-02 13:02:02 +00:00
|
|
|
&:last-child.ve-ui-mwTransclusionOutlineWikitextWidget,
|
|
|
|
&:last-child.ve-ui-mwTransclusionOutlinePlaceholderWidget {
|
|
|
|
margin-bottom: 0;
|
2022-07-07 20:37:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwTransclusionOutlineButtonWidget {
|
|
|
|
display: block;
|
|
|
|
margin-top: -10px;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .oo-ui-buttonElement-button {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 8px 0 8px 36px;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
2022-07-08 08:54:30 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2022-07-12 11:07:42 +00:00
|
|
|
background-color: @hover-shading;
|
2022-07-07 20:37:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* click */
|
|
|
|
&:active {
|
2022-07-12 11:07:42 +00:00
|
|
|
background-color: @on-click-shading;
|
|
|
|
color: @on-click-text-color;
|
2022-07-07 20:37:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> .oo-ui-iconElement-icon {
|
|
|
|
left: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* selected */
|
|
|
|
&.oo-ui-optionWidget-selected > .oo-ui-buttonElement-button {
|
2022-07-19 10:17:26 +00:00
|
|
|
background-color: @selected-shading;
|
2022-07-07 20:37:44 +00:00
|
|
|
|
|
|
|
&:hover {
|
2022-07-19 10:17:26 +00:00
|
|
|
background-color: @selected-shading;
|
2022-07-12 11:07:42 +00:00
|
|
|
color: @selected-text-color;
|
2022-07-07 20:37:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-08 05:33:08 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineTemplateWidget {
|
|
|
|
&-sticky {
|
|
|
|
background-color: #fff;
|
2022-07-12 12:06:54 +00:00
|
|
|
.position-sticky();
|
2022-07-08 05:33:08 +00:00
|
|
|
top: 0;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
2022-07-07 20:37:44 +00:00
|
|
|
|
2022-07-08 05:33:08 +00:00
|
|
|
&-no-template-parameters {
|
|
|
|
font-style: italic;
|
2022-07-12 11:07:42 +00:00
|
|
|
color: @color-base--subtle;
|
2022-07-08 05:33:08 +00:00
|
|
|
margin: 8px 24px 24px 24px;
|
|
|
|
}
|
2022-07-07 20:05:09 +00:00
|
|
|
|
2022-07-08 05:33:08 +00:00
|
|
|
&-searchWidget {
|
|
|
|
margin: 8px 24px;
|
|
|
|
width: auto;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
/* Workaround to override oo-ui-inputWidget:last-child rule */
|
|
|
|
margin-right: 24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-no-match {
|
|
|
|
font-style: italic;
|
2022-07-12 11:07:42 +00:00
|
|
|
color: @color-base--subtle;
|
2022-07-08 05:33:08 +00:00
|
|
|
margin: 8px 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwTransclusionOutlineToggleUnusedWidget {
|
|
|
|
margin: -4px 24px 0 24px;
|
|
|
|
|
|
|
|
.oo-ui-labelElement-label {
|
|
|
|
word-break: break-word;
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
}
|
2022-07-07 20:05:09 +00:00
|
|
|
|
2022-07-08 05:33:08 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineParameterSelectWidget:focus {
|
|
|
|
border-radius: 2px;
|
2022-07-12 11:07:42 +00:00
|
|
|
box-shadow: inset 0 0 0 1px @wmui-color-accent50;
|
2022-07-08 05:33:08 +00:00
|
|
|
outline: 0;
|
|
|
|
}
|
2022-07-07 20:05:09 +00:00
|
|
|
|
2022-07-08 07:04:21 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineParameterWidget {
|
|
|
|
overflow: hidden;
|
|
|
|
padding-bottom: 8px;
|
|
|
|
padding-left: 30px;
|
|
|
|
padding-top: 8px;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
/* click */
|
|
|
|
&:active {
|
2022-07-12 11:07:42 +00:00
|
|
|
background-color: @on-click-shading;
|
|
|
|
color: @on-click-text-color;
|
2022-07-08 07:04:21 +00:00
|
|
|
}
|
2022-07-07 20:05:09 +00:00
|
|
|
|
2022-07-18 14:36:37 +00:00
|
|
|
&.ve-ui-mwTransclusionOutlineParameterWidget-activePage,
|
|
|
|
&.ve-ui-mwTransclusionOutlineParameterWidget-activePage:hover,
|
|
|
|
&.ve-ui-mwTransclusionOutlineParameterWidget-activePage.oo-ui-optionWidget-highlighted {
|
2022-07-19 10:17:26 +00:00
|
|
|
background-color: @selected-shading;
|
2022-07-12 11:07:42 +00:00
|
|
|
color: @selected-text-color;
|
2022-07-09 06:54:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.oo-ui-optionWidget-highlighted {
|
2022-07-12 11:07:42 +00:00
|
|
|
background-color: @hover-shading;
|
2022-07-09 06:54:35 +00:00
|
|
|
color: #000;
|
2022-07-08 07:04:21 +00:00
|
|
|
}
|
2022-07-07 20:05:09 +00:00
|
|
|
|
2022-07-08 07:04:21 +00:00
|
|
|
&-hasValue {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2022-07-07 20:05:09 +00:00
|
|
|
|
2022-07-08 07:04:21 +00:00
|
|
|
> .oo-ui-labelElement-label {
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline;
|
|
|
|
}
|
2022-07-07 20:05:09 +00:00
|
|
|
|
2022-07-08 07:04:21 +00:00
|
|
|
.oo-ui-checkboxInputWidget.oo-ui-widget-enabled [ type='checkbox' ]:hover + span {
|
|
|
|
/* Stronger :hover effect to make the different checkbox/label click regions more obvious */
|
|
|
|
border-width: 2px;
|
|
|
|
}
|
|
|
|
}
|
2022-07-07 20:05:09 +00:00
|
|
|
}
|