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
I am not getting this statement to work. Using your example:
@each $animal $i in (puma, sea-slug, egret, salamander) { .$(animal)-icon { background-image: url("images/icon-$(i).svg"); } }
The CSS that is returned when I include the counter($i) looks like this:
.$(animal)-icon { background-image: url("images/icon-$i.svg"); }
If I remove the counter, the statement proceeds as expected.
The text was updated successfully, but these errors were encountered:
In my case $counter starts from 0, not from 1:
@each $icon $i in (network, orders, store, support) { .icon-$(i) { test-icon: $icon; } }
returns:
.icon-0 { test-icon: network; } .icon-1 { test-icon: orders; } .icon-2 { test-icon: store; } .icon-3 { test-icon: support; }
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I am not getting this statement to work. Using your example:
@each $animal $i in (puma, sea-slug, egret, salamander) { .$(animal)-icon { background-image: url("images/icon-$(i).svg"); } }
The CSS that is returned when I include the counter($i) looks like this:
.$(animal)-icon { background-image: url("images/icon-$i.svg"); }
If I remove the counter, the statement proceeds as expected.
The text was updated successfully, but these errors were encountered: