Last active
August 29, 2015 14:08
-
-
Save jdsteinbach/3dadfa970e18cb79e46e 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
| // ---- | |
| // libsass (v3.0) | |
| // ---- | |
| $simple-map: ( | |
| key1: value1, | |
| key2: value2 | |
| ); | |
| $complex-map: ( | |
| sub-map1: ( | |
| key1: value1-1, | |
| key2: value1-2 | |
| ), | |
| sub-map2: ( | |
| key1: value2-1, | |
| key2: value2-2 | |
| ), | |
| sub-map3: ( | |
| key1: value3-1, | |
| key2: value3-2 | |
| ) | |
| ); | |
| .simple-map { | |
| $keys: map-keys($simple-map); | |
| @each $key in $keys { | |
| #{$key}: map-get($simple-map, $key); | |
| } | |
| } | |
| .complex-map { | |
| $keys: map-keys($complex-map); | |
| @each $key in $keys { | |
| .#{$key} { | |
| $submap: map-get($complex-map, $key); | |
| $subkeys: map-keys($submap); | |
| @each $subkey in $subkeys { | |
| #{$subkey}: map-get($submap, $subkey); | |
| } | |
| } | |
| } | |
| } |
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
| .simple-map { | |
| key1: value1; | |
| key2: value2; } | |
| .complex-map .sub-map1 { | |
| key1: value1-1; | |
| key2: value1-2; } | |
| .complex-map .sub-map2 { | |
| key1: value2-1; | |
| key2: value2-2; } | |
| .complex-map .sub-map3 { | |
| key1: value3-1; | |
| key2: value3-2; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment