Consider the SASS below.
@for $i from 1 through 5 {
.col-#{$i} {
position: relative;
}
}
It compiles to the following CSS.
.col-1 {
position: relative;
}
.col-2 {
position: relative;
}
.col-3 {
position: relative;
}
.col-4 {
position: relative;
}
.col-5 {
position: relative;
}
But I would like it to compile like this.
.col-1,
.col-2,
.col-3,
.col-4,
.col-5 {
position: relative;
}
How can this be done? I feel it should become the way I need with a slightly different syntax but I can't figure it out. Can anyone please help?