2023-07-07 21:26:12 +00:00
|
|
|
@import '../variables.less';
|
|
|
|
@import '../mixins.less';
|
|
|
|
|
2021-05-17 20:34:14 +00:00
|
|
|
.citizen-typeahead {
|
2024-07-05 17:24:31 +00:00
|
|
|
border-bottom-right-radius: var( --border-radius-medium );
|
|
|
|
border-bottom-left-radius: var( --border-radius-medium );
|
2024-09-26 18:55:49 +00:00
|
|
|
|
2024-09-27 06:26:56 +00:00
|
|
|
a {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-29 01:22:16 +00:00
|
|
|
&-input {
|
|
|
|
// Display overlay instead of the input, but keep the caret
|
|
|
|
color: transparent;
|
2024-06-30 05:04:30 +00:00
|
|
|
caret-color: var( --color-emphasized );
|
2023-08-29 01:22:16 +00:00
|
|
|
|
|
|
|
&-group {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-overlay {
|
|
|
|
position: absolute;
|
2023-08-30 14:31:26 +00:00
|
|
|
inset: 0 var( --height-search-bar ) 0 0; // clear button
|
2023-08-29 01:22:16 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-08-29 19:32:28 +00:00
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
2023-09-06 21:34:47 +00:00
|
|
|
pointer-events: none;
|
2023-08-29 01:22:16 +00:00
|
|
|
|
|
|
|
&-query {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2023-08-29 01:22:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-04 07:13:37 +00:00
|
|
|
&__highlight {
|
|
|
|
font-weight: var( --font-weight-medium );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2022-12-04 07:13:37 +00:00
|
|
|
}
|
|
|
|
|
2022-12-13 23:25:14 +00:00
|
|
|
&__query {
|
|
|
|
font-weight: var( --font-weight-semibold );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2022-12-13 23:25:14 +00:00
|
|
|
}
|
|
|
|
|
2022-12-04 07:13:37 +00:00
|
|
|
&__labelItem {
|
|
|
|
display: flex;
|
2024-09-26 19:51:36 +00:00
|
|
|
gap: var( --space-xxs );
|
2022-12-04 07:13:37 +00:00
|
|
|
align-items: center;
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2022-12-04 07:13:37 +00:00
|
|
|
}
|
2022-12-05 20:52:36 +00:00
|
|
|
}
|
|
|
|
|
2022-09-28 21:02:15 +00:00
|
|
|
// HACK: Hide default MW search suggestion if it somehow loaded
|
|
|
|
// This should be removed when we switch to vue search
|
|
|
|
.suggestions {
|
2022-11-08 05:25:40 +00:00
|
|
|
display: none !important;
|
2022-09-28 21:02:15 +00:00
|
|
|
}
|