Kronuz/pyScss — Issue #44: #000 omitted
Author: roberkules
Created: 2012-01-26 22:37:11+00:00
State: open

Hi,

this mixin:

@mixin bordertest($w: 2px, $color: #000) {
$params: $w solid $color;
border: $params;
}

used in:

h1 {
@include bordertest();
}

results in this output:

h1 {
border: 2px solid;
}

#000 is gone, which is bad e.g. for text-shadow, which won't work without a color.
if I use any other color than #000 it works

this was a simplified example... my real-world usage is for something like:
(just to clarify why I use $params)

@mixin text-shadow($h-shadow: 1px, $v-shadow: 1px, $blur: 0, $color: #000) {
$params: $h-shadow $v-shadow $blur $color;

-moz-text-shadow: $params;
-webkit-text-shadow: $params;
text-shadow: $params;
}