mediawiki-skins-Citizen/skinStyles/extensions/AdvancedSearch/ext.advancedSearch.styles.less

129 lines
3.1 KiB
Plaintext
Raw Normal View History

2019-12-30 16:02:31 +00:00
/*
* Citizen
*
* SkinStyles for Extension:AdvancedSearch
* Module: ext.advancedSearch.styles
* Version: REL1_39 3a0eed7
*
* Date: 2022-12-12
2019-12-30 16:02:31 +00:00
*/
.mw-advancedSearch-container {
border-bottom: 1px solid var( --border-color-base );
margin-top: var( --space-xs );
}
// Align with Citizen label styles
.mw-advancedSearch-searchPreview-label,
.advancedsearch-namespacesPreview-label {
margin-right: var( --space-xs );
color: var( --color-base--subtle );
font-size: 0.875rem;
font-weight: var( --font-weight-normal );
letter-spacing: 0.05em;
}
.mw-advancedSearch-fieldContainer {
max-width: none;
border: 0;
border-radius: var( --border-radius--small );
margin-top: 0;
background: var( --color-surface-2 );
2019-12-30 16:02:31 +00:00
fieldset {
border-top-color: var( --border-color-base );
margin-top: var( --space-md );
}
2019-12-30 16:02:31 +00:00
.oo-ui-labelElement > .oo-ui-fieldsetLayout-header > .oo-ui-labelElement-label {
background: var( --color-surface-2 );
color: var( --color-base--subtle );
font-size: 0.875rem;
font-weight: var( --font-weight-normal );
letter-spacing: 0.05em;
2019-12-30 16:02:31 +00:00
}
}
2019-12-30 16:02:31 +00:00
.mw-advancedSearch-expandablePane-options,
.mw-advancedSearch-expandablePane-namespaces {
max-width: none;
padding-top: 0; // padding handled through container
}
.mw-advancedSearch-expandablePane-button {
&.oo-ui-widget-enabled.oo-ui-buttonWidget {
> .oo-ui-buttonElement-button {
padding-left: 0;
border-color: transparent;
background-color: transparent;
&:hover {
background-color: var( --background-color-quiet--hover );
color: inherit;
}
// Added active state
&:active {
background-color: var( --background-color-quiet--active );
}
// HACK: Flip indicator when expanded
.oo-ui-indicator-down {
transition: opacity 100ms, transform 250ms ease;
}
&[ aria-expanded='true' ] {
.oo-ui-indicator-down {
transform: rotate3d( 1, 0, 0, 180deg );
}
2019-12-30 16:02:31 +00:00
}
}
&.oo-ui-buttonElement-pressed > .oo-ui-buttonElement-button {
background-color: transparent;
}
}
}
.mw-advancedSearch-namespace-selection-header {
> .mw-advancedSearch-namespace-search-in-label {
font-weight: var( --font-weight-semibold );
2019-12-30 16:02:31 +00:00
}
}
2019-12-30 16:02:31 +00:00
.mw-advancedSearch-namespace-selection {
max-width: none;
border: 0;
border-radius: var( --border-radius--small );
margin-top: 0;
background: var( --color-surface-2 );
}
2019-12-30 16:02:31 +00:00
.mw-advancedSearch-namespace-border {
border-top: 1px solid var( --border-color-base );
border-bottom: 0;
}
.mw-advancedSearch-namespaceFilter.oo-ui-tagMultiselectWidget {
max-width: none;
}
.mw-advancedSearch-namespaceFilter .oo-ui-tagMultiselectWidget-handle {
border-radius: 0 0 var( --border-radius--small ) var( --border-radius--small );
}
.mw-advancedSearch-namespaceFilter .oo-ui-tagMultiselectWidget-input .oo-ui-inputWidget-input {
background-color: var( --color-surface-0 );
}
2019-12-30 16:02:31 +00:00
.oo-ui-tagMultiselectWidget.oo-ui-widget-enabled.oo-ui-tagMultiselectWidget-outlined .oo-ui-tagItemWidget.oo-ui-widget-enabled {
&.selected {
border-color: var( --color-primary );
background-color: var( --background-color-primary--hover );
2019-12-30 16:02:31 +00:00
}
}
2019-12-30 16:02:31 +00:00
.oo-ui-popupWidget-popup .mw-advancedSearch-tooltip-head {
color: var( --color-base--subtle );
2019-12-30 16:02:31 +00:00
}