Re-add search css to results page

The results page search css was removed during the refactor to allow for
user defined css. This adds that back.
This commit is contained in:
Ben Busby 2021-03-22 10:59:32 -04:00
parent bba3c32313
commit d81b232248
No known key found for this signature in database
GPG Key ID: 3B08611DF6E62ED2
2 changed files with 28 additions and 0 deletions

27
app/static/css/search.css Normal file
View File

@ -0,0 +1,27 @@
.autocomplete {
position: relative;
display: inline-block;
width: 100%;
}
.autocomplete-items {
position: absolute;
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;
}
details summary {
padding: 10px;
font-weight: bold;
}

View File

@ -5,6 +5,7 @@
<link rel="search" href="opensearch.xml" type="application/opensearchdescription+xml" title="Whoogle Search">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer">
<link rel="stylesheet" href="static/css/search.css">
<link rel="stylesheet" href="static/css/variables.css">
<link rel="stylesheet" href="static/css/header.css">
<link rel="stylesheet" href="static/css/{{ 'dark' if config.dark else 'light' }}-theme.css"/>