stylus string interpolation styntax for :before pseudo selector using a for loop -


i'm trying make

#others li .text1:before{     content: "text1"; }... 

by doing

#others li     label in text1 text2 text3         .{label}:before             content {label} 

but syntax isn't right seems... gives error

expected "indent", got "outdent"

the error content {label} bit, because without class selectors (.text1:before) prints ok

and content '{label}' prints out {label} is.

stylus don't have interpolation in strings or idents values, use addition string, convert ident string:

#others li     label in text1 text2 text3         .{label}:before             content ''+label 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -