]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Optional center and uncenter
authorDusan Milko <dusanmilko@hotmail.com>
Thu, 5 Oct 2017 21:10:16 +0000 (17:10 -0400)
committerGitHub <noreply@github.com>
Thu, 5 Oct 2017 21:10:16 +0000 (17:10 -0400)
Allowing center and uncenter to be optional

scss/grid/_classes.scss

index 4033be6049083fa9823bf76ab3da4081b62a332a..6dd832cf5705314291471cbb9f5c21c21a57ff50 100644 (file)
     }
 
     // Positioning
-    .#{$-zf-size}-#{$center} {
-      @include grid-col-pos(center);
+    @if $center {
+      .#{$-zf-size}-#{$center} {
+        @include grid-col-pos(center);
+      }
     }
 
     // Gutter adjustment
-    .#{$-zf-size}-#{$uncenter} {
-      @include grid-col-unpos;
+    @if $uncenter {
+      .#{$-zf-size}-#{$uncenter} {
+        @include grid-col-unpos;
+      }
     }
 
     @if $push {