Created
November 4, 2014 17:12
-
-
Save tlattimore/14f3ec7d1b4956cc7a1c 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.14) | |
// Compass (v1.0.1) | |
// ---- | |
$components: ( | |
alpha: "icon-alpha.png", | |
beta: "icon-beta.png", | |
gamma: "icon-gamma.png" | |
); | |
@each $component, $image in $components { | |
.component--#{$component} { | |
background-image: url("/img/#{$image}"); | |
} | |
} |
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
.component--alpha { | |
background-image: url("/img/icon-alpha.png"); | |
} | |
.component--beta { | |
background-image: url("/img/icon-beta.png"); | |
} | |
.component--gamma { | |
background-image: url("/img/icon-gamma.png"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment