New issue
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
$counter in @each statement not working #59
Comments
In my case $counter starts from 0, not from 1:
returns:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: