Skip to content

Commit 0ec0b38

Browse files
committed
don't lock scrolling after resizing when the mobile menu remains open
1 parent 60b946e commit 0ec0b38

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/css/header.css

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
html.is-clipped--navbar {
2-
overflow-y: hidden;
3-
}
4-
5-
/* NOTE workaround bug in Firefox mobile, which clips the html element to the original viewport height */
6-
@supports (scrollbar-width: none) {
1+
@media screen and (max-width: 1023.5px) {
72
html.is-clipped--navbar {
8-
overflow-y: initial;
9-
scrollbar-width: none;
3+
overflow-y: hidden;
4+
}
5+
6+
/* NOTE workaround bug in Firefox mobile, which clips the html element to the original viewport height */
7+
@supports (scrollbar-width: none) {
8+
html.is-clipped--navbar {
9+
overflow-y: initial;
10+
scrollbar-width: none;
11+
}
1012
}
1113
}
1214

0 commit comments

Comments
 (0)