Skip to content

Instantly share code, notes, and snippets.

@japborst
Created October 25, 2014 21:34
Show Gist options
  • Save japborst/293e3afee2899dafb886 to your computer and use it in GitHub Desktop.
Save japborst/293e3afee2899dafb886 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
// Margin
@mixin margin($top: 0, $right: $top or $left, $bottom: $top, $left: $right or $top) {
margin: $top $right $bottom $left;
}
.element {
@include margin(10, $left: 20);
}
.element2 {
@include margin(10,20)
}
.element {
margin: 10 10 10 20;
}
.element2 {
margin: 10 20 10 20;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment