]> _ Git - fluidbook-html5.git/commitdiff
fix #1731 @0:15
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Oct 2017 10:04:35 +0000 (12:04 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Oct 2017 10:04:35 +0000 (12:04 +0200)
js/libs/fluidbook/fluidbook.nav.js
js/libs/fluidbook/fluidbook.resize.js
style/fluidbook.less

index eef9251e2dfe57e397ac84baf5389c37e3f59434..224e26e32924bef44d485c0df4b26f4abcef9554 100644 (file)
@@ -872,6 +872,10 @@ FluidbookNav.prototype = {
         html += '</li></ul>';
 
         return html;
+    },
+
+    burgerActive:function(){
+        return $('#menuOpener').is(':visible');
     }
 };
 
index b09703db58c51d456b2ee4ecb3c26c14b067fd3f..a7b61e28020c9ef7e4ed25dfefbe78b8f4bc1eb9 100644 (file)
@@ -206,6 +206,16 @@ FluidbookResize.prototype = {
 
         $("#main").show();
 
+        if (this.fluidbook.nav) {
+            if (this.fluidbook.nav.burgerActive()) {
+                $("html").addClass('menu-burger');
+                $("html").removeClass('menu-horizontal');
+            } else {
+                $("html").addClass('menu-horizontal');
+                $("html").removeClass('menu-burger');
+            }
+        }
+
         $(window).scrollTop(0);
         $(window).trigger('fluidbookresize');
         $(this.fluidbook).trigger('fluidbook.resize');
index cb9fb13d734b1c9571a037a1fc2e672608c29298..c269e53390d42ae935232b8da2b51279b6cf8d56 100644 (file)
@@ -820,7 +820,7 @@ header {
        }
 
        // Portrait mode - logo hidden
-       .portrait & {
+       .menu-horizontal .portrait & {
                display: none;
        }