Styling Enfold Buttons
choose light-transparent layout on Enfold Dialog. All the rest will be ok to choose : small, middle, big, large etc. with icon or not
To have them besides each other – set the surrounding container to display: flex
/*** to have the buttons in a row - put them all in a 1/1 container and gave a unique custom-class to that 1/1 container ***/
/*** in this case i set : buttons-in-row as custom-class ***/
.buttons-in-row {
display: flex !important;
flex-flow: row wrap;
justify-content: space-between;
}
.buttons-in-row::before, .buttons-in-row::after {
display: none;
}
The styling code
* new button style - a bit glassy */
.glass {
position: relative;
display: inline-block;
border-radius: 4px;
box-shadow: 1px 1px 4px #666;
text-decoration: none;
text-shadow: 1px 1px 2px #555;
margin: 20px !important;
}
.glass:before{
content: '';
position: absolute;
top: 2px;
left: 2px;
width: calc(100% - 4px);
height: 50%;
background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.2))
}
The styling code for different colors
/* the green one */
.green {
background-color: green; /*for compatibility with older browsers*/
background-image: linear-gradient(green,lightgreen);
color: #fff
}
.green:hover { background: linear-gradient(#073,#0fa) }
/* the blue one */
.blue {
background-color: #003968; /*for compatibility with older browsers*/
background-image: linear-gradient(#003968,#0094ce);
color: #fff
}
.blue:hover { background: linear-gradient(#047,#0ef) }
/* the red one */
.red {
background-color: red; /*for compatibility with older browsers*/
background-image: linear-gradient(#ea0404 ,#6d0019);
color: #fff
}
.red:hover { background: linear-gradient(#a00,#e00) }
To have the button effect now is to combine both classes to your button – first the style then the color f.e. : glass red
custom-class in this example. : verlauf-button
/*** same color-scheme : Light Transparent for the Enfold Button - then: ***/
.avia-button-wrap.verlauf-button,
.avia-button-wrap.verlauf-button .avia-button:before {
display:inline-block;
color: #fff;
border-radius: 15px;
background: linear-gradient(-45deg, #FFA63D, #FF3D77, #338AFF, #3CF0C5);
background-size: 600%;
animation: anime 16s linear infinite;
}
.avia-button-wrap.verlauf-button .avia-button:before {
content:"";
width: 100%;
height: 100%;
left: 5px;
top: 5px;
position: absolute;
z-index: -1;
filter: blur(10px);
opacity: 0.7;
}
.avia-button-wrap.verlauf-button a,
.avia-button-wrap.verlauf-button a:hover {
color: #fff;
text-decoration: none
}
@keyframes anime {
0% {background-position: 0% 50%}
50% {background-position: 100% 50%}
100% {background-position: 0% 50%}
}