Using @for to generate multiple box-shadow arguments:
.myclass {
$bxsw : "";
@for $i from 1 through 10 {
$bxsw : $bxsw + " -" + $i + "px -" + $i + "px " + brown + ",";
}
box-shadow: #{$bxsw};
}
This results in:
.myclass {
box-shadow: -1px -1px brown, -2px -2px brown, -3px -3px brown, -4px -4px brown, -5px -5px brown, -6px -6px brown, -7px -7px brown, -8px -8px brown, -9px -9px brown, -10px -10px brown,;
}
Have you noticed the extra comma at the end? Firefox fails to render the box-shadows due to this. Is there a way to programmatically remove that last comma?