@mixin z-index {
  $count: 0;

  @for $i from 0 through 20 {
    .z-index-#{$i} {
      z-index: $count !important;
    }

    $count: $count + 1;
  }
}

@include z-index;
