Skip to content

Instantly share code, notes, and snippets.

@stubbornella
Created August 10, 2012 00:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stubbornella/3309549 to your computer and use it in GitHub Desktop.
Save stubbornella/3309549 to your computer and use it in GitHub Desktop.
@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