I'm trying to make a LESS mixin that will give me this output:
.resource:nth-child(8n+1) { clear: left; }
I've got this so far:
.wrap-every(@n) {
&:nth-child(@n + "n+1") { // parse error on this line
clear: left;
}
}
.resource {
.wrap-every(8);
}
But it's giving a parse error on the indicated line
ParseError: Unrecognised input
Is there a way to do this?