Skip to content

Commit

Permalink
atempt to disable sroling while menu is open
Browse files Browse the repository at this point in the history
  • Loading branch information
arturgorniak committed Oct 28, 2023
1 parent 9adfb24 commit ec71c8d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/styles/blocks/reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
scroll-behavior: smooth;
}

body {
overflow-x: hidden;

&.menu-open {
overflow: hidden;
}
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
Expand All @@ -37,6 +29,11 @@ footer, header, hgroup, menu, nav, section {
}
body {
line-height: 1;
overflow-x: hidden;

&.menu:active {
overflow: hidden;
}
}
ol, ul {
list-style: none;
Expand Down

0 comments on commit ec71c8d

Please sign in to comment.