css - How to output a variable with Stylus syntax -


if have few variables in stylus this:

emphasisbackground = emphasis(0%, emphasistop, emphasisbottom) emphasishover = emphasis(20%, emphasistop, emphasisbottom) emphasisactive = emphasis(-10%, emphasistop, emphasisbottom) 

emphasis own mixin returns properties background, filter (for ie), etc. how can display variables?

a   emphasisbackground 

this doesn't work, stylus thinks it's property, not variable

a unquote(s('%s',emphasisbackground)) 

this doesn't work either, prints filter property ie, not of lines of variable

do have turn things mixins?

one way effect nest mixins

// mixin work (whatever is)  emphasis(percent, estart, estop)   .   .   .  // helper mixins  emphasisbackground    emphasis(0%, emphasistop, emphasisbottom)  emphasishover    emphasis(20%, emphasistop, emphasisbottom)  emphasisactive    emphasis(-10%, emphasistop, emphasisbottom)  

then use now.

a   emphasishover  

if that's not acceptable can add bit more detail doing , see if can assist you.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -