From b86185edd4cd0b0c84ae2fc76b99dbb3816927df Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Tue, 2 Nov 2021 19:23:03 +0100 Subject: [PATCH] =?UTF-8?q?Nelze=20scrollovat=20mimo=20mobiln=C3=AD=20navi?= =?UTF-8?q?gaci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Před tímto patchem bylo možné scrollovat přes neviditelný obsah, když bylo otevřené mobilní menu. Je třeba na obsah dát `display: none`, což obětuje animaci na opacity pro zmizení. --- sass/main.scss | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sass/main.scss b/sass/main.scss index c88325d..a84e22e 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -17,11 +17,7 @@ a { } // hide content for the mobile navigation -body.hidden>*:not(header) { opacity: 0 } -body>*:not(header) { - transition: opacity .2s ease-out; - opacity: initial; -} +body.hidden>*:not(header) { display: none } body { min-height: 100vh;