Skip to content

Commit

Permalink
Fixed mobile scrolling issues
Browse files Browse the repository at this point in the history
fixes #12

- added background color to the mobile menu actions
- disabled root scrolling when the mobile menu is opened which fixes the duplicate scrolling issue
  • Loading branch information
minimaluminium committed Jan 3, 2024
1 parent d046267 commit c060944
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/built/screen.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/built/screen.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/built/source.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/built/source.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ button.gh-form-input {
gap: 24px;
align-items: center;
justify-content: flex-end;
background-color: var(--background-color);
}

.gh-navigation-members {
Expand Down
2 changes: 2 additions & 0 deletions assets/js/casper.js → assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
burger.addEventListener('click', function () {
if (!navigation.classList.contains('is-open')) {
navigation.classList.add('is-open');
document.documentElement.style.overflowY = 'hidden';
} else {
navigation.classList.remove('is-open');
document.documentElement.style.overflowY = null;
}
});
})();
Expand Down

0 comments on commit c060944

Please sign in to comment.