Open ronilaukkarinen opened 9 years ago
I can confirm, it seems it's the
$values: #{$values}, #{$i}px #{$i}px #{$kolor};
causing the issue. This is a libsass bug and can be found on their bugtracker #1277.
It can be fixed by wrapping in parentheses.
@function longshadowFunc($type, $color, $length, $direction: right) {
$values: 0px 0px $color;
//LEFT SHADOW
@if $direction == right {
@for $i from 1 through $length {
$kolor: $color;
$values: (#{$values}), #{$i}px #{$i}px #{$kolor};
}
}
//RIGHT SHADOW
@if $direction == left {
@for $i from 1 through $length {
$kolor: $color;
$values: #{$values}, unquote($i * -1 + 'px') #{$i}px #{$kolor};
}
}
@return $values;
}
Can confirm both the presence of the bug and the resolution of it using moderat's solution.
What I'm using:
It works when if I disable Long Shadow Function all together.