Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #530779

    Hi Guys,

    I would like to change the default styling of the buttons used in the Avia Layout Builder to something like this: http://www.thebigword.com

    The buttons on this page, will be lifted upwards when hovered over, instead of going transparent, and they also have a background shadow.

    Can I amend the default button with Custom CSS to come up with a similar styling?
    Could you help me in giving me a hint how to progress?

    Many thanks in advance.

    Look forward to hearing from you.

    Kind regards,

    Ben

    #530911

    Hey SynergyLanguageServices!

    Add this to your custom CSS.

    .avia-button:hover, .button:hover { border-bottom: 5px solid red !important; }
    

    Cheers!
    Elliott

    #530947

    Hi Elliott,

    Thank you for this code line.

    The good news is that it works, that bad news is that it doesn’t work in a way I imagined.

    It not only lifts up the buttons but the text above the buttons as well (in the same colour section) even though the text block and the button are two different elements.

    I would also like the button to have a shadow effect when it’s unhovered, and as the button is hovered, I would like the button to lift up a bit and the shadow would also increase below it – just the way it does on the example website (www.thebigword.com).

    Also, I would like to switch off the transparency of the button completely, so when it’s hovered over, I want it to stay in the same color as it is without the hovering.

    See it on my website – allotropydigital.com

    Is this possible?

    Many thanks,
    Ben

    #531054

    Hey!

    You could try giving the unhovered state a bottom padding as well so it doesn’t move the other elements.

    .avia-button, .button { border-bottom: 5px solid blue !important; }
    .avia-button:hover, .button:hover { border-bottom: 5px solid red !important; }
    

    See here for how to do shadows, http://www.cssmatic.com/box-shadow.

    Cheers!
    Elliott

    #531093

    Hi Elliott,

    Thank you for the updated code and for the link to the website.

    The styling of the button is fine now, but I still have two issues as I explained above which is still not resolved:

    1. I would like to remove the transparency from the hovered button completely. Is there a way to do this?
    2. When the button is hovered over, it still shifts the text elements upwards, how can I avoid this?

    Look forward to your reply.

    Best regards,

    Ben

    #532494

    Hi!

    1. I can’t see any transparency when hovering over your buttons. Could you remove it already?

    2. Use this code in Quick CSS field:

    .btn:hover {
    bottom: 0px;
    }
    

    Cheers!
    Andy

    #545647

    Hi Andy,

    The same applies here too, I went down on a different route now, so this trail can be closed as well.

    Thanks,

    Ben

    #545736

    Hi again Ben,

    I’ll close this thread so please open a new one if you should have any other issues.

    Thanks,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘customising buttons in Avia Layout Builder’ is closed to new replies.