]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Remove lingering small-auto and small-shrink in favor of auto and shrink
authorKevin Ball <kmball11@gmail.com>
Wed, 31 May 2017 04:10:49 +0000 (21:10 -0700)
committerKevin Ball <kmball11@gmail.com>
Wed, 31 May 2017 04:10:49 +0000 (21:10 -0700)
scss/zf-grid/_classes.scss

index 58ec3c7ff80e07333cc87bdc8088ddf3a01006e3..b6f8d0994937a4d2414e02cef39f79380afc02d2 100644 (file)
 }
 
 @mixin -zf-breakpoint-cell-classes($breakpoint, $vertical) {
-  > .#{$breakpoint}-auto {
+  $prefix: if($breakpoint == $-zf-zero-breakpoint, '', '#{$breakpoint}-');
+  > .#{$prefix}auto {
     @include zf-cell-static(auto, false, $breakpoint: $breakpoint, $vertical: $vertical);
   }
 
-  > .#{$breakpoint}-shrink {
+  > .#{$prefix}shrink {
     @include zf-cell-static(shrink, false, $breakpoint: $breakpoint, $vertical: $vertical);
   }
 
     @include -zf-each-breakpoint() {
       @include -zf-breakpoint-cell-classes($-zf-size, $vertical);
 
+      // This is purely for responsive gutters - the margin grid has to go back and adjust widths (or heights)
+      // for prior breakpoints based on the responsive gutter.
       @if(type-of($grid-margin-gutters) == 'map' and map-has-key($grid-margin-gutters, $-zf-size)) {
         @each $bp in -zf-breakpoints-less-than($-zf-size) {
           @if(map-has-key($grid-margin-gutters, $bp)) {