]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Rename duplicate $block-grid-max` to `$xy-block-grid-max` to allow for both types... 10433/head
authorBrett Mason <brettsmason@gmail.com>
Wed, 19 Jul 2017 19:12:24 +0000 (20:12 +0100)
committerBrett Mason <brettsmason@gmail.com>
Wed, 19 Jul 2017 19:12:24 +0000 (20:12 +0100)
scss/xy-grid/_classes.scss
scss/xy-grid/_xy-grid.scss

index 5b296c749b8efa41797ce6633cc4456932a47c26..1bd25027eae74a07703a943f7598df31d0654ec5 100644 (file)
 @mixin xy-block-grid-classes($margin-grid: true, $padding-grid: true) {
   @if $padding-grid {
     @include -zf-each-breakpoint {
-      @for $i from 1 through $block-grid-max {
+      @for $i from 1 through $xy-block-grid-max {
         .#{$-zf-size}-up-#{$i} {
           @include xy-grid-layout($i, '.cell', false, $gutter-type: padding);
         }
 
   @if $margin-grid {
     @include -zf-each-breakpoint {
-      @for $i from 1 through $block-grid-max {
+      @for $i from 1 through $xy-block-grid-max {
         // 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)) {
           }
         }
       }
-      @for $i from 1 through $block-grid-max {
+      @for $i from 1 through $xy-block-grid-max {
         .grid-margin-x.#{$-zf-size}-up-#{$i} {
           @include xy-grid-layout($i, '.cell', false, $gutter-type: margin, $breakpoint: $-zf-size);
         }
index 7a93612bc05daaf225b64cec6eab9d10b773c072..aa077c65e15a5da279ae8229f8f20e00215ef51f 100644 (file)
@@ -33,14 +33,13 @@ $grid-padding-gutters: $grid-margin-gutters !default;
 /// @type Map | Length
 $grid-container-padding: $grid-padding-gutters !default;
 
-
-/// The maximum width to apply padding to a grid container
+/// The maximum width to apply to a grid container
 /// @type Number
 $grid-container-max: $global-width !default;
 
-/// The maximum number of cells in a block grid.
+/// The maximum number of cells in an XY block grid.
 /// @type Number
-$block-grid-max: 8 !default;
+$xy-block-grid-max: 8 !default;
 
 @import 'gutters';
 @import 'grid';