Skip to content

Instantly share code, notes, and snippets.

@vm6ej04
Created September 1, 2016 02:35
Show Gist options
  • Save vm6ej04/c827fa9c8f4a8c1fff531a446aafa0b4 to your computer and use it in GitHub Desktop.
Save vm6ej04/c827fa9c8f4a8c1fff531a446aafa0b4 to your computer and use it in GitHub Desktop.
SASS @each sample
$margin-map: ( <!-- Define maps -->
'xs': 20px,
's': 30px,
'm': 60px,
'l': 80px,
'xl': 120px,
'xxl':160px
);
@each $name, $size in $margin-map {
.margin-#{$name}{
margin-bottom: $size;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment