AntonLV 9 ani în urmă
părinte
comite
be246a7d9f

+ 19 - 0
modules/boonex/decorous/data/template/system/_header.html

@@ -100,6 +100,25 @@
                 }
                 scrolling = false;
             }
+
+            // hide toolbar on scrolldown, show - on scroll up
+            var mq = checkMQ();
+            if(mq == 'mobile')
+	            new Headroom($('#bx-toolbar').get(0), {
+	                tolerance: {
+	                    down: 10,
+	                    up: 20
+	                },
+	                offset: 200,
+	                classes: {
+	                    initial: "bx-toolbar-anim",
+	                    pinned: "bx-toolbar-reset",
+	                    unpinned: "bx-toolbar-up"
+	                },
+	                onUnpin: function() {
+	                    bx_menu_slide_close_all_opened();
+	                }
+	            }).init();
         });
 
         (function(w) {

+ 1 - 1
modules/boonex/decorous/data/template/system/css/general.css

@@ -197,7 +197,7 @@
 
 /*--- Sidebar ---*/
 .cd-side-nav {
-  position: absolute;
+  position: fixed;
   z-index: 400;
   left: 0;
   width: 100%;