Skip to content

Instantly share code, notes, and snippets.

@webpax
Last active August 29, 2015 14:12
Show Gist options
  • Save webpax/81e7d2d5b85c2b27f8ff to your computer and use it in GitHub Desktop.
Save webpax/81e7d2d5b85c2b27f8ff to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="color red"></div>
<div class="color orange"></div>
<div class="color yellow"></div>
<div class="color green"></div>
<div class="color blue"></div>
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
$rainbow: red, orange, yellow, green;
.color {
width: 100px;
height: 200px;
float: left;
}
@each $color in $rainbow {
.#{$color} {
background-color: $color;
.red {
background-color: red;
}
.orange {
background-color: orange;
}
.yellow {
background-color: yellow;
}
.green {
background-color: green;
}
Invalid CSS after "}": expected "}", was ""
<div class="color red"></div>
<div class="color orange"></div>
<div class="color yellow"></div>
<div class="color green"></div>
<div class="color blue"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment