<commit_before>// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

////
/// @group zf-grid
////

// Margin Grid classes
@mixin zf-base-grid-classes {

  // Grid Container
  .grid-container {
    @include zf-grid-container;
  }

  // Base grid styles
  .grid {
    @include zf-grid;
  }

  .cell {
    @include zf-cell-base();
  }

  .grid {
    > .small-auto {
      @include zf-cell-base(auto);
    }

    > .small-shrink {
      @include zf-cell-base(shrink);
    }
  }

  // Auto width
  @include -zf-each-breakpoint() {
    @if not($-zf-size == small) {
      .grid > .#{$-zf-size}-auto {
        @include zf-cell-base(auto);
      }

      .grid > .#{$-zf-size}-shrink {
        @include zf-cell-base(shrink);
      }
    }

    @for $i from 1 through $grid-columns {
      // Sizing (percentage)
      .#{$-zf-size}-#{$i} {
        @include zf-cell-static($i, false, $gutter-type: padding);
      }
    }
  }
}

// Margin Grid classes
@mixin zf-margin-grid-classes(
  $gutter-position: left right,
  $vertical: false,
  $wrapping-selector: '.margin-gutters'
){
  #{$wrapping-selector} {
    @include zf-gutters($negative: true, $gutter-position: $gutter-position);

    // Base cell styles
    > .cell {
      @include zf-cell-static($vertical: $vertical);
    }

    // Auto width
    @include -zf-each-breakpoint() {
      @if(type-of($grid-margin-gutters) == 'map' and map-has-key($grid-margin-gutters, $-zf-size)) {
        > .cell {
          @include zf-cell-static($breakpoint: $-zf-size, $vertical: $vertical);
        }
      }

      > .#{$-zf-size}-auto {
        @include zf-cell-static(auto, false, $breakpoint: $-zf-size, $vertical: $vertical);
      }

      > .#{$-zf-size}-shrink {
        @include zf-cell-static(shrink, false, $breakpoint: $-zf-size, $vertical: $vertical);
      }

      @for $i from 1 through $grid-columns {
        // Sizing (percentage)
        $classname: if($vertical, '.#{$-zf-size}-vertical-#{$i}', '.#{$-zf-size}-#{$i}');

        > #{$classname} {
          @include zf-cell-static($i, false, $breakpoint: $-zf-size, $vertical: $vertical);
        }
      }
    }
  }
}

// Padding Grid classes
@mixin zf-padding-grid-classes {
  .padding-gutters {

    // Negative margin for nested grids
    .padding-gutters {
      @include zf-gutters($negative: true);
    }

    // Base cell styles
    > .cell {
      @include zf-gutters($gutters: $grid-padding-gutters, $gutter-type: padding);
    }
  }
}

// Collapse classes
@mixin zf-collapse-grid-classes {
  @include -zf-each-breakpoint {
    .#{$-zf-size}-margin-collapse {
      @include zf-grid-collapse($gutter-type: margin);
    }

    .#{$-zf-size}-padding-collapse {
      @include zf-grid-collapse($gutter-type: padding);
    }
  }
}

// Offset classes
@mixin zf-offset-cell-classes {
  @include -zf-each-breakpoint {
    @for $i from 1 through $grid-columns {
      // Offsets
      $o: $i - 1;

      .margin-gutters > .#{$-zf-size}-offset-#{$o} {
        @include zf-cell-offset($o, $breakpoint: $-zf-size);
      }

      .padding-gutters > .#{$-zf-size}-offset-#{$o} {
        @include zf-cell-offset($o, $gutters: $grid-padding-gutters, $gutter-type: padding, $breakpoint: $-zf-size);
      }
    }
  }
}

// Vertical Grid classes
@mixin zf-vertical-grid-classes(
  $margin-grid: true,
  $padding-grid: true
) {
  .grid-vertical {
    @include zf-grid(vertical);

    > .cell {
      @include zf-cell-reset()
    }

    @include -zf-each-breakpoint() {
      @if(type-of($grid-margin-gutters) == 'map' and map-has-key($grid-margin-gutters, $-zf-size)) {
        > .cell {
          @include zf-cell-static($breakpoint: $-zf-size, $vertical: true);
        }

        > .#{$-zf-size}-auto {
          @include zf-cell-static(auto, false, $breakpoint: $-zf-size, $vertical: true);
        }

        > .#{$-zf-size}-shrink {
          @include zf-cell-static(shrink, false, $breakpoint: $-zf-size, $vertical: true);
        }
      }

      @for $i from 1 through $grid-columns {
        // Sizing (percentage)
        .#{$-zf-size}-vertical-#{$i} {
          @include zf-cell-static($i, false, $vertical: true, $gutter-type: padding);
        }
      }
    }

    &.padding-gutters {
      // Negative margin for nested grids
      .padding-gutters {
        @include zf-gutters($negative: true, $gutter-position: top bottom);
      }

      // Base cell styles
      > .cell {
        @include zf-gutters($gutters: $grid-padding-gutters, $gutter-type: padding, $gutter-position: top bottom);
      }
    }
  }

  @include zf-margin-grid-classes(top bottom, true, '.margin-gutters')
}

