Init autocomplete. Still needs some testing and fixes.

This commit is contained in:
deepjyoti30
2020-07-04 22:42:45 +05:30
parent 8366d2e714
commit cbfddba907
5 changed files with 224 additions and 11 deletions

View File

@@ -61,9 +61,12 @@ body {
margin: 0 auto 50px auto;
height: 45px;
padding-top: 35px;
position: relative;
display: inline-block;
input {
height: inherit;
#search-bar-input {
height: 50px;
width: 100%;
background: lighten($background, 5);
box-shadow: none;
@@ -74,12 +77,46 @@ body {
padding: 7px 14px;
font-size: 18px;
color: $foreground;
box-sizing: border-box;
&:focus {
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
}
.autocomplete-items-container {
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 99;
border-radius: 6px;
.autocomplete-item {
width: 100%;
background: lighten($background, 5);
box-shadow: none;
border: none;
text-align: center;
outline: none;
padding: 7px 14px;
font-size: 18px;
color: $foreground;
box-sizing: border-box;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
&:hover {
background-color: red;
}
}
.autocomplete-active {
background-color: DodgerBlue !important;
color: #ffffff;
}
}
@media only screen and (max-width: 791px) {