Skip to content

Instantly share code, notes, and snippets.

@ahaywood
Created March 23, 2017 15:46
Show Gist options
  • Save ahaywood/29a184775b6a443d2c68f31a0d569fd0 to your computer and use it in GitHub Desktop.
Save ahaywood/29a184775b6a443d2c68f31a0d569fd0 to your computer and use it in GitHub Desktop.
Sass @while loop
$types: 4;
$type-width: 20px;
@while $types > 0 {
.while—#{$types} {
width: $type-width + $types;
}
$types: $types - 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment