Site logo

[Resolved] Shadow hover on every button

Home Forums Support [Resolved] Shadow hover on every button

Home Forums Support Shadow hover on every button

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2539413
    Manpreet

    I want to add a shadow effect on every button on my website, including the post-comment button in the comment area. Also, provide code for hover shadow effect on each button.

    #2539456
    Fernando
    Customer Support

    Hi Manpreet,

    For reference, can you provide the link to the site in question?

    You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    #2539500
    Manpreet
    #2539682
    David
    Staff
    Customer Support

    Hi there,

    try this CSS:

    button, a.button, a[role="button"], input[type="submit"] {
        box-shadow: 0px 5px 7px 0 rgba(0,0,0,0);
        transform: translateY(0);
        transition: all 0.3s ease !important;
    }
    :is(button, a.button, a[role="button"], input[type="submit"]):hover {
        box-shadow: 0px 5px 7px 0 rgba(0,0,0,.25);
        transform: translateY(-2px);
    }
    #2539824
    Manpreet

    Can you also provide me with CSS code to create this hover shadow effect for featured images on the homepage of the website

    #2540160
    David
    Staff
    Customer Support

    Try this CSS:

    .content-area .inside-article .post-image img {
        box-shadow: 0px 0px 16px 0px rgba(0,0,0,0);
        transition: all 0.3s ease-in;
    }
    .content-area .inside-article .post-image img:hover {
        box-shadow: 0px 0px 16px 0px rgba(0,0,0,.25);
    }
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.