2021-02-20 23:12:54 +01:00
|
|
|
.autocomplete {
|
|
|
|
/*the container must be positioned relative:*/
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete-items {
|
|
|
|
position: absolute;
|
|
|
|
border: $default-border-2;
|
|
|
|
border-bottom: none;
|
|
|
|
border-top: none;
|
|
|
|
z-index: 99;
|
|
|
|
/*position the autocomplete items to be the same width as the container:*/
|
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
div {
|
|
|
|
padding: 1em;
|
|
|
|
cursor: pointer;
|
|
|
|
border-bottom: $default-border-2;
|
|
|
|
background-color: $background-color;
|
|
|
|
|
|
|
|
&:hover {
|
2023-05-14 15:07:54 +02:00
|
|
|
background-color: $hover-bg-2;
|
2021-02-20 23:12:54 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete-active {
|
2023-05-14 15:07:54 +02:00
|
|
|
background-color: $hover-bg-2 !important;
|
2021-02-20 23:12:54 +01:00
|
|
|
}
|