Created
December 11, 2014 15:54
-
-
Save javierarques/8d6250b3593ef0da975f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
$list: yellow tomato red green; | |
@for $i from 1 to length($list) { | |
.color-#{$i} { | |
background: nth($list, $i); | |
} | |
} |
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
.color-1 { | |
background: yellow; | |
} | |
.color-2 { | |
background: tomato; | |
} | |
.color-3 { | |
background: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment