]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Only include base styles some of the time in frame
authorKevin Ball <kmball11@gmail.com>
Fri, 21 Jul 2017 19:59:21 +0000 (12:59 -0700)
committerKevin Ball <kmball11@gmail.com>
Fri, 21 Jul 2017 19:59:21 +0000 (12:59 -0700)
scss/xy-grid/_frame.scss

index edcd1572713e113b0e7f54f1fcde7802d0483aa4..e6fc651146319e619ab14d193d066b049e431cd6 100644 (file)
@@ -6,12 +6,20 @@
   $vertical: false,
   $nested: false,
   $gutters: null,
-  $breakpoint: null
+  $breakpoint: null,
+  $include-base-styles: true,
 ) {
 
+  @if $include-base-styles {
+    overflow: hidden;
+    position: relative;
+    flex-wrap: nowrap;
+    align-items: stretch;
+  }
+
   @if $breakpoint == null and type-of($gutters) == 'map' {
     @include -zf-each-breakpoint() {
-      @include xy-grid-frame($vertical, $nested, $gutters, $-zf-size);
+      @include xy-grid-frame($vertical, $nested, $gutters, $-zf-size, false);
     }
   } @else {
     // Get our gutters if applicable
         width: if($nested == true, 100%, 100vw);
       }
     }
-
-    overflow: hidden;
-    position: relative;
-    flex-wrap: nowrap;
-    align-items: stretch;
   }
 }