I have created an abstract type button (was meant to be a cloud originally, but has become something different!)
But now I am unable to change the hover color of all the elements in the button - can somebody see what I am doing wrong in that part?
Here is the code I am using for the button which I have hacked together from various tutorials I am watched on this.
.btn {
position: relative;
width: 150px;
height: 50px;
border-radius: 50%;
background-color: #66b65d;
transition: background-color 100ms linear, height 70ms ease-in, width 70ms ease-in;
cursor: pointer;
z-index: 999 !important;
}
.btn:before {
content: "";
display: block;
width: 130px;
height: 30px;
position: absolute;
top: 89;
border-radius: inherit;
background-color: #5ca754;
;
z-index: -1 !important;
}
.btn:after {
content: "";
display: block;
width: 130px;
height: 30px;
position: absolute;
top: 89;
border-radius: inherit;
background-color: #508f49;
}
.btn:before {
left: -10%;
margin-left : calc( ( #{75) );
}
.btn:after {
right: 100%;
margin-right : calc( ( #{25) );
}