-
AuthorPosts
-
March 22, 2016 at 5:30 am #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
March 25, 2016 at 3:59 pm #603657Hi 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,
YigitApril 4, 2016 at 5:31 pm #607765Hi 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
April 4, 2016 at 7:05 pm #607794Hey 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,
JordanApril 5, 2016 at 9:40 am #608144Hi 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
April 5, 2016 at 10:18 am #608152Hi!
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!
VinayApril 7, 2016 at 1:29 pm #609594Hi 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
April 11, 2016 at 4:10 am #610909Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.