mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-29 05:46:56 +01:00
4a4408573e
* based on https://gist.github.com/cmod/5410eae147e4318164258742dd053993 * modified working for PaperMod * fetches current lang index.json for search * add fuse.js v6.4.3 LICENSE: Apache License 2.0 * bundled fastsearch and fusejs as search.js Co-authored-by: Craig Mod <stuff@craigmod.com>
41 lines
686 B
CSS
41 lines
686 B
CSS
.searchbox input {
|
|
padding: 4px 10px;
|
|
width: 100%;
|
|
color: var(--primary);
|
|
font-weight: bold;
|
|
border: 2px solid var(--tertiary);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.searchbox input:focus {
|
|
border-color: var(--secondary);
|
|
}
|
|
|
|
#searchResults li {
|
|
list-style: none;
|
|
border-radius: var(--radius);
|
|
padding: 10px;
|
|
margin: 10px 0;
|
|
position: relative;
|
|
font-weight: 500;
|
|
}
|
|
|
|
#searchResults {
|
|
margin: 10px 0;
|
|
width: 100%;
|
|
}
|
|
|
|
#searchResults li:active {
|
|
transition: transform .1s;
|
|
transform: scale(.98);
|
|
}
|
|
|
|
#searchResults a {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0px;
|
|
left: 0px;
|
|
outline: none;
|
|
}
|