hide toggles on non mobile

This commit is contained in:
Mike McBride 2022-11-19 11:13:40 -06:00
parent 692558c35a
commit ad7e581e44
No known key found for this signature in database
1 changed files with 8 additions and 1 deletions

View File

@ -198,6 +198,11 @@ body {
@media screen and (max-width: $mobile-width) {
margin-bottom: 60px;
// css menu toggle for mobile.
// when the checkbox is checked, the menu shows,
// othewise it's hidden.
// it's important for it all to be scoped inside this media query,
// that way on larger screens the menu will always show even if the checkbox is unchecked.
input[type="checkbox"] {
display: none;
}
@ -227,8 +232,10 @@ body {
}
}
// on viewport sizes larger than mobile, always hide the mobile nav toggle.
@media screen and (min-width: $mobile-width) {
.mobile-nav-wrapper {
.mobile-nav-toggle,
.mobile-nav-toggle + label {
display: none;
}
}