support esc and x button for main search bar

This commit is contained in:
Michael Shamoon
2022-10-29 09:44:26 -07:00
parent a9abffaddc
commit bd64684fa4
3 changed files with 28 additions and 8 deletions

View File

@@ -243,17 +243,18 @@ main {
form {
position: relative;
> svg {
position: absolute;
left: 0.6rem;
top: 0.5rem;
color: rgba(255, 255, 255, 0.6);
}
}
svg {
position: absolute;
left: 0.6rem;
top: 0.5rem;
color: rgba(255, 255, 255, 0.6);
}
&:focus-within {
svg {
form > svg {
display: none;
}