2022-12-07 22:06:42 +00:00
|
|
|
/*
|
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* SkinStyles for Special:RecentChanges filters
|
|
|
|
* Module: mediawiki.rcfilters.filters.ui
|
|
|
|
* Version: 1.39.0
|
|
|
|
*
|
2023-06-28 17:58:21 +00:00
|
|
|
* Date: 2023-06-29
|
|
|
|
*/
|
2022-12-07 22:06:42 +00:00
|
|
|
|
2023-07-11 21:06:01 +00:00
|
|
|
@import '../../resources/variables.less';
|
|
|
|
|
2022-12-07 22:06:42 +00:00
|
|
|
/* mw.rcfilters.ui.FilterTagMultiselectWidget.less */
|
|
|
|
.mw-rcfilters-ui-filterTagMultiselectWidget {
|
|
|
|
&.oo-ui-widget-enabled {
|
|
|
|
// Needed extra specificity
|
|
|
|
&.oo-ui-tagMultiselectWidget.oo-ui-tagMultiselectWidget-outlined {
|
|
|
|
background-color: var( --color-surface-1 );
|
2023-07-28 01:19:27 +00:00
|
|
|
border-radius: var( --border-radius--small );
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-tagMultiselectWidget-handle {
|
2023-07-14 01:40:01 +00:00
|
|
|
padding: 0.1em 0.75em 0.4em 0.75em; // align with filter card
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: var( --color-surface-2 );
|
2023-07-14 01:40:01 +00:00
|
|
|
border-color: var( --border-color-base );
|
2022-12-07 22:06:42 +00:00
|
|
|
border-bottom: 1px solid var( --border-color-base ); // Add divider
|
2023-07-28 01:19:27 +00:00
|
|
|
border-radius: var( --border-radius--small ) var( --border-radius--small ) 0 0;
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-rcfilters-collapsed & {
|
|
|
|
border-bottom-color: transparent;
|
|
|
|
|
|
|
|
.mw-rcfilters-ui-filterTagMultiselectWidget-wrapper-hideshow {
|
|
|
|
border-left-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-tagMultiselectWidget.oo-ui-widget-enabled &-emphasize.oo-ui-tagMultiselectWidget-handle {
|
|
|
|
background-color: var( --background-color-primary--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-tagMultiselectWidget-input input {
|
|
|
|
background-color: var( --color-surface-0 );
|
2023-07-28 01:19:27 +00:00
|
|
|
border-top-color: transparent; // Avoid double border with oo-ui-tagMultiselectWidget-handle
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-wrapper {
|
|
|
|
&-content {
|
|
|
|
&-title {
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2022-12-07 22:06:42 +00:00
|
|
|
font-weight: var( --font-weight-normal );
|
2023-07-28 01:19:27 +00:00
|
|
|
// Citizen label styles
|
|
|
|
color: var( --color-base--subtle );
|
2022-12-07 22:06:42 +00:00
|
|
|
letter-spacing: 0.05em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-savedQueryTitle {
|
|
|
|
font-weight: var( --font-weight-semibold );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--emphasized );
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-views {
|
|
|
|
&-select {
|
|
|
|
&-widget.oo-ui-widget {
|
2024-04-19 19:14:18 +00:00
|
|
|
border-color: var( --border-color-interactive ); // align with input field on the left
|
2023-07-14 01:40:01 +00:00
|
|
|
border-top-color: transparent;
|
2022-12-07 22:06:42 +00:00
|
|
|
border-left-width: 0;
|
2023-07-28 01:19:27 +00:00
|
|
|
border-radius: 0 0 var( --border-radius--small ) 0;
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-emptyFilters {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
vertical-align: sub; // fix incorrect top alignment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.ItemMenuOptionWidget.less */
|
|
|
|
.mw-rcfilters-ui-itemMenuOptionWidget {
|
|
|
|
&:not( :last-child ):not( .mw-rcfilters-ui-itemMenuOptionWidget-identifier-talk ) {
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-view-namespaces {
|
|
|
|
border-top-color: var( --border-color-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&.oo-ui-optionWidget-selected {
|
|
|
|
background-color: var( --background-color-primary--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&-label {
|
|
|
|
&-title {
|
|
|
|
font-weight: var( --font-weight-semibold );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--emphasized );
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-desc {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-excludeLabel {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
|
|
|
|
|
|
|
// Add margin between item and next header
|
|
|
|
+ .mw-rcfilters-ui-filterMenuSectionOptionWidget {
|
|
|
|
margin-top: var( --space-md );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.FilterMenuOptionWidget.less */
|
|
|
|
.mw-rcfilters-ui-filterMenuOptionWidget {
|
|
|
|
&.oo-ui-flaggedElement-muted {
|
|
|
|
&:not( .oo-ui-optionWidget-selected ) {
|
|
|
|
background-color: var( --color-surface-2 );
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-rcfilters-ui-itemMenuOptionWidget-label-title,
|
|
|
|
.mw-rcfilters-ui-itemMenuOptionWidget-label-desc {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
|
|
|
|
|
|
|
&.oo-ui-optionWidget-highlighted {
|
|
|
|
color: var( --color-base );
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: var( --background-color-quiet--hover );
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.FilterMenuSectionOptionWidget.less */
|
|
|
|
// Make it sticky
|
|
|
|
.mw-rcfilters-ui-filterMenuSectionOptionWidget {
|
2023-06-28 17:58:21 +00:00
|
|
|
position: -webkit-sticky;
|
2022-12-07 22:06:42 +00:00
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
2023-07-28 01:19:27 +00:00
|
|
|
z-index: 1; // Needed for sticky header
|
2022-12-07 22:06:42 +00:00
|
|
|
padding-top: var( --space-xs );
|
|
|
|
padding-bottom: var( --space-xs );
|
|
|
|
background-color: var( --color-surface-1 ); // Sync with background
|
2023-07-28 01:19:27 +00:00
|
|
|
border-bottom: 1px solid var( --border-color-base );
|
2022-12-07 22:06:42 +00:00
|
|
|
|
|
|
|
&-header-title.oo-ui-labelElement-label {
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2022-12-07 22:06:42 +00:00
|
|
|
font-weight: var( --font-weight-normal );
|
2023-07-28 01:19:27 +00:00
|
|
|
// Citizen label styles
|
|
|
|
color: var( --color-base--subtle );
|
2022-12-07 22:06:42 +00:00
|
|
|
letter-spacing: 0.05em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-whatsThisButton {
|
|
|
|
&-popup-content {
|
|
|
|
&-header {
|
|
|
|
font-weight: var( --font-weight-semibold );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-active .mw-rcfilters-ui-filterMenuSectionOptionWidget-header-title {
|
|
|
|
font-weight: var( --font-weight-semibold );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.TagItemWidget.less */
|
|
|
|
.mw-rcfilters-ui-tagItemWidget {
|
|
|
|
// Background and color of the capsule widget need a bit
|
|
|
|
// more specificity to override OOUI internals
|
|
|
|
&.oo-ui-flaggedElement-muted.oo-ui-tagItemWidget.oo-ui-widget-enabled {
|
|
|
|
background-color: var( --color-surface-4 );
|
2023-07-28 01:19:27 +00:00
|
|
|
border-color: var( --color-surface-4 );
|
2022-12-07 22:06:42 +00:00
|
|
|
|
|
|
|
.oo-ui-labelElement-label {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.oo-ui-flaggedElement-invalid.oo-ui-tagItemWidget.oo-ui-widget-enabled {
|
|
|
|
.oo-ui-labelElement-label {
|
|
|
|
color: var( --color-destructive );
|
|
|
|
// color: var( --color-destructive--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-tagMultiselectWidget.oo-ui-widget-enabled.oo-ui-tagMultiselectWidget-outlined &-selected.oo-ui-tagItemWidget.oo-ui-widget-enabled {
|
2024-06-10 23:47:49 +00:00
|
|
|
color: var( --color-inverted-primary );
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: var( --color-primary );
|
|
|
|
border-color: var( --color-primary );
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-popup-content {
|
|
|
|
color: var( --color-base );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.FilterMenuHeaderWidget.less */
|
|
|
|
.mw-rcfilters-ui-filterMenuHeaderWidget {
|
|
|
|
&-title {
|
|
|
|
// Left padding ~12px, sync with other padding
|
|
|
|
// Handle top padding in header instead so everything is aligned
|
|
|
|
padding: 0 0 0 0.75em;
|
|
|
|
font-size: 1rem;
|
|
|
|
font-weight: var( --font-weight-semibold );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--emphasized );
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-header {
|
|
|
|
padding-top: 0.75em;
|
|
|
|
background-color: transparent;
|
2023-07-28 01:19:27 +00:00
|
|
|
border-bottom-color: transparent; // Sticky header have divider already
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.MenuSelectWidget.less */
|
|
|
|
.mw-rcfilters-ui-menuSelectWidget {
|
|
|
|
&-noresults {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
|
|
|
|
|
|
|
&-footer {
|
|
|
|
margin-top: var( --space-md );
|
|
|
|
background-color: transparent;
|
2023-07-28 01:19:27 +00:00
|
|
|
border-top-color: var( --border-color-base );
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.ViewSwitchWidget.less */
|
|
|
|
.mw-rcfilters-ui-viewSwitchWidget {
|
|
|
|
label.oo-ui-labelWidget {
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2022-12-07 22:06:42 +00:00
|
|
|
font-weight: var( --font-weight-normal );
|
2023-07-28 01:19:27 +00:00
|
|
|
// Citizen label styles
|
|
|
|
color: var( --color-base--subtle );
|
2022-12-07 22:06:42 +00:00
|
|
|
letter-spacing: 0.05em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-buttons {
|
|
|
|
margin-top: 0.75em; // Sync with header spacing above
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.ValuePickerWidget.less */
|
|
|
|
.mw-rcfilters-ui-valuePickerWidget {
|
|
|
|
&-title {
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2022-12-07 22:06:42 +00:00
|
|
|
font-weight: var( --font-weight-normal );
|
2023-07-28 01:19:27 +00:00
|
|
|
// Citizen label styles
|
|
|
|
color: var( --color-base--subtle );
|
2022-12-07 22:06:42 +00:00
|
|
|
letter-spacing: 0.05em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.DatePopupWidget.less */
|
|
|
|
.mw-rcfilters-ui-datePopupWidget {
|
|
|
|
border-top-color: var( --border-color-base );
|
|
|
|
|
|
|
|
&-title {
|
|
|
|
font-weight: var( --font-weight-semibold );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--emphasized );
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-rcfilters-ui-valuePickerWidget-title {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.ChangesListWrapperWidget.less */
|
|
|
|
@keyframes fadeBlueCitizen {
|
|
|
|
60% {
|
|
|
|
border-top-color: var( --color-primary );
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
border-top-color: var( --color-surface-4 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-rcfilters-ui-changesListWrapperWidget {
|
|
|
|
&-previousChangesIndicator {
|
|
|
|
border-top-color: var( --color-surface-4 );
|
|
|
|
animation: 1s ease fadeBlueCitizen;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-results {
|
|
|
|
&-noresult,
|
|
|
|
&-conflict {
|
|
|
|
font-weight: var( --font-weight-semibold );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-enhanced-grey td:not( :nth-child( -n+2 ) ) {
|
|
|
|
background-color: var( --color-surface-3 );
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-changeslist-legend {
|
2023-01-31 20:38:03 +00:00
|
|
|
background-color: var( --color-surface-2 );
|
2023-07-28 01:19:27 +00:00
|
|
|
border-color: var( --border-color-base );
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.HighlightColorPickerWidget.less */
|
|
|
|
.mw-rcfilters-ui-highlightColorPickerWidget {
|
|
|
|
&-label {
|
|
|
|
margin-top: 0.75em;
|
|
|
|
margin-bottom: 0.25em;
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2022-12-07 22:06:42 +00:00
|
|
|
font-weight: var( --font-weight-semibold );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--emphasized );
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.SavedLinksListWidget.less */
|
|
|
|
.mw-rcfilters-ui-savedLinksListWidget {
|
|
|
|
&-placeholder {
|
|
|
|
&-title {
|
|
|
|
font-weight: var( --font-weight-semibold );
|
|
|
|
}
|
|
|
|
|
|
|
|
&.oo-ui-optionWidget .oo-ui-labelElement-label {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.SavedLinksListItemWidget.less */
|
|
|
|
.mw-rcfilters-ui-savedLinksListItemWidget {
|
|
|
|
&:hover {
|
|
|
|
color: var( --color-base );
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: var( --background-color-quiet--hover );
|
2022-12-07 22:06:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-label {
|
|
|
|
color: var( --color-primary );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.SaveFiltersPopupButtonWidget.less */
|
|
|
|
.mw-rcfilters-ui-saveFiltersPopupButtonWidget {
|
|
|
|
&-popup {
|
|
|
|
> .oo-ui-popupWidget-popup > .oo-ui-popupWidget-head {
|
|
|
|
> .oo-ui-labelElement-label {
|
|
|
|
font-weight: var( --font-weight-medium );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.LiveUpdateButtonWidget.less */
|
|
|
|
.mw-rcfilters-ui-liveUpdateButtonWidget {
|
|
|
|
&.oo-ui-toggleWidget-on {
|
2023-02-28 21:59:36 +00:00
|
|
|
&::after {
|
2022-12-07 22:06:42 +00:00
|
|
|
background: var( --background-color-primary--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.RclToOrFromWidget.less */
|
|
|
|
.mw-rcfilters-ui-rclToOrFromWidget {
|
|
|
|
&.oo-ui-dropdownWidget.oo-ui-widget-enabled {
|
|
|
|
.oo-ui-dropdownWidget-handle {
|
|
|
|
font-weight: var( --font-weight-medium );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mw.rcfilters.ui.WatchlistTopSectionWidget.less */
|
|
|
|
.mw-rcfilters-ui-watchlistTopSectionWidget {
|
|
|
|
&-separator {
|
|
|
|
border-top: 1px solid var( --border-color-base );
|
|
|
|
}
|
|
|
|
}
|
2023-07-11 21:06:01 +00:00
|
|
|
|
|
|
|
.mw-rcfilters-ui-overlay {
|
|
|
|
z-index: @z-index-overlay;
|
|
|
|
}
|