2021-05-17 20:34:14 +00:00
|
|
|
@import '../variables.less';
|
|
|
|
@import '../mixins.less';
|
|
|
|
|
|
|
|
.citizen-typeahead {
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
2021-05-17 21:58:48 +00:00
|
|
|
overflow: auto;
|
2021-05-17 20:34:14 +00:00
|
|
|
width: 100%;
|
2022-09-30 20:52:13 +00:00
|
|
|
max-height: var( --header-card-maxheight );
|
2021-05-17 20:34:14 +00:00
|
|
|
box-sizing: border-box;
|
2022-05-11 02:05:42 +00:00
|
|
|
padding-top: 0.75rem;
|
|
|
|
margin-top: -0.75rem;
|
2022-04-28 19:18:41 +00:00
|
|
|
//border-radius: 0 0 var( --border-radius--medium ) var( --border-radius--medium );
|
|
|
|
.citizen-card;
|
2022-05-12 02:06:33 +00:00
|
|
|
.citizen-card-hide( 50% 0, Y, false );
|
2022-05-02 01:35:33 +00:00
|
|
|
// Well this won't be loaded before .citizen-animation-ready anyways
|
|
|
|
.citizen-card-transition();
|
2021-05-17 20:34:14 +00:00
|
|
|
|
|
|
|
&-suggestion {
|
2022-05-11 02:05:42 +00:00
|
|
|
padding-top: 0.375rem;
|
|
|
|
padding-bottom: 0.375rem;
|
2021-05-17 20:34:14 +00:00
|
|
|
|
|
|
|
&__thumbnail {
|
|
|
|
overflow: hidden;
|
|
|
|
height: 60px;
|
2022-04-28 19:18:41 +00:00
|
|
|
border-radius: var( --border-radius--medium );
|
2022-09-28 21:02:56 +00:00
|
|
|
background-color: #eaecf0;
|
2021-05-17 20:34:14 +00:00
|
|
|
|
|
|
|
img,
|
|
|
|
source {
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__text {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
color: var( --color-base--emphasized );
|
2022-10-23 23:40:19 +00:00
|
|
|
font-weight: var( --font-weight-semibold );
|
2022-05-20 23:10:36 +00:00
|
|
|
}
|
2021-05-17 20:34:14 +00:00
|
|
|
|
2022-05-20 23:10:36 +00:00
|
|
|
&__highlight {
|
|
|
|
color: var( --color-base--subtle );
|
2022-10-23 23:40:19 +00:00
|
|
|
font-weight: var( --font-weight-medium );
|
2022-05-20 23:10:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__redirect {
|
2022-05-20 23:48:07 +00:00
|
|
|
margin-left: 0.25rem;
|
2022-05-20 23:10:36 +00:00
|
|
|
color: var( --color-base );
|
|
|
|
font-size: 0.8125rem;
|
2021-05-17 20:34:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__description {
|
|
|
|
margin-top: 0.1rem;
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
font-size: @content-caption-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title,
|
|
|
|
&__description {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-footer {
|
2021-05-27 14:35:21 +00:00
|
|
|
padding-top: var( --border-radius--large );
|
|
|
|
padding-bottom: var( --border-radius--large );
|
|
|
|
border-radius: 0 0 var( --border-radius--large ) var( --border-radius--large );
|
2022-09-28 21:02:56 +00:00
|
|
|
border-top: 1px solid var( --border-color-base );
|
2022-05-11 02:05:42 +00:00
|
|
|
font-size: 0.8125rem;
|
2022-10-23 23:40:19 +00:00
|
|
|
font-weight: var( --font-weight-medium );
|
2021-05-17 20:34:14 +00:00
|
|
|
|
|
|
|
&__icon {
|
|
|
|
height: var( --size-icon );
|
|
|
|
}
|
2021-05-17 21:55:52 +00:00
|
|
|
|
2021-05-17 21:55:00 +00:00
|
|
|
&__text {
|
|
|
|
strong {
|
|
|
|
color: var( --color-base--emphasized );
|
|
|
|
}
|
|
|
|
}
|
2021-05-17 20:34:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-option {
|
|
|
|
&--active {
|
|
|
|
background-color: var( --background-color-primary--hover );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-05-11 02:05:42 +00:00
|
|
|
padding-right: 0.75rem;
|
|
|
|
padding-left: 0.75rem;
|
2021-05-17 20:34:14 +00:00
|
|
|
color: var( --color-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
picture {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 70px;
|
2022-05-11 02:05:42 +00:00
|
|
|
margin-right: 0.75rem;
|
2021-05-17 20:34:14 +00:00
|
|
|
|
|
|
|
img,
|
|
|
|
source {
|
|
|
|
width: inherit;
|
|
|
|
height: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--expanded {
|
2022-05-02 02:53:41 +00:00
|
|
|
.citizen-card-show( false );
|
2021-05-17 20:34:14 +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
|
|
|
}
|