css - Stylus: How can I change the color on an element when it has an additional class? -


we're using icomoon our icons fonts , can change color easily. but, i'm having problem styling icon default color lightgrey and, when has primary class color yelloworange. right now, stylesheet looks this:

i   &.icon-star.primary     color yelloworange   &.icon-star     color lightgrey 

each of these styles works on own.

but, when have both of them, of icons lightgrey , icons primary class not yelloworange. (i've checked elements , have correct class names).

any appreciated. thanks!

each of these styles works on own.

i doubt it, since yelloworange isn’t css colour. if @ stylus’s rendered css, you’ll see doesn’t recognize colour either (stylus have transformed hex representation).

if did have yelloworange defined custom value, make sure still do!


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -