From 0ec0b384630a63fc62fec3ff71448a6194d561b0 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 14 Nov 2023 04:37:27 -0700 Subject: [PATCH] don't lock scrolling after resizing when the mobile menu remains open --- src/css/header.css | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/css/header.css b/src/css/header.css index e170995e..f679bda6 100644 --- a/src/css/header.css +++ b/src/css/header.css @@ -1,12 +1,14 @@ -html.is-clipped--navbar { - overflow-y: hidden; -} - -/* NOTE workaround bug in Firefox mobile, which clips the html element to the original viewport height */ -@supports (scrollbar-width: none) { +@media screen and (max-width: 1023.5px) { html.is-clipped--navbar { - overflow-y: initial; - scrollbar-width: none; + overflow-y: hidden; + } + + /* NOTE workaround bug in Firefox mobile, which clips the html element to the original viewport height */ + @supports (scrollbar-width: none) { + html.is-clipped--navbar { + overflow-y: initial; + scrollbar-width: none; + } } }