mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
![Aditya Telange](/assets/img/avatar_default.png)
- fix menu element becoming inactive change class active -> focus - set input type seach #198 - add a reset func - add script to clear searchbox when clicked on X sign
46 lines
778 B
CSS
46 lines
778 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;
|
|
}
|
|
|
|
#searchResults .focus {
|
|
transform: scale(.98);
|
|
border: 2px solid var(--tertiary)
|
|
}
|