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