]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Set the default off canvas panel behaviour to use `position: absolute`to match curren... 9357/head
authorBrett Mason <brettsmason@gmail.com>
Wed, 30 Nov 2016 21:02:34 +0000 (21:02 +0000)
committerBrett Mason <brettsmason@gmail.com>
Wed, 30 Nov 2016 21:02:34 +0000 (21:02 +0000)
scss/components/_off-canvas.scss

index 63c8bdc68c4e1feafeb96fffede3196820901cd7..2deefbccdd7d2f7b5aa3036c65172d1250b543b8 100644 (file)
@@ -24,7 +24,7 @@ $offcanvas-shadow: 0 0 10px rgba($black, 0.7) !default;
 
 /// If `true`, an off-canvas panel will be fixed-position, and scroll with the screen. Otherwise it will be absolute positioned.
 /// @type Bool
-$offcanvas-fixed: true !default;
+$offcanvas-fixed: false !default;
 
 /// Z-index of an off-canvas panel with the `push` transition.
 /// @type Number
@@ -286,6 +286,11 @@ $content: $maincontent-class
     @include off-canvas-base;
   }
 
+  // Off-canvas container with fixed position
+  .off-canvas-fixed {
+    @include off-canvas-base($fixed: true);
+  }
+
   // Off-canvas position classes
   .position-left    { @include off-canvas-position(left,   horizontal); }
   .position-right   { @include off-canvas-position(right,  horizontal); }