Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Sass variables in pseudo selectors Re: Sass variables in pseudo selectors

#105842
Senff
Participant

I’m not really sure about the reasoning behind it, but for this you’ll have to use #{$child}:

#site>ul>li:nth-child(#{$child})