Created
September 4, 2014 20:14
-
-
Save andresmijares/01485277124f992207c4 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.4.1) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin theme($bg) { | |
background: $bg; | |
} | |
$colors: #111 #222 #333 #444 #555; | |
$backgrounds: #555 #444 #333 #222 #111; | |
@for $i from 1 through 1 { | |
#theme#{$i}{ | |
@for $j from 1 through 5 { | |
span:nth-child(#{$j}) { | |
@include theme(nth($backgrounds, $j)); | |
} | |
} | |
}} |
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
#theme1 span:nth-child(1) { | |
background: #555; | |
} | |
#theme1 span:nth-child(2) { | |
background: #444; | |
} | |
#theme1 span:nth-child(3) { | |
background: #333; | |
} | |
#theme1 span:nth-child(4) { | |
background: #222; | |
} | |
#theme1 span:nth-child(5) { | |
background: #111; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment