• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Themes & Styles Custom CSS button color

     
    • 0 Vote(s) - 0 Average

    Custom CSS button color

    trouble figuring out how to change button color
    Micah Freeman
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2025 Feb
    Reputation: 0
    #1
    2025-02-07, 11:11 PM
    My goal is to change the color of the heart / like / favorite button.
    I've got it partially working, the like button at the top of the page changes color when something has been liked, on hover and when mousing near / away from the button.
    The buttons on videos display the new color if it's been liked and if hovering directly over it, but they display the default color when hovering close to the button / mousing away.

    Here's my custom css:

    /*Change rating button color*/
    .ratingbutton-icon-withrating {
    color: #38b000;
    }

    /*Change rating button color on hover*/
    .btnUserRating:hover,
    .favorite:hover {
    color: #38b000;
    }

    Sorry if I don't know all the correct terms :P
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,167
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #2
    2025-02-07, 11:56 PM
    Try this CSS for a hover effect on those buttons:
    Code:
    button.cardOverlayButton.cardOverlayButton-hover.itemAction.paper-icon-button-light.emby-button:hover, button.cardOverlayButton.cardOverlayButton-hover.itemAction.paper-icon-button-light:hover {
        color: rgba(255, 0, 255, 1);
        background: rgba(30, 138, 165, 1);
        border-radius: 8px;
    }
    Color = Color of the text/symbols on the buttons
    Background = Color of the button background

    I picked colors at random, so change them to your liking.
    I also added a border radius value which you can remove or add to your liking.

    Also keep in mind that this will apply the hover effect to the play buttons over items too.
    Micah Freeman
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2025 Feb
    Reputation: 0
    #3
    2025-02-08, 12:13 AM
    Thanks for the reply, I did finally figure out something that seems to work.

    /*Change color of button hover and overlay*/
    .paper-icon-button-light:hover:not(:disabled) {
    color: #FFFFFF;
    background-color: rgba(0, 0, 0, .7); /*I went ahead and changed the background color too*/
    }
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode