2014-03-18 20:52:39 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor MediaWiki UserInterface MWTransclusionDialog styles.
|
|
|
|
*
|
2020-01-08 17:13:04 +00:00
|
|
|
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
|
2014-03-18 20:52:39 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2022-06-10 15:04:19 +00:00
|
|
|
.ve-ui-mwTemplateDialog .mw-widget-titleWidget-menu-withDescriptions .mw-widget-titleOptionWidget .oo-ui-labelElement-label {
|
2021-05-10 12:56:03 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2022-06-10 15:04:19 +00:00
|
|
|
.ve-ui-mwTemplateDialog .mw-widget-titleWidget-menu-withDescriptions .mw-widget-titleOptionWidget .oo-ui-labelElement-label .oo-ui-labelElement-label-highlight {
|
2021-05-10 12:56:03 +00:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2021-05-19 16:51:48 +00:00
|
|
|
.ve-ui-mwTemplateTitleInputWidget-redirectedfrom {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2022-06-21 12:26:00 +00:00
|
|
|
.ve-ui-mwTransclusionDialog-single-transclusion .ve-ui-mwTransclusionOutlineButtonWidget {
|
2022-01-13 09:47:24 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwTransclusionOutlineTemplateWidget-sticky {
|
|
|
|
background-color: #fff;
|
2022-05-04 21:54:48 +00:00
|
|
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
2022-01-13 09:47:24 +00:00
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2022-01-14 16:18:00 +00:00
|
|
|
.ve-ui-mwTransclusionDialog-single-transclusion .ve-ui-mwTransclusionOutlineTemplateWidget-sticky {
|
|
|
|
margin-top: -8px;
|
2022-02-03 17:17:59 +00:00
|
|
|
margin-bottom: 8px;
|
2022-01-14 16:18:00 +00:00
|
|
|
padding-top: 8px;
|
|
|
|
}
|
|
|
|
|
2022-06-10 15:15:18 +00:00
|
|
|
.ve-ui-mwTemplateDialog.ve-ui-mwTransclusionDialog-small-screen.ve-ui-mwTransclusionDialog-expanded .oo-ui-menuLayout > .oo-ui-menuLayout-menu {
|
2021-08-09 16:28:56 +00:00
|
|
|
border-right: 0;
|
2021-07-23 15:07:39 +00:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2022-06-10 15:15:18 +00:00
|
|
|
.ve-ui-mwTemplateDialog.ve-ui-mwTransclusionDialog-small-screen.ve-ui-mwTransclusionDialog-expanded .oo-ui-menuLayout > .oo-ui-menuLayout-content {
|
2021-09-09 13:06:52 +00:00
|
|
|
display: none;
|
2021-07-23 15:07:39 +00:00
|
|
|
}
|
|
|
|
|
2022-06-14 15:45:42 +00:00
|
|
|
.ve-ui-mwTransclusionOutlinePartWidget {
|
|
|
|
margin-top: 24px;
|
|
|
|
margin-bottom: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwTransclusionOutlineButtonWidget {
|
|
|
|
margin-top: -10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwTransclusionOutlinePartWidget:first-child .ve-ui-mwTransclusionOutlineButtonWidget {
|
|
|
|
margin-top: -24px;
|
|
|
|
}
|
|
|
|
|
2022-06-20 12:25:21 +00:00
|
|
|
/* no margin for labels and wikitext */
|
2022-06-20 10:25:06 +00:00
|
|
|
.ve-ui-mwTransclusionOutlinePartWidget:last-child {
|
2022-06-14 15:45:42 +00:00
|
|
|
margin-bottom: -24px;
|
|
|
|
}
|
|
|
|
|
2022-06-20 12:25:21 +00:00
|
|
|
/* margin for last checkbox or text */
|
|
|
|
.ve-ui-mwTransclusionOutlinePartWidget:last-child .ve-ui-mwTransclusionOutlineParameterWidget:last-child,
|
|
|
|
.ve-ui-mwTransclusionOutlinePartWidget:last-child .ve-ui-mwTransclusionOutline-no-template-parameters {
|
|
|
|
margin-bottom: 48px;
|
|
|
|
}
|
|
|
|
|
2021-09-21 08:35:36 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineWidget {
|
2021-08-31 10:27:06 +00:00
|
|
|
/* .oo-ui-window-head uses a 1px outline which overlaps the top pixel of the sidebar */
|
|
|
|
padding-top: 1px;
|
|
|
|
}
|
|
|
|
|
2021-10-27 09:39:03 +00:00
|
|
|
.ve-ui-mwTransclusionOutline-ariaHidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-04-28 11:54:33 +00:00
|
|
|
.ve-ui-mwTransclusionOutline-no-template-parameters {
|
|
|
|
font-style: italic;
|
|
|
|
color: #72777d;
|
|
|
|
margin: 8px 24px 24px 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwTransclusionDialog-single-transclusion .ve-ui-mwTransclusionOutline-no-template-parameters {
|
|
|
|
margin: 24px;
|
|
|
|
}
|
|
|
|
|
2021-08-31 10:27:06 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineParameterSelectWidget:focus {
|
|
|
|
border-radius: 2px;
|
|
|
|
box-shadow: inset 0 0 0 1px #36c;
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
2021-08-31 10:15:03 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineParameterWidget {
|
2021-08-31 10:27:06 +00:00
|
|
|
overflow: hidden;
|
2021-07-13 08:57:57 +00:00
|
|
|
padding-bottom: 8px;
|
2022-01-19 12:42:08 +00:00
|
|
|
padding-left: 30px;
|
2021-07-13 08:57:57 +00:00
|
|
|
padding-top: 8px;
|
2021-08-31 10:27:06 +00:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2021-05-17 15:43:49 +00:00
|
|
|
}
|
|
|
|
|
2021-08-31 10:15:03 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineParameterWidget.oo-ui-labelElement > .oo-ui-labelElement-label {
|
2021-07-13 08:57:57 +00:00
|
|
|
cursor: pointer;
|
2021-08-16 14:06:39 +00:00
|
|
|
display: inline;
|
2021-07-13 08:57:57 +00:00
|
|
|
}
|
|
|
|
|
2021-08-16 16:17:14 +00:00
|
|
|
/* TODO: Remove debug color */
|
2021-08-31 10:15:03 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineParameterWidget.oo-ui-optionWidget-selected {
|
2021-08-16 16:17:14 +00:00
|
|
|
/* background-color: rgba( 0%, 100%, 0%, 0.2 ); */
|
|
|
|
}
|
|
|
|
|
2022-06-30 13:15:42 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineParameterWidget.oo-ui-optionWidget-highlighted:hover,
|
2022-06-30 07:19:43 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineParameterWidget.oo-ui-optionWidget-highlighted {
|
|
|
|
color: #36c;
|
|
|
|
background-color: #eaf3ff;
|
|
|
|
}
|
|
|
|
|
2022-06-30 13:15:42 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineParameterSelectWidget:focus .ve-ui-mwTransclusionOutlineParameterWidget.oo-ui-optionWidget-highlighted,
|
2021-08-31 10:15:03 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineParameterWidget:hover {
|
2021-09-13 09:07:22 +00:00
|
|
|
/* This shade on a white background results in #eaecf0 a.k.a. @background-color-base--hover
|
|
|
|
a.k.a. @wmui-color-base80 */
|
2021-08-16 16:17:14 +00:00
|
|
|
background-color: rgba( 0, 24, 73, 0.082 );
|
2021-07-13 08:57:57 +00:00
|
|
|
}
|
|
|
|
|
2021-08-31 10:15:03 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineParameterWidget .oo-ui-checkboxInputWidget.oo-ui-widget-enabled [ type='checkbox' ]:hover + span {
|
2021-08-16 14:06:39 +00:00
|
|
|
/* Stronger :hover effect to make the different checkbox/label click regions more obvious */
|
2021-07-13 08:57:57 +00:00
|
|
|
border-width: 2px;
|
|
|
|
}
|
2021-07-13 10:15:47 +00:00
|
|
|
|
2022-06-15 14:47:54 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineParameterWidget-hasValue {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2021-07-13 10:15:47 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineButtonWidget,
|
|
|
|
.ve-ui-mwTransclusionOutlineButtonWidget > .oo-ui-buttonElement-button {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwTransclusionOutlineButtonWidget.oo-ui-buttonElement-frameless.oo-ui-labelElement.oo-ui-iconElement > .oo-ui-buttonElement-button {
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 8px 0 8px 36px;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2022-07-04 16:27:03 +00:00
|
|
|
/* selected */
|
2021-08-27 16:22:37 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineButtonWidget.oo-ui-optionWidget-selected .oo-ui-buttonElement-button {
|
|
|
|
background-color: #eaf3ff;
|
|
|
|
}
|
|
|
|
|
2022-07-04 16:27:03 +00:00
|
|
|
/* hover */
|
2021-07-13 10:15:47 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineButtonWidget.oo-ui-buttonElement-frameless.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover {
|
|
|
|
background-color: #eaecf0;
|
2021-09-13 09:07:22 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 16:27:03 +00:00
|
|
|
/* selected + hover */
|
|
|
|
.ve-ui-mwTransclusionOutlineButtonWidget.oo-ui-buttonElement-frameless.oo-ui-optionWidget-selected > .oo-ui-buttonElement-button:hover {
|
|
|
|
background-color: #eaf3ff;
|
|
|
|
color: #36c;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* click */
|
2021-09-13 09:07:22 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineButtonWidget.oo-ui-buttonElement-frameless.oo-ui-widget-enabled > .oo-ui-buttonElement-button:active,
|
|
|
|
.ve-ui-mwTransclusionOutlineParameterWidget:active {
|
|
|
|
/* Same as .oo-ui-optionWidget-pressed, a.k.a. @background-color-primary--hover */
|
|
|
|
background-color: rgba( 41, 98, 204, 0.1 );
|
|
|
|
color: #36c;
|
2021-07-13 10:15:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwTransclusionOutlineButtonWidget.oo-ui-buttonElement-frameless.oo-ui-iconElement:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwTransclusionOutlineButtonWidget.oo-ui-buttonElement-frameless.oo-ui-iconElement > .oo-ui-buttonElement-button > .oo-ui-iconElement-icon {
|
|
|
|
left: 10px;
|
|
|
|
}
|
2021-07-12 15:00:04 +00:00
|
|
|
|
2021-07-16 16:03:48 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineTemplateWidget-searchWidget {
|
2021-08-11 06:09:40 +00:00
|
|
|
margin: 8px 24px;
|
2021-07-16 16:03:48 +00:00
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
2022-01-13 09:47:24 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineTemplateWidget-searchWidget:last-child {
|
|
|
|
/* Workaround to override oo-ui-inputWidget:last-child rule */
|
|
|
|
margin-right: 24px;
|
|
|
|
}
|
|
|
|
|
2021-07-12 15:00:04 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineTemplateWidget-no-match {
|
|
|
|
font-style: italic;
|
2021-07-16 16:03:48 +00:00
|
|
|
color: #72777d;
|
2021-08-11 06:09:40 +00:00
|
|
|
margin: 8px 24px;
|
2021-07-12 15:00:04 +00:00
|
|
|
}
|
2021-11-04 17:48:36 +00:00
|
|
|
|
2022-06-28 08:44:02 +00:00
|
|
|
.ve-ui-mwTransclusionOutlineToggleUnusedWidget.oo-ui-buttonWidget {
|
|
|
|
margin: -4px 24px 0 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwTransclusionOutlineToggleUnusedWidget .oo-ui-labelElement-label {
|
|
|
|
word-break: break-word;
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
|
2021-11-04 17:48:36 +00:00
|
|
|
.ve-ui-mwTransclusionDialog-floatingHelpElement {
|
|
|
|
position: absolute;
|
2022-07-06 13:43:13 +00:00
|
|
|
right: 16px;
|
|
|
|
bottom: 16px;
|
2021-11-04 17:48:36 +00:00
|
|
|
}
|
|
|
|
|
2022-05-12 04:30:08 +00:00
|
|
|
.ve-ui-mwTransclusionDialog-small-screen .ve-ui-mwTransclusionDialog-floatingHelpElement {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-11-04 17:48:36 +00:00
|
|
|
.ve-ui-mwTransclusionDialog-floatingHelpElement-fieldsetLayout label {
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
2021-11-09 16:47:43 +00:00
|
|
|
|
|
|
|
.ve-ui-mwTransclusionDialog-floatingHelpElement-fieldsetLayout .oo-ui-buttonWidget {
|
|
|
|
width: 100%;
|
|
|
|
}
|