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%;
|
2021-05-17 21:58:48 +00:00
|
|
|
max-height: ~'calc( 100vh - var( --height-header ) )';
|
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-02 01:35:33 +00:00
|
|
|
.citizen-card-hide( 50% 0, Y );
|
|
|
|
// 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;
|
2022-05-02 01:35:33 +00:00
|
|
|
opacity: 0;
|
2021-05-17 20:34:14 +00:00
|
|
|
|
|
|
|
&__thumbnail {
|
|
|
|
overflow: hidden;
|
|
|
|
height: 60px;
|
2021-08-31 17:13:49 +00:00
|
|
|
background-color: #eaecf0;
|
2022-04-28 19:18:41 +00:00
|
|
|
border-radius: var( --border-radius--medium );
|
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 );
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
|
|
&__highlight {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__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 );
|
2021-05-17 20:34:14 +00:00
|
|
|
border-top: 1px solid var( --border-color-base );
|
2021-05-27 14:35:21 +00:00
|
|
|
border-radius: 0 0 var( --border-radius--large ) var( --border-radius--large );
|
2022-05-11 02:05:42 +00:00
|
|
|
font-size: 0.8125rem;
|
2021-05-17 20:34:14 +00:00
|
|
|
font-weight: 450;
|
|
|
|
|
|
|
|
&__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 );
|
2022-05-02 01:35:33 +00:00
|
|
|
|
|
|
|
.citizen-typeahead-suggestion {
|
2022-05-02 02:11:31 +00:00
|
|
|
.citizen-card-content-show;
|
2022-05-02 01:35:33 +00:00
|
|
|
}
|
2021-05-17 20:34:14 +00:00
|
|
|
}
|
|
|
|
}
|