Need help compiling SCSS to CSS
Need help compiling SCSS to CSS
For a project, I had to compile SCSS code to CSS. Everything seemed to work, except for a @for loop similar to this :
$base-color: #036;
@for $i from 1 through 3 {
ul:nth-child(3n + #{$i}) {
background-color: lighten($base-color, $i * 5%);
}
}
This loop hasn't been compiled at all to CSS, as CSS does not loop though selectors. But is there a way to loop this code with JavaScript ?
You're viewing a single thread.
All comments
5
comments