Files
searxng/client/simple/src/less/autocomplete.less
T

74 lines
1.3 KiB
Plaintext
Raw Normal View History

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