Variable for add()
As add()
can have a ’copies’ parameter, it can also set a variable being the number of the copy added:
add("margin-top:calc(10*%);","body", 3)
Will output:
div{margin-top:calc(10*1)}
div{margin-top:calc(10*2)}
div{margin-top:calc(10*3)}
Note: This parameter could be also set with CSS variables in order to be also used after the elements are created.