Sass while loop

Simple while loop to skip ever other row and increase by 2 each time. until it reaches 7

$i: 1;

@while $i <= 7 {
  .row-#{$i} {
    background: #ccc;
    height: $i * 10px;
  }
  $i: $i + 2;
}

Add your comment