]> git.neb.cc Git - xyz.git/commitdiff
Dim body when nav open (#13)
authorBen Larson <[email protected]>
Sun, 20 Sep 2020 21:05:29 +0000 (16:05 -0500)
committerGitHub <[email protected]>
Sun, 20 Sep 2020 21:05:29 +0000 (16:05 -0500)
src/components/menu.css

index 2cb2a410bc96af220998dcc24cd696fcf16505a4..7e5ecc947a57ee82cf21dc9b2c4eaca1d0bdc3d9 100644 (file)
 
 .Menu-Closer {
   z-index: 8;
+  pointer-events: none;
   position: fixed;
+  opacity: 0;
   top: 0;
   left: 0;
-  width: 0;
+  width: 100vw;
   height: 100vh;
+  background-color: rgba(0, 0, 0, 0.2);
+  transition: opacity 0.2s;
 }
 
 .isNavOpen .Menu-Closer {
-  width: 100vw;
+  pointer-events: initial;
+  opacity: 1;
 }
 
 .Menu-Button {