Skip to content

Commit c060944

Browse files
Fixed mobile scrolling issues
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
1 parent d046267 commit c060944

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

assets/built/screen.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/source.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/source.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/screen.css

+1
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ button.gh-form-input {
515515
gap: 24px;
516516
align-items: center;
517517
justify-content: flex-end;
518+
background-color: var(--background-color);
518519
}
519520

520521
.gh-navigation-members {

assets/js/casper.js renamed to assets/js/main.js

+2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
burger.addEventListener('click', function () {
88
if (!navigation.classList.contains('is-open')) {
99
navigation.classList.add('is-open');
10+
document.documentElement.style.overflowY = 'hidden';
1011
} else {
1112
navigation.classList.remove('is-open');
13+
document.documentElement.style.overflowY = null;
1214
}
1315
});
1416
})();

0 commit comments

Comments
 (0)