Created
April 25, 2017 14:28
-
-
Save matheusagcosta/892186fa4f2433e4903bb0da5b46e84e to your computer and use it in GitHub Desktop.
Sass Maps
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
$map: ( | |
small: (38px, 2.5px), | |
medium: (56px, 5px), | |
big: (96px, 15px) | |
); | |
.class { | |
@each $size, $value in $map { | |
&--#{$size} { | |
height: #{nth($value, 1)}; | |
padding: #{nth($value, 2)}; | |
width: #{nth($value, 1)}; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment