mediawiki-skins-Citizen/resources/skins.citizen.search/skins.citizen.search.less
alistair3149 c88df2d194
feat(tokens): deprecate old font-weight-semibold variables
Old variables are being deprecated to align naming convention with Codex.
They will be hard-deprecated on the next major Citizen version.
2024-10-23 17:34:41 -04:00

65 lines
1.2 KiB
Plaintext

@import '../variables.less';
@import '../mixins.less';
.citizen-typeahead {
border-bottom-right-radius: var( --border-radius-medium );
border-bottom-left-radius: var( --border-radius-medium );
a {
&:hover,
&:focus {
text-decoration: none;
}
}
&-input {
// Display overlay instead of the input, but keep the caret
color: transparent;
caret-color: var( --color-emphasized );
&-group {
position: relative;
display: flex;
flex-grow: 1;
}
&-overlay {
position: absolute;
inset: 0 var( --height-search-bar ) 0 0; // clear button
display: flex;
align-items: center;
overflow: hidden;
white-space: nowrap;
pointer-events: none;
&-query {
color: var( --color-emphasized );
}
}
}
&__highlight {
font-weight: var( --font-weight-medium );
color: var( --color-subtle );
}
&__query {
font-weight: var( --font-weight-semi-bold );
color: var( --color-emphasized );
}
&__labelItem {
display: flex;
gap: var( --space-xxs );
align-items: center;
font-size: var( --font-size-x-small );
color: var( --color-subtle );
}
}
// HACK: Hide default MW search suggestion if it somehow loaded
// This should be removed when we switch to vue search
.suggestions {
display: none !important;
}