Files
mue/src/components/helpers/autocomplete/autocomplete.scss
David Ralph a1b6832747 feat: autocomplete for search
Co-authored-by: Alex Sparkes <turbomarshmello@gmail.com>
2021-05-01 18:29:07 +01:00

39 lines
643 B
SCSS

.suggestions {
text-align: left;
font-size: calc(5px + 1.2vmin);
background-color: rgba(0, 0, 0, 0.5);
border-top-width: 0;
list-style: none;
margin-top: 40px;
max-height: 143px;
overflow: hidden;
position: relative;
display: inline-block;
margin-left: 40px;
border-radius: 24px;
width: 430px;
opacity: 0;
li {
padding: 0.5rem;
padding-left: 20px;
&:hover {
background-color: rgba(0, 0, 0, 0.5);
cursor: pointer;
}
}
}
.searchBar {
input[type=text]:focus+.suggestions {
opacity: 1;
}
}
@media screen and (min-width: 1400px) {
.suggestions {
margin-top: 50px;
}
}