Added basic search.

This commit is contained in:
Magnus Åhall 2023-07-19 10:00:36 +02:00
parent 57180e986e
commit c58a1b988b
6 changed files with 211 additions and 21 deletions

29
static/css/search.css Normal file
View file

@ -0,0 +1,29 @@
/*
@theme_gradient: linear-gradient(to right, #009fff, #ec2f4b);
@theme_gradient: linear-gradient(to right, #f5af19, #f12711);
@theme_gradient: linear-gradient(to right, #fdc830, #f37335);
@theme_gradient: linear-gradient(to right, #8a2387, #e94057, #f27121);
@theme_gradient: linear-gradient(to right, #659999, #f4791f);
*/
#search {
padding: 16px;
color: #333;
}
#search h2 {
margin-bottom: 8px;
}
#search input[type=text] {
font-size: 1em;
}
#search button {
display: block;
margin-top: 8px;
}
#search .matches .matched-node {
cursor: pointer;
margin-top: 6px;
}
#search .matches .matched-node:before {
content: "•";
margin-right: 6px;
}