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 iconslightgrey , 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
Post a Comment