-
-
Save shopifypartners/b6b1ca1c15dc283bf7c0b9502fd27b92 to your computer and use it in GitHub Desktop.
Spacing system 10 | https://www.shopify.com/partners/blog/css-resources
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
@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