use input as close button
This commit is contained in:
parent
0490fbdd6e
commit
9f339713c7
|
@ -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) {
|
||||||
|
|
Reference in New Issue