2017-11-26 13:33:11 +00:00
|
|
|
/*! Autocomplete.js v2.6.3 | license MIT | (c) 2017, Baptiste Donaux | http://autocomplete-js.com */
|
|
|
|
|
2017-02-12 14:06:01 +00:00
|
|
|
.autocomplete {
|
2021-06-22 11:50:06 +00:00
|
|
|
position: absolute;
|
2022-03-09 16:43:58 +00:00
|
|
|
width: @search-width;
|
2021-06-22 11:50:06 +00:00
|
|
|
max-height: 0;
|
|
|
|
overflow-y: hidden;
|
2022-01-13 20:36:08 +00:00
|
|
|
.ltr-text-align-left();
|
|
|
|
|
2021-10-06 18:12:51 +00:00
|
|
|
.rounded-corners;
|
2021-06-22 11:50:06 +00:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
2021-10-06 18:12:51 +00:00
|
|
|
background-color: var(--color-autocomplete-background);
|
2021-06-22 11:50:06 +00:00
|
|
|
}
|
2017-02-12 14:06:01 +00:00
|
|
|
|
2021-06-22 11:50:06 +00:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-02-12 14:06:01 +00:00
|
|
|
|
2021-06-22 11:50:06 +00:00
|
|
|
> ul {
|
|
|
|
list-style-type: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2017-02-12 14:06:01 +00:00
|
|
|
|
2021-06-22 11:50:06 +00:00
|
|
|
> li {
|
|
|
|
cursor: pointer;
|
2022-03-09 16:43:58 +00:00
|
|
|
padding: 0.5rem 1rem;
|
2017-02-12 14:06:01 +00:00
|
|
|
|
2021-06-22 11:50:06 +00:00
|
|
|
&.active,
|
|
|
|
&:active,
|
2021-10-06 18:12:51 +00:00
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--color-autocomplete-background-hover);
|
2017-02-12 14:06:01 +00:00
|
|
|
|
2021-06-22 11:50:06 +00:00
|
|
|
a:active,
|
|
|
|
a:focus,
|
|
|
|
a:hover {
|
|
|
|
text-decoration: none;
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
2021-06-22 11:50:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.locked {
|
|
|
|
cursor: inherit;
|
|
|
|
}
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
2021-06-22 11:50:06 +00:00
|
|
|
}
|
2017-02-12 14:06:01 +00:00
|
|
|
|
2021-06-22 11:50:06 +00:00
|
|
|
&.open {
|
|
|
|
display: block;
|
2021-10-06 18:12:51 +00:00
|
|
|
background-color: var(--color-autocomplete-background);
|
2021-10-08 14:06:48 +00:00
|
|
|
color: var(--color-autocomplete-font);
|
|
|
|
border: 1px solid var(--color-autocomplete-border);
|
2022-03-09 16:43:58 +00:00
|
|
|
max-height: 32rem;
|
2021-06-22 11:50:06 +00:00
|
|
|
overflow-y: auto;
|
|
|
|
z-index: 100;
|
2022-03-09 16:43:58 +00:00
|
|
|
margin-top: 3.2rem;
|
2017-02-12 14:06:01 +00:00
|
|
|
|
2021-06-22 11:50:06 +00:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
2021-06-22 11:50:06 +00:00
|
|
|
}
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
|
|
|
|
2021-10-18 19:57:32 +00:00
|
|
|
@media screen and (max-width: @phone) {
|
2017-02-12 14:06:01 +00:00
|
|
|
.autocomplete {
|
2022-03-09 16:43:58 +00:00
|
|
|
width: 100%;
|
2017-02-12 14:06:01 +00:00
|
|
|
|
2022-03-09 16:43:58 +00:00
|
|
|
> ul > li {
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
2017-02-12 14:06:01 +00:00
|
|
|
}
|
|
|
|
}
|