I'm quite new to sass. I'm defining 14 different variables $skill-1, $skill-2 etc. with different values and calling a mixin to different widths to different IDs.
I'm getting an error
Undefined variable: "$skill-".
Here's my code sample.
@mixin skill-func($val) {
& { width : $val; }
}
$i: 14;
@while $i > 0 {
#skill-#{$i} {
@include skill-func ($skill-#{$i})
}
$i: $i - 1;
}