// Final classes
@mixin foundation-zf-grid-classes(<commit_msg>Generate base vertical classes without `vertical-grid` prefix so its more flexible.<commit_after>// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

////
/// @group zf-grid
////

// Margin Grid classes
@mixin zf-base-grid-classes {

  // Grid Container
  .grid-container {
    @include zf-grid-container;
  }

  // Base grid styles
  .grid {
    @include zf-grid;
  }

  .cell {
    @include zf-cell-base();
  }

  .grid {
    > .small-auto {
      @include zf-cell-base(auto);
    }

    > .small-shrink {
      @include zf-cell-base(shrink);
    }
  }

  // Auto width
  @include -zf-each-breakpoint() {
    @if not($-zf-size == small) {
      .grid > .#{$-zf-size}-auto {
        @include zf-cell-base(auto);
      }

      .grid > .#{$-zf-size}-shrink {
        @include zf-cell-base(shrink);
      }
    }

    @for $i from 1 through $grid-columns {
      // Sizing (percentage)
      .#{$-zf-size}-#{$i} {
        @include zf-cell-static($i, false, $gutter-type: padding);
      }
    }
  }
}

// Margin Grid classes
@mixin zf-margin-grid-classes(
  $gutter-position: left right,
  $vertical: false,
  $wrapping-selector: '.margin-gutters'
){
  #{$wrapping-selector} {
    @include zf-gutters($negative: true, $gutter-position: $gutter-position);

    // Base cell styles
    > .cell {
      @include zf-cell-static($vertical: $vertical);
    }

    // Auto width
    @include -zf-each-breakpoint() {
      @if(type-of($grid-margin-gutters) == 'map' and map-has-key($grid-margin-gutters, $-zf-size)) {
        > .cell {
          @include zf-cell-static($breakpoint: $-zf-size, $vertical: $vertical);
        }
      }

      > .#{$-zf-size}-auto {
        @include zf-cell-static(auto, false, $breakpoint: $-zf-size, $vertical: $vertical);
      }

      > .#{$-zf-size}-shrink {
        @include zf-cell-static(shrink, false, $breakpoint: $-zf-size, $vertical: $vertical);
      }

      @for $i from 1 through $grid-columns {
        // Sizing (percentage)
        $classname: if($vertical, '.#{$-zf-size}-vertical-#{$i}', '.#{$-zf-size}-#{$i}');

        > #{$classname} {
          @include zf-cell-static($i, false, $breakpoint: $-zf-size, $vertical: $vertical);
        }
      }
    }
  }
}

// Padding Grid classes
@mixin zf-padding-grid-classes {
  .padding-gutters {

    // Negative margin for nested grids
    .padding-gutters {
      @include zf-gutters($negative: true);
    }

    // Base cell styles
    > .cell {
      @include zf-gutters($gutters: $grid-padding-gutters, $gutter-type: padding);
    }
  }
}

// Collapse classes
@mixin zf-collapse-grid-classes {
  @include -zf-each-breakpoint {
    .#{$-zf-size}-margin-collapse {
      @include zf-grid-collapse($gutter-type: margin);
    }

    .#{$-zf-size}-padding-collapse {
      @include zf-grid-collapse($gutter-type: padding);
    }
  }
}

// Offset classes
@mixin zf-offset-cell-classes {
  @include -zf-each-breakpoint {
    @for $i from 1 through $grid-columns {
      // Offsets
      $o: $i - 1;

      .margin-gutters > .#{$-zf-size}-offset-#{$o} {
        @include zf-cell-offset($o, $breakpoint: $-zf-size);
      }

      .padding-gutters > .#{$-zf-size}-offset-#{$o} {
        @include zf-cell-offset($o, $gutters: $grid-padding-gutters, $gutter-type: padding, $breakpoint: $-zf-size);
      }
    }
  }
}

// Vertical Grid classes
@mixin zf-vertical-grid-classes(
  $margin-grid: true,
  $padding-grid: true
) {
  .grid-vertical {
    @include zf-grid(vertical);

    > .cell {
      @include zf-cell-reset()
    }

    @include -zf-each-breakpoint() {
      @if(type-of($grid-margin-gutters) == 'map' and map-has-key($grid-margin-gutters, $-zf-size)) {
        > .cell {
          @include zf-cell-static($breakpoint: $-zf-size, $vertical: true);
        }

        > .#{$-zf-size}-auto {
          @include zf-cell-static(auto, false, $breakpoint: $-zf-size, $vertical: true);
        }

        > .#{$-zf-size}-shrink {
          @include zf-cell-static(shrink, false, $breakpoint: $-zf-size, $vertical: true);
        }
      }

      @for $i from 1 through $grid-columns {
        // Sizing (percentage)
        @at-root .#{$-zf-size}-vertical-#{$i} {
          @include zf-cell-static($i, false, $vertical: true, $gutter-type: padding);
        }
      }
    }

    &.padding-gutters {
      // Negative margin for nested grids
      .padding-gutters {
        @include zf-gutters($negative: true, $gutter-position: top bottom);
      }

      // Base cell styles
      > .cell {
        @include zf-gutters($gutters: $grid-padding-gutters, $gutter-type: padding, $gutter-position: top bottom);
      }
    }
  }

  @include zf-margin-grid-classes(top bottom, true, '.grid-vertical.margin-gutters')
}

// Final classes
@mixin foundation-zf-grid-classes(
{'fraction_non_alphanumeric': 0.18248867348013909, 'fraction_numerical': 0.0010536297545042672, 'mean_word_length': 2.1671671671671673, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7360849', 'n_tokens_mistral': 3541, 'n_tokens_neox': 3419, 'n_words': 628}