/*!markdown

---
title: Grid Row Start / End
---

| Class       | Properties               |
| ----------- | ------------------------ |
| row-auto | grid-row: auto |
| row-span-1 | grid-row: span 1/span 1 |
| row-span-2 | grid-row: span 2/span 2 |
| row-span-3 | grid-row: span 3/span 3 |
| row-span-4 | grid-row: span 4/span 4 |
| row-span-5 | grid-row: span 5/span 5 |
| row-span-6 | grid-row: span 6/span 6 |
| row-span-7 | grid-row: span 7/span 7 |
| row-span-8 | grid-row: span 8/span 8 |
| row-span-9 | grid-row: span 9/span 9 |
| row-span-10 | grid-row: span 10/span 10 |
| row-span-11 | grid-row: span 11/span 1 |
| row-span-12 | grid-row: span 12/span 12 |
| row-span-full | grid-row: 1/-1 |
| row-start-1 | grid-row-start: 1 |
| row-start-2 | grid-row-start: 2 |
| row-start-3 | grid-row-start: 3 |
| row-start-4 | grid-row-start: 4 |
| row-start-5 | grid-row-start: 5 |
| row-start-6 | grid-row-start: 6 |
| row-start-7 | grid-row-start: 7 |
| row-start-8 | grid-row-start: 8 |
| row-start-9 | grid-row-start: 9 |
| row-start-10 | grid-row-start: 10 |
| row-start-11 | grid-row-start: 11 |
| row-start-12 | grid-row-start: 12 |
| row-start-13 | grid-row-start: 13 |
| row-start-auto | grid-row-start: auto |
| row-end-1 | grid-row-end: 1 |
| row-end-2 | grid-row-end: 2 |
| row-end-3 | grid-row-end: 3 |
| row-end-4 | grid-row-end: 4 |
| row-end-5 | grid-row-end: 5 |
| row-end-6 | grid-row-end: 6 |
| row-end-7 | grid-row-end: 7 |
| row-end-8 | grid-row-end: 8 |
| row-end-9 | grid-row-end: 9 |
| row-end-10 | grid-row-end: 10 |
| row-end-11 | grid-row-end: 11 |
| row-end-12 | grid-row-end: 12 |
| row-end-13 | grid-row-end: 13 |
| row-end-auto | grid-row-end: auto |


*/
@mixin make-grid-row-span($prefix: '.') {
  #{$prefix}row-auto {
    grid-row: auto;
  }

  #{$prefix}row-span-1 {
    grid-row: span 1 / span 1;
  }

  #{$prefix}row-span-2 {
    grid-row: span 2 / span 2;
  }
  #{$prefix}row-span-3 {
    grid-row: span 3 / span 3;
  }
  #{$prefix}row-span-4 {
    grid-row: span 4 / span 4;
  }
  #{$prefix}row-span-5 {
    grid-row: span 5 / span 5;
  }
  #{$prefix}row-span-6 {
    grid-row: span 6 / span 6;
  }
  #{$prefix}row-span-7 {
    grid-row: span 7 / span 7;
  }
  #{$prefix}row-span-8 {
    grid-row: span 8 / span 8;
  }
  #{$prefix}row-span-9 {
    grid-row: span 9 / span 9;
  }
  #{$prefix}row-span-10 {
    grid-row: span 10 / span 10;
  }
  #{$prefix}row-span-11 {
    grid-row: span 11 / span 1;
  }
  #{$prefix}row-span-12 {
    grid-row: span 12 / span 12;
  }

  #{$prefix}row-span-full {
    grid-row: 1 / -1;
  }
}

@mixin make-grid-row-start($prefix: '.') {
  #{$prefix}row-start-1 {
    grid-row-start: 1;
  }
  #{$prefix}row-start-2 {
    grid-row-start: 2;
  }
  #{$prefix}row-start-3 {
    grid-row-start: 3;
  }
  #{$prefix}row-start-4 {
    grid-row-start: 4;
  }
  #{$prefix}row-start-5 {
    grid-row-start: 5;
  }
  #{$prefix}row-start-6 {
    grid-row-start: 6;
  }
  #{$prefix}row-start-7 {
    grid-row-start: 7;
  }
  #{$prefix}row-start-8 {
    grid-row-start: 8;
  }
  #{$prefix}row-start-9 {
    grid-row-start: 9;
  }
  #{$prefix}row-start-10 {
    grid-row-start: 10;
  }
  #{$prefix}row-start-11 {
    grid-row-start: 11;
  }
  #{$prefix}row-start-12 {
    grid-row-start: 12;
  }
  #{$prefix}row-start-13 {
    grid-row-start: 13;
  }
  #{$prefix}row-start-auto {
    grid-row-start: auto;
  }
}

@mixin make-grid-row-end($prefix: '.') {
  #{$prefix}row-end-1 {
    grid-row-end: 1;
  }
  #{$prefix}row-end-2 {
    grid-row-end: 2;
  }
  #{$prefix}row-end-3 {
    grid-row-end: 3;
  }
  #{$prefix}row-end-4 {
    grid-row-end: 4;
  }
  #{$prefix}row-end-5 {
    grid-row-end: 5;
  }
  #{$prefix}row-end-6 {
    grid-row-end: 6;
  }
  #{$prefix}row-end-7 {
    grid-row-end: 7;
  }
  #{$prefix}row-end-8 {
    grid-row-end: 8;
  }
  #{$prefix}row-end-9 {
    grid-row-end: 9;
  }
  #{$prefix}row-end-10 {
    grid-row-end: 10;
  }
  #{$prefix}row-end-11 {
    grid-row-end: 11;
  }
  #{$prefix}row-end-12 {
    grid-row-end: 12;
  }
  #{$prefix}row-end-13 {
    grid-row-end: 13;
  }
  #{$prefix}row-end-auto {
    grid-row-end: auto;
  }
}

@include make-grid-row-span();
@include make-grid-row-start();
@include make-grid-row-end();
@each $deivce in map-keys($devices) {
  @include media-device($deivce) {
    @include make-grid-row-span('.' + selector-escape($deivce + ':'));
    @include make-grid-row-start('.' + selector-escape($deivce + ':'));
    @include make-grid-row-end('.' + selector-escape($deivce + ':'));
  }
}
