Skip to content

Instantly share code, notes, and snippets.

@cimmanon
Created June 1, 2015 11:15
Show Gist options
  • Save cimmanon/59effbce773ffb1145ca to your computer and use it in GitHub Desktop.
Save cimmanon/59effbce773ffb1145ca to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
@mixin margin($t, $r, $b, $l) {
margin-top: ($t * 16) + px;
margin-right: ($r * 16) + px;
margin-bottom: ($b * 16) + px;
margin-left: ($l * 16) + px;
margin-top: $t + rem;
margin-right: $r + rem;
margin-bottom: $b + rem;
margin-left: $l + rem;
}
.foo {
@include margin(1,2,3,4);
}
.foo {
margin-top: 16px;
margin-right: 32px;
margin-bottom: 48px;
margin-left: 64px;
margin-top: 1rem;
margin-right: 2rem;
margin-bottom: 3rem;
margin-left: 4rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment