[Resolved] Color of buttons that have been clicked

Home Forums Support Color of buttons that have been clicked

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1306986
    Jason

    I notice that buttons that have been clicked have a different color. How would I go about changing that so that’s not the case? I’d like the buttons to look the same no matter if someone has clicked them or not. I do have this CSS currently for a few buttons.

    .button.gray {
        background-color: #ecf0f5;
        border: 2px solid transparent;
        border-radius: 5px;
    		width: 300px;
    		text-align: center;
        color: #000000;
    }
    
    .button.gray:hover {
      background-color: #a1a3a8;
      color: white;
    }
    #1307218
    Leo
    Staff
    Customer Support

    Hi there,

    Try this for your CSS:

    a.button.gray, a.button.gray:visited {
        background-color: #ecf0f5;
        border: 2px solid transparent;
        border-radius: 5px;
        width: 300px;
        text-align: center;
        color: #000000;
    }
    
    a.button.gray:hover {
      background-color: #a1a3a8;
      color: white;
    }
    #1308154
    Jason

    Nailed it! Thank you, Leo. Super slick theme btw. I’m switching from a page builder, and this is incredibly lightweight and great for speed.

    #1308851
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.