Created
February 13, 2014 14:07
-
-
Save Tonours/8975582 to your computer and use it in GitHub Desktop.
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
| // ========================================================================== | |
| // Helpers | |
| // ========================================================================== | |
| // Margin | |
| // ========================================================================== | |
| $orientations: top, right, bottom, left; | |
| $dimensions: 5, 10, 15, 20; | |
| @each $orientation in $orientations { | |
| .reset-margin-#{$orientation}{ | |
| margin-#{$orientation}: 0; | |
| } | |
| } | |
| @each $orientation in $orientations { | |
| @each $dimension in $dimensions { | |
| .margin-#{$orientation}-#{$dimension} { | |
| margin-#{$orientation}: #{$dimension}px; | |
| } | |
| } | |
| } | |
| // Padding | |
| // ========================================================================== | |
| @each $orientation in $orientations { | |
| .reset-padding-#{$orientation}{ | |
| padding-#{$orientation}: 0; | |
| } | |
| } | |
| @each $orientation in $orientations { | |
| @each $dimension in $dimensions { | |
| .padding-#{$orientation}-#{$dimension} { | |
| padding-#{$orientation}: #{$dimension}px; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment