scss-library/components/00_Tools/_elementAmount.styl

6 lines
163 B
Stylus

RV-Utils__ElementAmount(callback, up-to=20)
for i in (1..up-to)
*:first-child:nth-last-child({i}),
*:first-child:nth-last-child({i})~*
callback(i, up-to)