Created
January 7, 2015 01:02
-
-
Save scamden/a3d01d4828d7e07f48f4 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// 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...); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.myClass { | |
left: 3px; | |
bottom: 1px; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment