]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix off-canvas menus being masked by an overflow
authorGeoff Kimball <geoff@zurb.com>
Thu, 19 Nov 2015 00:23:26 +0000 (16:23 -0800)
committerGeoff Kimball <geoff@zurb.com>
Thu, 19 Nov 2015 01:00:08 +0000 (17:00 -0800)
scss/components/_off-canvas.scss

index 545b9cbb2c722e98fcc14f062df076bcfcc4e65a..835a9b6e9d0794532d30530bcecc2c1c208fadfd 100644 (file)
@@ -37,10 +37,6 @@ $maincontent-class: 'off-canvas-content';
 /// @type Shadow
 $maincontent-shadow: 0 0 10px rgba($black, 0.5);
 
-/// Boolean to prevent scroll on offcanvas open
-/// @type Boolean
-$maincontent-prevent-scroll: true !default;
-
 /// Adds baseline styles for off-canvas. This CSS is required to make the other pieces work.
 @mixin off-canvas-basics {
   // Extra properties needed on <html> and <body> to make off-canvas work
@@ -62,12 +58,6 @@ $maincontent-prevent-scroll: true !default;
     position: relative;
     width: 100%;
     transition: transform $offcanvas-transition-length $offcanvas-transition-timing;
-
-    @if $maincontent-prevent-scroll == true {
-      &.is-off-canvas-open {
-        overflow-y: hidden;
-      }
-    }
   }
 
   // Container for page content