Created
March 23, 2017 15:46
-
-
Save ahaywood/29a184775b6a443d2c68f31a0d569fd0 to your computer and use it in GitHub Desktop.
Sass @while loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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