Skip to content

Commit

Permalink
fixed scroll when menu is open
Browse files Browse the repository at this point in the history
  • Loading branch information
HunchakAndrii committed Mar 22, 2024
1 parent 75e6bde commit b82a80d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ html {
scroll-behavior: smooth;
cursor: url(/src/images/cursor-28px-reverse.png), auto;
}
html:has(.mobile-menu:target) {
html:has(.mobile-menu.active) {
overflow: hidden;
}

Expand Down
2 changes: 1 addition & 1 deletion css/main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/styles/elements/_mobile-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
opacity: 1;
transform: translateX(25%);
pointer-events: all;

}
}
7 changes: 3 additions & 4 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@
@import './elements/index';
@import './sections/index';


html{
html {
font-family: Inter, sans-serif;
font-size: 16px;
line-height: 24px;
color: $black;
scroll-behavior: smooth;
cursor: url(/src/images/cursor-28px-reverse.png), auto;

&:has(.mobile-menu:target) {
&:has(.mobile-menu.active) {
overflow: hidden;
}
}

body {
background-color: $light-pink
background-color: $light-pink;
}

0 comments on commit b82a80d

Please sign in to comment.