mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Fix mobile navbar
This commit is contained in:
@@ -272,22 +272,11 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
const specialShadow = document.getElementById('specialShadow');
|
||||
const NAVBAR_HEIGHT = 52;
|
||||
const THRESHOLD = 160;
|
||||
let navbarOpen = false;
|
||||
let horizon = NAVBAR_HEIGHT;
|
||||
let whereYouStoppedScrolling = 0;
|
||||
let scrollFactor = 0;
|
||||
let currentTranslate = 0;
|
||||
|
||||
navbarBurger.addEventListener('click', el => {
|
||||
navbarOpen = !navbarOpen;
|
||||
|
||||
if (navbarOpen) {
|
||||
rootEl.classList.add('bd-is-clipped-touch');
|
||||
} else {
|
||||
rootEl.classList.remove('bd-is-clipped-touch');
|
||||
}
|
||||
});
|
||||
|
||||
// Anchors highlight
|
||||
|
||||
let past_anchors = [];
|
||||
|
||||
Reference in New Issue
Block a user