use input as close button

This commit is contained in:
Ray Elliott 2020-04-03 11:46:37 +00:00
parent 0490fbdd6e
commit 9f339713c7
1 changed files with 13 additions and 1 deletions

View File

@ -6,7 +6,19 @@ $bp-menu-collpase: $bp-s;
input.c-menu-toggle__toggle[type="checkbox"], input.c-menu-toggle__toggle[type="checkbox"],
input.c-menu-toggle__toggle[type="radio"] { input.c-menu-toggle__toggle[type="radio"] {
display: none; // display: none;
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: 0;
pointer-events: none;
&:checked {
pointer-events: auto;
}
} }
@media (max-width: $bp-menu-collpase) { @media (max-width: $bp-menu-collpase) {