Skip to content

Commit 73e4191

Browse files
committed
Disable scroll when mobile menu is open #5
1 parent 055504a commit 73e4191

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/styles/blocks.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@
7777
overflow-y: auto;
7878
}
7979

80+
body:has(.mobile-nav:target) {
81+
overflow: hidden;
82+
}
83+
8084
.mobile-nav__header {
8185
display: flex;
8286
justify-content: space-between;

0 commit comments

Comments
 (0)