From 810b6f05ccaca6396b64a41654f1650b7d213081 Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Thu, 28 Jun 2018 22:32:43 +0200 Subject: [PATCH] quick fix: disable dynamic navbar-height --- templates/widgets/navbar.julius | 7 ++----- templates/widgets/navbar.lucius | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/templates/widgets/navbar.julius b/templates/widgets/navbar.julius index ecbd23977..31ad506b6 100644 --- a/templates/widgets/navbar.julius +++ b/templates/widgets/navbar.julius @@ -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')); }); diff --git a/templates/widgets/navbar.lucius b/templates/widgets/navbar.lucius index d6e9f688a..4ed1521ef 100644 --- a/templates/widgets/navbar.lucius +++ b/templates/widgets/navbar.lucius @@ -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; + } +}