Last active
August 29, 2015 14:23
-
-
Save LukyVj/70bb9cb988f0acfd2a8c 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
// SASS Maps | |
$map: ( | |
1: 'red', | |
2: 'blue', | |
3: 'green' | |
); | |
// You can see it's a basic <key:value> syntax | |
// You can use it like this | |
// Iterate on key and value in map | |
@each $key, $value in $map{ | |
.class-#{$key}{ | |
color: #{$value}; // I remove the quotes with #{} | |
} | |
} |
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
.class-1 { | |
color: red; | |
} | |
.class-2 { | |
color: blue; | |
} | |
.class-3 { | |
color: green; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment