@import "../../scss/mnd-bootstrap/variables/grid";

@mixin make-grid-columns($i: 1, $list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}") {
  @for $i from (1 + 1) through $grid-columns {
    $list: "#{$list}, .col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}";
  }

  #{$list} {
    position: relative;
    // Prevent columns from collapsing when empty
    min-height: 1px;
    // Inner gutter via padding
    padding-left: ceil(($grid-gutter-width / 4));
    padding-right: floor(($grid-gutter-width / 4));

    @media (min-width: 768px) {
      padding-left: ceil(($grid-gutter-width / 2));
      padding-right: floor(($grid-gutter-width / 2));
    }
  }
}

.col-xs-12:not(:first-child) {
  margin-top: $grid-gutter-width/2;

  @media (min-width: 768px) {
    margin-top: 0;
  }
}
