Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@mixin spacing-loop($property, $space, $value) {
@each $poskey, $posvalue in $spacing-key {
&-#{$poskey}-#{$space} {
@if $poskey == "all" {
#{$property}: $value;
}
@else if $poskey == "vert" {
#{$property}-top: $value;
#{$property}-bottom: $value;
}
@else if $poskey == "horiz" {
#{$property}-right: $value;
#{$property}-left: $value;
}
@else {
#{$property}-#{$posvalue}: $value;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.