Bring up form when it has focus, also

This commit is contained in:
benjamin melançon 2018-12-25 23:24:11 -05:00
parent d9a187bd58
commit 3ef69dd84f

View file

@ -236,12 +236,10 @@ a.navbar-link:hover,
padding: 3.5rem 1rem 0.666rem 1rem; padding: 3.5rem 1rem 0.666rem 1rem;
background-color: $dark; background-color: $dark;
} }
.navbar-search-swap:hover, .navbar-search-swap:hover form,
.navbar-search-swap:focus { form:focus-within {
form {
top: -3rem; top: -3rem;
} }
}
.navbar-search-swap form .form-item .control .form-text.input { .navbar-search-swap form .form-item .control .form-text.input {
width: 18rem; width: 18rem;
} }