@import "./common/var.scss";
@import "./mixins/mixins.scss";

[class*="elNew-col-"] {
  float: left;
  box-sizing: border-box;
}

.elNew-col-0 {
  display: none;
}

@for $i from 0 through 24 {
  .elNew-col-#{$i} {
    width: (1 / 24 * $i * 100) * 1%;
  }

  .elNew-col-offset-#{$i} {
    margin-left: (1 / 24 * $i * 100) * 1%;
  }

  .elNew-col-pull-#{$i} {
    position: relative;
    right: (1 / 24 * $i * 100) * 1%;
  }

  .elNew-col-push-#{$i} {
    position: relative;
    left: (1 / 24 * $i * 100) * 1%;
  }
}

@include res(xs) {
  .elNew-col-xs-0 {
    display: none;
  }
  @for $i from 0 through 24 {
    .elNew-col-xs-#{$i} {
      width: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-xs-offset-#{$i} {
      margin-left: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-xs-pull-#{$i} {
      position: relative;
      right: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-xs-push-#{$i} {
      position: relative;
      left: (1 / 24 * $i * 100) * 1%;
    }
  }
}

@include res(sm) {
  .elNew-col-sm-0 {
    display: none;
  }
  @for $i from 0 through 24 {
    .elNew-col-sm-#{$i} {
      width: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-sm-offset-#{$i} {
      margin-left: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-sm-pull-#{$i} {
      position: relative;
      right: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-sm-push-#{$i} {
      position: relative;
      left: (1 / 24 * $i * 100) * 1%;
    }
  }
}

@include res(md) {
  .elNew-col-md-0 {
    display: none;
  }
  @for $i from 0 through 24 {
    .elNew-col-md-#{$i} {
      width: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-md-offset-#{$i} {
      margin-left: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-md-pull-#{$i} {
      position: relative;
      right: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-md-push-#{$i} {
      position: relative;
      left: (1 / 24 * $i * 100) * 1%;
    }
  }
}

@include res(lg) {
  .elNew-col-lg-0 {
    display: none;
  }
  @for $i from 0 through 24 {
    .elNew-col-lg-#{$i} {
      width: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-lg-offset-#{$i} {
      margin-left: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-lg-pull-#{$i} {
      position: relative;
      right: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-lg-push-#{$i} {
      position: relative;
      left: (1 / 24 * $i * 100) * 1%;
    }
  }
}

@include res(xl) {
  .elNew-col-xl-0 {
    display: none;
  }
  @for $i from 0 through 24 {
    .elNew-col-xl-#{$i} {
      width: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-xl-offset-#{$i} {
      margin-left: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-xl-pull-#{$i} {
      position: relative;
      right: (1 / 24 * $i * 100) * 1%;
    }

    .elNew-col-xl-push-#{$i} {
      position: relative;
      left: (1 / 24 * $i * 100) * 1%;
    }
  }
}