amy-d
3/23/2017 - 3:46 PM

Sass @while loop

Sass @while loop

$types: 4;
$type-width: 20px;

@while $types > 0 {
    .while—#{$types} {
        width: $type-width + $types;
    }
    $types: $types - 1;
}