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
|
|
|
|
*
|
2023-06-20 18:12:15 +00:00
|
|
|
* Date: 2023-06-20
|
2019-08-15 17:40:13 +00:00
|
|
|
*/
|
|
|
|
|
2022-11-25 01:14:44 +00:00
|
|
|
@import '../../../resources/mixins.less';
|
2019-12-29 09:47:56 +00:00
|
|
|
@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;
|
2022-11-01 00:34:00 +00:00
|
|
|
gap: var( --space-xl );
|
2023-07-28 01:19:27 +00:00
|
|
|
justify-content: space-between;
|
2022-10-20 20:36:35 +00:00
|
|
|
|
2022-12-13 01:11:13 +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 {
|
2022-11-01 00:34:00 +00:00
|
|
|
margin-top: var( --space-xxs );
|
2022-10-20 20:36:35 +00:00
|
|
|
background-color: transparent;
|
2023-07-28 01:19:27 +00:00
|
|
|
border: 0;
|
|
|
|
border-bottom: 1px solid var( --border-color-base );
|
2022-10-20 20:36:35 +00:00
|
|
|
}
|
|
|
|
|
2019-08-15 17:40:13 +00:00
|
|
|
.search-types {
|
2022-12-13 01:11:13 +00:00
|
|
|
float: none;
|
2023-07-28 01:19:27 +00:00
|
|
|
padding-left: 0;
|
2022-12-13 01:11:13 +00:00
|
|
|
|
|
|
|
ul {
|
|
|
|
display: flex;
|
|
|
|
overflow-x: auto;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2022-10-20 20:36:35 +00:00
|
|
|
a {
|
2022-12-13 01:11:13 +00:00
|
|
|
padding: var( --space-xs ) var( --space-sm );
|
2022-10-23 23:40:19 +00:00
|
|
|
font-weight: var( --font-weight-medium );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--emphasized );
|
|
|
|
border-bottom: 2px solid transparent;
|
2022-10-20 20:36:35 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var( -color-primary--hover );
|
2023-07-28 01:19:27 +00:00
|
|
|
border-color: var( --color-primary--hover );
|
2022-10-20 20:36:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.current a {
|
|
|
|
color: var( --color-primary );
|
2023-07-28 01:19:27 +00:00
|
|
|
border-color: var( --color-primary );
|
2022-10-20 20:36:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.results-info {
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--subtle );
|
2022-10-20 20:36:35 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
#mw-searchoptions {
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: var( --color-surface-1 );
|
2022-10-20 20:36:35 +00:00
|
|
|
border-color: transparent;
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
|
|
h4 {
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2022-10-23 23:40:19 +00:00
|
|
|
font-weight: var( --font-weight-normal );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--subtle );
|
2022-10-28 03:26:52 +00:00
|
|
|
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 );
|
|
|
|
}
|
|
|
|
|
2022-10-20 20:54:08 +00:00
|
|
|
.searchdidyoumean {
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-search-createlink,
|
|
|
|
.mw-search-exists {
|
2022-12-13 20:01:54 +00:00
|
|
|
// 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 );
|
2022-10-20 20:54:08 +00:00
|
|
|
margin-top: 0 !important;
|
2022-12-13 01:11:13 +00:00
|
|
|
color: var( --color-base--emphasized );
|
2022-10-20 20:54:08 +00:00
|
|
|
}
|
|
|
|
|
2022-10-20 20:36:35 +00:00
|
|
|
.mw-search-results {
|
2022-12-13 01:11:13 +00:00
|
|
|
max-width: 50em;
|
|
|
|
|
2022-10-20 20:36:35 +00:00
|
|
|
li {
|
2022-12-13 01:11:13 +00:00
|
|
|
padding: var( --space-md ) 0;
|
|
|
|
|
2022-10-20 20:36:35 +00:00
|
|
|
a {
|
2024-02-26 21:54:58 +00:00
|
|
|
font-size: var( --font-size-x-large );
|
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 {
|
2022-12-13 01:11:13 +00:00
|
|
|
// padding: var( --space-md ) 0;
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2022-12-13 01:11:13 +00:00
|
|
|
|
|
|
|
&-heading {
|
|
|
|
a {
|
2024-02-26 21:54:58 +00:00
|
|
|
// font-size: var( --font-size-x-large );
|
2022-12-13 01:11:13 +00:00
|
|
|
font-weight: var( --font-weight-semibold );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-20 20:36:35 +00:00
|
|
|
&-data {
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--subtle );
|
2022-12-13 01:11:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.searchmatch {
|
|
|
|
font-weight: var( --font-weight-semibold );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--emphasized );
|
2022-12-13 20:01:54 +00:00
|
|
|
|
|
|
|
a & {
|
|
|
|
// If searchmatch is part of the link (usually title), use link color
|
|
|
|
color: inherit;
|
|
|
|
}
|
2022-12-13 01:11:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.searchresults {
|
|
|
|
h2 {
|
|
|
|
padding-bottom: var( --space-xs );
|
|
|
|
margin-bottom: 0;
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2022-12-13 01:11:13 +00:00
|
|
|
font-weight: var( --font-weight-normal );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--subtle );
|
2022-12-13 01:11:13 +00:00
|
|
|
letter-spacing: 0.05em;
|
2023-07-28 01:19:27 +00:00
|
|
|
border-bottom: 1px solid var( --border-color-base );
|
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
|
|
|
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
2022-10-20 20:36:35 +00:00
|
|
|
.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 {
|
|
|
|
max-height: 20vh;
|
2023-07-28 01:19:27 +00:00
|
|
|
overflow: auto;
|
2019-12-26 21:46:02 +00:00
|
|
|
}
|
2022-10-20 20:54:08 +00:00
|
|
|
|
|
|
|
.mw-search-createlink,
|
|
|
|
.mw-search-exists {
|
|
|
|
float: none;
|
2023-07-28 01:19:27 +00:00
|
|
|
max-width: none;
|
2022-10-20 20:54:08 +00:00
|
|
|
}
|
2019-12-26 21:46:02 +00:00
|
|
|
}
|