Skip to content

Instantly share code, notes, and snippets.

@scamden
Created January 7, 2015 01:02
Show Gist options
  • Save scamden/a3d01d4828d7e07f48f4 to your computer and use it in GitHub Desktop.
Save scamden/a3d01d4828d7e07f48f4 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.1.0-beta)
// ----
@mixin addLeft($one, $two){
left : $one + $two;
}
@mixin addTop($one, $two){
top : $one + $two;
}
$nums : (1px, 2px);
.myClass {
@include addLeft($nums...);
//note that only the 1px shows up in the css because $nums is now null
bottom : $nums 1px;
//comment in the following line and the compilation failes because $nums is now null
// @include addTop($nums...);
}
.myClass {
left: 3px;
bottom: 1px; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment