We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code: // vars $linkColor1: #ccc; $linkColor2: #ddd; $linkColor3: #aaa; // for @for $i from 1 through 3 { &:nth-child(3n+{$i}){ color: $linkColor{$i}; } }
The text was updated successfully, but these errors were encountered:
It isn't supposed to work. Duplicate of #132
Sorry, something went wrong.
Dynamic variables do not exist. Maps are to be used instead.
You don't even need maps for this example, a list will suffice.
// vars $linkColors: #ccc, #ddd, #aaa; // for .something { @for $i from 1 through length($linkColors) { &:nth-child(3n+#{$i}) { color: nth($linkColors, $i); } } }
No branches or pull requests
Code:
// vars
$linkColor1: #ccc;
$linkColor2: #ddd;
$linkColor3: #aaa;
// for
@for $i from 1 through 3 {
&:nth-child(3n+{$i}){
color: $linkColor{$i};
}
}
The text was updated successfully, but these errors were encountered: