2021-03-03 00:49:21 +01:00
|
|
|
RV-Utils__ElementAmount(amount, callback)
|
|
|
|
if amount == 1
|
|
|
|
&:only-child
|
|
|
|
callback(i, amount)
|
|
|
|
else
|
2021-01-03 12:36:12 +01:00
|
|
|
*:first-child:nth-last-child({i}),
|
|
|
|
*:first-child:nth-last-child({i})~*
|
2021-03-03 00:49:21 +01:00
|
|
|
callback(i, up-to)
|
|
|
|
|
|
|
|
RV-Utils__ElementAmount--range(from=1, to=20, callback)
|
|
|
|
for i in (from..to)
|
|
|
|
RV-Utils__ElementAmount(i, callback)
|