Created
September 9, 2015 07:53
-
-
Save sunnyluthra/77bb11f50c01551e462c to your computer and use it in GitHub Desktop.
Padding Class Generator
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 class-generator($classNamespace, $fromValue, $toValue, $multiple, $property, $unit) { | |
| @for $i from $fromValue to $toValue { | |
| .#{$classNamespace}#{$i*$multiple} { | |
| #{$property}: #{$i*$multiple}#{$unit}; | |
| } | |
| } | |
| } | |
| @include class-generator(pt, 0, 25, 5, padding-top, px); |
sunnyluthra
commented
Sep 9, 2015
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment