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
I’m not really sure about the reasoning behind it, but for this you’ll have to use #{$child}:
#{$child}
#site>ul>li:nth-child(#{$child})