mirror of
https://github.com/searxng/searxng.git
synced 2025-12-29 15:10:02 +00:00
The previously used library is unmaintained for 6 years now [1] and the solution had know issues [2][3] [1] https://github.com/searxng/searxng/pull/4284#discussion_r1954493434 [2] https://github.com/searxng/searxng/pull/4318#issuecomment-2731576657 [3] https://github.com/privau/searxng/issues/56
74 lines
1.3 KiB
Plaintext
74 lines
1.3 KiB
Plaintext
/*! Autocomplete.js v2.6.3 | license MIT | (c) 2017, Baptiste Donaux | http://autocomplete-js.com */
|
|
|
|
.autocomplete {
|
|
position: absolute;
|
|
width: @search-width;
|
|
max-width: calc(100% - 2 * @search-padding-horizontal);
|
|
max-height: 0;
|
|
overflow-y: hidden;
|
|
.ltr-text-align-left();
|
|
|
|
.rounded-corners;
|
|
|
|
&:active,
|
|
&:focus,
|
|
&:hover {
|
|
background-color: var(--color-autocomplete-background);
|
|
}
|
|
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
|
|
> ul {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
> li {
|
|
cursor: pointer;
|
|
padding: 0.5rem 1rem;
|
|
|
|
&.active,
|
|
&:active,
|
|
&:focus,
|
|
&:hover {
|
|
background-color: var(--color-autocomplete-background-hover);
|
|
|
|
a:active,
|
|
a:focus,
|
|
a:hover {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
&.locked {
|
|
cursor: inherit;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.open {
|
|
display: block;
|
|
background-color: var(--color-autocomplete-background);
|
|
color: var(--color-autocomplete-font);
|
|
max-height: 32rem;
|
|
overflow-y: auto;
|
|
z-index: 5000;
|
|
margin-top: 3.5rem;
|
|
border-radius: 0.8rem;
|
|
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: @phone) {
|
|
.autocomplete {
|
|
> ul > li {
|
|
padding: 1rem;
|
|
}
|
|
}
|
|
}
|