whoogle-search/app/static/css/search.css
Ben Busby 1d0c63c217 Basic autocomplete functionality added
Still need to add support to the opensearch xml template, but otherwise
the main page functionality is working as expected

Adds new route '/autocomplete' that accepts a string query for both GET and POST requests, and returns an array of suggestions

Adds GET and POST tests for autocomplete search as well
2020-05-23 15:38:37 -06:00

34 lines
640 B
CSS

.autocomplete {
position: relative;
display: inline-block;
width: 100%;
}
.autocomplete-items {
position: absolute;
border: 1px solid #d4d4d4;
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;
}
.autocomplete-items div {
padding: 10px;
cursor: pointer;
background-color: #fff;
border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
background-color: #e9e9e9;
}
.autocomplete-active {
background-color: #685e79 !important;
color: #ffffff;
}