I am writing a mixin like this:
@mixin box-shadow($top, $left, $blur, $color, $inset:\"\") {
-webkit-box-shadow:
I know its not exactly the answer you were searching for but you could pass "null"
as last argument when @include box-shadow
mixin, like this @include box-shadow(12px, 14px, 2px, green, null);
Now, if that argument is only one in that property than that property (and its (default) value) won't get compiled. If there are two or more args on that "line" only ones that you nulled won't get compiled (your case).
CSS output is exactly as you wanted it, but you have to write your null
s :)
@include box-shadow(12px, 14px, 2px, green, null);
// compiles to ...
-webkit-box-shadow: 12px 14px 2px green;
-moz-box-shadow: 12px 14px 2px green;
box-shadow: 12px 14px 2px green;