mediawiki-skins-Citizen/skinStyles/mediawiki/special/mediawiki.special.search.styles.less

187 lines
3.3 KiB
Plaintext
Raw Normal View History

2019-08-15 17:40:13 +00:00
/*
2022-10-20 20:36:35 +00:00
* Citizen
*
* SkinStyles for Special:Search
* Module: mediawiki.special.search.styles
* Version: 1.39.0
*
* Date: 2023-06-20
2019-08-15 17:40:13 +00:00
*/
@import '../../../resources/mixins.less';
@import '../../../resources/variables.less';
2019-08-15 17:40:13 +00:00
2022-10-20 20:36:35 +00:00
// Disable default sticky header
#citizen-body-header-sticky-sentinel {
display: none;
}
#mw-search-top-table {
display: flex;
justify-content: space-between;
gap: var( --space-xl );
2022-10-20 20:36:35 +00:00
.oo-ui-widget {
font-size: 1rem; // HACK: Override the 14px hack we use for OOUI
}
2022-10-20 20:36:35 +00:00
}
.mw-search-profile-tabs {
border: 0;
2022-10-20 20:36:35 +00:00
border-bottom: 1px solid var( --border-color-base );
margin-top: var( --space-xxs );
2022-10-20 20:36:35 +00:00
background-color: transparent;
}
2019-08-15 17:40:13 +00:00
.search-types {
padding-left: 0;
float: none;
ul {
display: flex;
overflow-x: auto;
white-space: nowrap;
}
2022-10-20 20:36:35 +00:00
a {
padding: var( --space-xs ) var( --space-sm );
2022-10-20 20:36:35 +00:00
border-bottom: 2px solid transparent;
color: var( --color-base--emphasized );
font-weight: var( --font-weight-medium );
2022-10-20 20:36:35 +00:00
&:hover {
border-color: var( --color-primary--hover );
color: var( -color-primary--hover );
}
}
.current a {
border-color: var( --color-primary );
color: var( --color-primary );
}
}
.results-info {
color: var( --color-base--subtle );
font-size: 0.875rem;
2022-10-20 20:36:35 +00:00
white-space: nowrap;
}
#mw-searchoptions {
border-color: transparent;
border-radius: 0;
background-color: var( --color-surface-1 );
h4 {
color: var( --color-base--subtle );
font-size: 0.875rem;
font-weight: var( --font-weight-normal );
letter-spacing: 0.05em;
2022-10-20 20:36:35 +00:00
}
.divider {
border-color: var( --border-color-base );
2019-08-15 17:40:13 +00:00
}
}
2019-12-26 21:46:02 +00:00
2022-10-20 20:36:35 +00:00
#mw-search-interwiki {
border-color: var( --border-color-base );
}
.searchdidyoumean {
font-size: 1rem;
}
.mw-search-createlink,
.mw-search-exists {
// These can generate a empty card when there are no text content
// FIXME: re-enable when this is addressed in core
// padding: var( --space-sm ) var( --space-md );
// background: var( --color-surface-2 );
// border-radius: var( --border-radius--small );
margin-top: 0 !important;
color: var( --color-base--emphasized );
}
2022-10-20 20:36:35 +00:00
.mw-search-results {
max-width: 50em;
2022-10-20 20:36:35 +00:00
li {
padding: var( --space-md ) 0;
2022-10-20 20:36:35 +00:00
a {
font-size: var( --font-size-h3 );
2022-10-20 20:36:35 +00:00
}
2019-12-26 21:46:02 +00:00
}
2022-10-20 20:36:35 +00:00
}
2019-12-26 21:46:02 +00:00
2022-10-20 20:36:35 +00:00
.mw-search-result {
// padding: var( --space-md ) 0;
font-size: 0.875rem;
&-heading {
a {
// font-size: var( --font-size-h3 );
font-weight: var( --font-weight-semibold );
}
}
2022-10-20 20:36:35 +00:00
&-data {
color: var( --color-base--subtle );
font-size: 0.875rem;
}
}
.searchmatch {
color: var( --color-base--emphasized );
font-weight: var( --font-weight-semibold );
a & {
// If searchmatch is part of the link (usually title), use link color
color: inherit;
}
}
.searchresults {
h2 {
padding-bottom: var( --space-xs );
border-bottom: 1px solid var( --border-color-base );
margin-bottom: 0;
color: var( --color-base--subtle );
font-size: 0.875rem;
font-weight: var( --font-weight-normal );
letter-spacing: 0.05em;
2019-12-26 21:46:02 +00:00
}
2022-10-20 20:36:35 +00:00
}
2019-12-26 21:46:02 +00:00
2022-10-20 20:36:35 +00:00
// Somehow got overridden
.citizen-body {
.search-types {
ul {
margin: 0;
}
2019-12-26 21:46:02 +00:00
}
2022-10-20 20:36:35 +00:00
.mw-search-results {
margin: 0;
2019-12-26 21:46:02 +00:00
}
2022-10-20 20:36:35 +00:00
}
2019-12-26 21:46:02 +00:00
2022-10-20 20:36:35 +00:00
@media ( max-width: @width-breakpoint-tablet ) {
.results-info {
display: none;
2019-12-26 21:46:02 +00:00
}
2022-10-20 20:36:35 +00:00
// Not great but works for now
#mw-searchoptions {
overflow: auto;
max-height: 20vh;
2019-12-26 21:46:02 +00:00
}
.mw-search-createlink,
.mw-search-exists {
max-width: none;
float: none;
}
2019-12-26 21:46:02 +00:00
}