Jump to content

Target the colour of the favourite Icon when active


Recommended Posts

PenkethBoy

Trying (and failing) to change the favourite icon (heart) colour when its active - tried targeting the ratingbutton-icon-withrating but must be doing something wrong

 

happy with it being white when not active

 

Anybody got some css to do this please

 

Thanks

 

[beta server]

Link to post
Share on other sites
Happy2Play

The conflict of a element that is already "!important".

 

So something like this to become more important. :)

/*Change Active Favorite icon color*/
i.ratingbutton-icon-withrating {
    color: blue!important;
}
Link to post
Share on other sites
rechigo

If you're talking about the color of the button on the media page, this will do the trick

.md-icon.detailButton-icon.ratingbutton-icon-withrating {
    color: green !important;
}

If you're talking abou tthe icon on the hovercard, this will do the tirkc

.md-icon.cardOverlayButtonIcon.cardOverlayButtonIcon-hover.ratingbutton-icon-withrating {
    color: green !important;
}

I'm guessing you forgot the !important

 

(ooops looks like happy2play beat me)

 

Working as of 4.5.0.1 beta

Edited by rechigo
  • Like 1
Link to post
Share on other sites
PenkethBoy

thanks guys - keep forgetting about important!

Link to post
Share on other sites
rechigo

thanks guys - keep forgetting about important!

 

I try to always put it on everything regardless if I need it or not (saves time)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...