Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #300637

    I am testing mouse-over with my gallery.
    I want to have the hover layover black 80% and a tooltip caption (color:white) centered on the image.

    I did this so far:
    #top .avia-gallery .avia-gallery-thumb a:hover{opacity: 0.8;background-color:#000}
    It still shows white not black. Can you help me on this?

    • This topic was modified 10 years, 3 months ago by royaltask.
    #300640

    Hey royaltask!

    Please try using following code instead

    #top .avia-gallery .avia-gallery-thumb a:hover { background-color: rgba(0,0,0,0.8); }

    Best regards,
    Yigit

    #300645

    not working, the image shows still white. maybe I have to ajust the img tag?

    I added this to CSS Custom:

    /* tooltip */
    #top div .avia-gallery img {
    padding: 0;
    width: 98%;
    margin-bottom:6px;
    }
    #top .avia-gallery .avia-gallery-thumb a:hover { background-color: rgba(0,0,0,0.8); }
    .page-id-4026 .avia-tooltip.avia-tt { display: none !important; opacity: 0 !important; }

    • This reply was modified 10 years, 3 months ago by royaltask.
    #300647

    Hey!

    Can post the link to your page where you have your gallery element please?

    Regards,
    Yigit

    #300650

    local, sorry. Nothing special though. Just changed the CSS on shortcode.css an custom CSS.
    I added this to CSS Custom:

    /* tooltip */
    #top div .avia-gallery img {
    padding: 0;
    width: 98%;
    margin-bottom:6px;
    }
    #top .avia-gallery .avia-gallery-thumb a:hover { background-color: rgba(0,0,0,0.8); }
    .page-id-4026 .avia-tooltip.avia-tt { display: none !important; opacity: 0 !important; }

    Info: width: 98%; and margin-bottom:6px; should make the gallery images have some space between. Is there a better way?

    • This reply was modified 10 years, 3 months ago by royaltask.
    #300657

    Hi!

    It should work fine. Unfortunately i am not sure if i understood what you would like to achieve, clearly. Can you post a mockup?

    Best regards,
    Yigit

    #300659

    I added this:

    #top #wrap_all .avia-gallery-1 .avia-gallery-thumb a {
    width: 32.3333% !important;
    margin: 5px !important;
    }

    #300663

    Hey!

    Please try resizing your window and check if it causes any responsive issues. If it does, you can add media queries as following

    @media only screen and (min-width: 990px) {
    #top #wrap_all .avia-gallery-1 .avia-gallery-thumb a {
    width: 32.3333% !important;
    margin: 5px !important;
    }}

    Regards,
    Yigit

    #300664

    Do you say:

    #top .avia-gallery .avia-gallery-thumb a:hover { background-color: rgba(0,0,0,0.8); }

    makes the image dark on mouse-over? mine is getting white. no black 80% hover.-)

    • This reply was modified 10 years, 3 months ago by royaltask.
    #300668

    Hey!

    I thought you have added an image overlay.You cannot change background color when decreasing opacity.

    Cheers!
    Yigit

    #300674

    I have no overlay yet, can I add one for all galleries?

    #300687

    Hi!

    Yes you can, but you are going to need to modify Gallery.php file inside Enfold/config-templatebuilder/avia-shortcodes folder. You can find some tutorials here – http://www.corelangs.com/css/box/overlay.html

    Regards,
    Yigit

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.