Skip to content

Instantly share code, notes, and snippets.

@robhadfield
Created June 14, 2014 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robhadfield/8c96cc1180ffb6840ee0 to your computer and use it in GitHub Desktop.
Save robhadfield/8c96cc1180ffb6840ee0 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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;
}
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