quick fix: disable dynamic navbar-height
This commit is contained in:
parent
8d69904d47
commit
810b6f05cc
@ -18,8 +18,7 @@
|
||||
}
|
||||
|
||||
function update() {
|
||||
var sticky = window.scrollY > 0;
|
||||
sticky = sticky && window.innerHeight < (document.scrollingElement.scrollHeight - 200);
|
||||
var sticky = window.scrollY > 30;
|
||||
nav.classList.toggle('navbar--sticky', sticky);
|
||||
ticking = false;
|
||||
}
|
||||
@ -28,7 +27,5 @@
|
||||
})();
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
utils.stickynav(document.querySelector('.js-sticky-navbar'));
|
||||
|
||||
// utils.stickynav(document.querySelector('.js-sticky-navbar'));
|
||||
});
|
||||
|
||||
@ -208,3 +208,19 @@
|
||||
height: var(--header-height-collapsed);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-height: 768px) {
|
||||
|
||||
.navbar,
|
||||
.navbar__pushdown {
|
||||
height: var(--header-height-collapsed);
|
||||
}
|
||||
|
||||
.navbar__link-wrapper {
|
||||
height: var(--header-height-collapsed);
|
||||
}
|
||||
|
||||
.navbar__logo {
|
||||
top: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user