I have this SCSS code:
$box-length: 12 !default;
@for $i from 1 through $box-length {
.box-#{$i} {
flex: 0 0 (100% / $box-length * $i);
}
}
Below, I need to add the generated .box-{num} classes with other selectors.
To have a CSS result like this:
@media screen and (max-width: 768px) {
.row,
.column,
.box,
.box-1,
.box-2,
.box-3,
.box-4,
.box-5 {
/* ... */
}
}
How to append the dynamic .box-{num} classes to .row, .column, .box?
Thank you!