Ponysearch/searx/static/themes/simple/src/less/autocomplete.less

76 lines
1.3 KiB
Text
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;
width: @search-width;
max-height: 0;
overflow-y: hidden;
.ltr-text-align-left();
.rounded-corners;
&:active,
&:focus,
&:hover {
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;
padding: 0.5rem 1rem;
2017-02-12 15:06:01 +01:00
&.active,
&:active,
&: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;
background-color: var(--color-autocomplete-background);
color: var(--color-autocomplete-font);
max-height: 32rem;
overflow-y: auto;
z-index: 100;
margin-top: 3.5rem;
border-radius: 0.8rem;
box-shadow: 0 2px 8px rgb(34 38 46 / 25%);
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 {
width: 100%;
2017-02-12 15:06:01 +01:00
> ul > li {
padding: 1rem;
}
2017-02-12 15:06:01 +01:00
}
}