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

6 lines
163 B
Stylus
Raw Normal View History

2021-01-03 12:36:12 +01:00
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)