Created
August 10, 2012 00:33
-
-
Save stubbornella/3309549 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
@mixin whitespace($sizes: (5, 10, 20)){ //for now assume this list is always ascending | |
if length($sizes = 1){ | |
} @else if length($sizes = 2) { | |
} | |
$types: (p,m); | |
$locations: (a, v, h, t, r, b, l); | |
$key: (p padding, m margin, a, v -top -bottom, h -left -right, t -top, r -right, b -bottom, l -left); | |
@each $location in $locations { | |
@each $size in $sizes { | |
@each $type in $types { | |
.#{$location}#{$size}#{$type}{ | |
padding-top:10px; | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment