Created
June 14, 2014 11:06
-
-
Save robhadfield/8c96cc1180ffb6840ee0 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.8) | |
// Compass (v1.0.0.alpha.19) | |
// ---- | |
$allColors: ( | |
"red": #cc4432, | |
"green": #60a539, | |
"blue": #008CBA | |
); | |
@each $color-name, $color in $allColors { | |
// Classes work great! | |
.blob-#{$color-name} { | |
background-color: $color; | |
} | |
// Variables don't | |
$#{$color-name}: $color; | |
} |
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
Invalid CSS after " $": expected identifier, was "#{$color-name}:..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment