Last active
August 29, 2015 14:12
-
-
Save webpax/81e7d2d5b85c2b27f8ff to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
<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> |
This file contains hidden or 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) | |
// ---- | |
$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; | |
} |
This file contains hidden or 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 "}", was "" |
This file contains hidden or 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
<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