Created
September 21, 2016 14:40
-
-
Save jacek213/993e9d6d84b24842799081d1f5e3a5f4 to your computer and use it in GitHub Desktop.
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
// Examples: | |
// no-margin-bottom, no-padding-left, margin-top-5, padding-left-20, etc | |
$directions: ('top' 'bottom' 'left' 'right'); | |
$properties: ('margin' 'padding'); | |
@each $direction in $directions { | |
@each $property in $properties { | |
.no-#{$property}-#{$direction} { | |
#{$property}-#{$direction}: 0 !important; | |
} | |
@for $i from 1 through 10 { | |
$value: $i * 5; | |
.#{$property}-#{$direction}-#{$value} { | |
#{$property}-#{$direction}: #{$value}px !important; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment