Stylus concatenate variable and string -


following code

for $i in (1..81)    .block:nth-child({$i})       transition transform 500ms ease $i\s 

will compiled to

.block:nth-child(1) {     transition: transform 500ms ease 1 s; }  ...... 

but space between number , seconds redundant!

how can remove it?

one possible approach:

for $i in (1..81)    .block:nth-child({$i})      transition transform 500ms ease 1s * $i 

that's quite similar example given in selector interpolation section of stylus documentation.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -