Hello !
I created a button with Buton (SiteOrigin) widget in which i set only color button (orange #f47e3c). In Custom CSS I have introduced the following sequence for the newly created button:
.so-widget-sow-button-atom-1e80d9e62c35 .ow-button-base a {
display: inline-block !important;
padding: 9px 20px;
font-size: 19px;
cursor: pointer !important;
text-align: center;
text-decoration: none;
outline: 0 !important;
color: #ffffff !important;
background-color: #3e8e41 !important;
border: none;
border-radius: 15px;
box-shadow: 0 8px #999;
}
.so-widget-sow-button-atom-1e80d9e62c35 .ow-button-base a:hover {
display: inline-block;
padding: 5px 16px;
font-size: 15px;
cursor: pointer;
text-align: center;
text-decoration: none;
outline: 0 !important;
color: #ffffff;
background-color: #f58446 !important;
box-shadow: 0 1px #999 !important;
}
My problem:
1. On hover background-color: #f58446 does not applied (see https://www.itdomains.ro).
2. I do not know how to apply on click effect (not on hover).
I want a button like this (css code below). Please, if you are kind, tell me how to do.
.button {
display: inline-block;
padding: 8px 18px;
font-size: 24px;
cursor: pointer;
text-align: center;
text-decoration: none;
outline: none;
color: #fff;
background-color: #f47e3c;
border: none;
border-radius: 15px;
box-shadow: 0 9px #999;
}
.button:hover {background-color: #3e8e41}
.button:active {
background-color: #3e8e41;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
Thank you.
Dragos D.
Solved ! The answer for both posted problems (see below)
I created button with plugin (i set only title and link)
In the “custom css” I added:
/* General settings for all the buttons created (base view and hover) */
.ow-button-base a {
background: rgba(244, 126, 60, 03)!important;
-webkit-transition: 400ms ease !important;
transition: 400ms ease !important;
}
.ow-button-base a:hover {
background: rgba(126, 130, 126, 0.3)!important;
}
/* Settings for custom created button;
default view (base) */
.so-widget-sow-button-atom-1a0e1e077c9e .ow-button-base a {
display: inline-block!important;
padding: 9px 20px;
font-size: 12px;
cursor: pointer !important;
text-align: center;
text-decoration: none;
outline: 0 !important;
border: 0 !important;
border-radius: 15px;
box-shadow: 0 9px #999;
}
/* On hover (when mouse is over the button ) */
.so-widget-sow-button-atom-1a0e1e077c9e .ow-button-base a:hover {
background: rgba(204, 51, 0, 03)!important;
text-decoration: none;
}
/* .so-widget-sow-button-atom-1a0e1e077c9e .ow-button-base a:visited, */
/* Active (on button click) */
.so-widget-sow-button-atom-1a0e1e077c9e .ow-button-base a:active {
background: rgba(255, 51, 0, 03)!important;
box-shadow: 0 4px #666!important;
transform: translateY(4px)!important;
}
/* .so-widget-sow-button-atom-1a0e1e077c9e-button-base a.ow-button-hover:hover */
/* End of file */
PS. Do not forget to modify custom button code with your button code (my code 1a0e1e077c9e)
PS. I found the answer by reading the posts on this site (https://siteorigin.com/)
Thanks SiteOrigin.
Hi Diaconus,
I’m glad you were able to resolve this issue. I’m sorry I wasn’t able to be of assistance this time. Please be sure to post another thread if you have any other questions.