]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Prevent .off-canvas-content from margin collapsing, which would reveal the box shadow...
authorGeoff Kimball <geoff@zurb.com>
Fri, 5 Feb 2016 00:49:59 +0000 (16:49 -0800)
committerGeoff Kimball <geoff@zurb.com>
Fri, 5 Feb 2016 00:49:59 +0000 (16:49 -0800)
scss/components/_off-canvas.scss

index 04410659a3b8b0c396d145d733b6a0f551a79cae..769d2612ac90f67bff2ffcbf2255ec45a33d550b 100644 (file)
@@ -71,6 +71,7 @@ $maincontent-shadow: 0 0 10px rgba($black, 0.5) !default;
     transition: transform $offcanvas-transition-length $offcanvas-transition-timing;
     backface-visibility: hidden;
     z-index: 1;
+    padding-bottom: 0.1px; // Prevents margin collapsing, which would reveal the box shadow of the wrapper
 
     @if has-value($maincontent-shadow) {
       box-shadow: $maincontent-shadow;