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

    Hi there,

    Is it possible to give the button elements on the site an effect that makes them look more like real buttons?
    Like a little emboss effect or a little edge to it?

    BTW I noticed that the button elements look more like buttons in the backend than in the frontend.
    In the backend they have a subtle gradient effect that makes them look more like buttons, in the frontend they just look very simple.

    Thank you

    #603657

    Hi vossenm!

    You can turn on custom CSS field for ALB elements – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then edit your button and give it a custom CSS class and then add following code to Quick CSS in Enfold theme options under General Styling tab

    .your-custom-class a.avia-button {
        background: #7db9e8;
        background: -moz-linear-gradient(top, #7db9e8 0%, #2989d8 50%, #1e5799 100%);
        background: -webkit-linear-gradient(top, #7db9e8 0%,#2989d8 50%,#1e5799 100%);
        background: linear-gradient(to bottom, #7db9e8 0%,#2989d8 50%,#1e5799 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7db9e8', endColorstr='#1e5799',GradientType=0 );
    }

    You can generate gradients here – http://www.colorzilla.com/gradient-editor/ :)

    Best regards,
    Yigit

    #607765

    Hi Yigit,

    Thanks that looks great!
    I had to enable the custom CSS again after I updated the Enfold theme, but now I can use this, thanks!

    I remember that I also changed a setting once somewhere that produced a border of a few pixels around the buttons, but I can’t find it now, could you tell me how this can be created? I thought that was in the Enfold control panel somewhere but now I can’t find it…

    Marcel

    #607794

    Hey Marcel!

    Glad to hear that worked for you.

    To add borders to the buttons, try the following CSS code:

    .your-custom-class a.avia-button {
    border: 5px solid #ab24cd;
    }

    You can adjust the values as you wish and if there any problems please let me know.

    Regards,
    Jordan

    #608144

    Hi there Jordan,

    I tried it but it doesn’t seem to work, I now have this in my quick CSS field:

    .buttoncool-class a.avia-button {
    background: #7db9e8;
    background: -moz-linear-gradient(top, #7db9e8 0%, #2989d8 50%, #1e5799 100%);
    background: -webkit-linear-gradient(top, #7db9e8 0%,#2989d8 50%,#1e5799 100%);
    background: linear-gradient(to bottom, #7db9e8 0%,#2989d8 50%,#1e5799 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=’#7db9e8′, endColorstr=’#1e5799′,GradientType=0 );
    }

    .buttoncool-class a.avia-button {
    border: 5px solid #ab24cd;
    }

    I used it in one button in the link below, as you can see, I think the code should generate a purple border , right?
    But it’s not there, what did I do wrong? :)

    Marcel

    #608152

    Hi!

    Your code is good and it works fine but the default style is overriding it so you just need to increase the custom CSS specificity

    
    .buttoncool-class a.avia-button {
    border: 5px solid #ab24cd!important;
    }

    Cheers!
    Vinay

    #609594

    Hi Vinnie,

    This all works great, however I still have a question.
    I realized that I have already built in a lot of buttons in the site so I would have to change the custom CSS field for all of them.

    In the backend, all these buttons look exactly like i would like to see them in the frontend, they all have a gradient in the color that I choose, and a very subtle border. Isn’t it possible to make all frontend buttons look like the backend version by default?

    Regards,

    Marcel

    #610909

    Hey!

    Remove the custom css class selector:

    .avia-button {
        background: #7db9e8;
        background: -moz-linear-gradient(top, #7db9e8 0%, #2989d8 50%, #1e5799 100%);
        background: -webkit-linear-gradient(top, #7db9e8 0%,#2989d8 50%,#1e5799 100%);
        background: linear-gradient(to bottom, #7db9e8 0%,#2989d8 50%,#1e5799 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7db9e8', endColorstr='#1e5799',GradientType=0 );
    }

    Cheers!
    Ismael

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