Skip to content

Instantly share code, notes, and snippets.

@mturjak
Created November 12, 2013 21:13
Show Gist options
  • Select an option

  • Save mturjak/7438814 to your computer and use it in GitHub Desktop.

Select an option

Save mturjak/7438814 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@mixin margin($val...) {
$margin: ();
@each $i in $val {
$margin: append($margin, $i + px);
}
margin: $margin;
}
.somestyle {
@include margin(10, 4, 50, 3);
}
.somestyle {
margin: 10px 4px 50px 3px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment