Davyc
Well-known member
I want to add a button styled in CSS to a link so that the colors are different depending on whether the style is light or dark. This is the code I want to use, though the colors will change for dark over light. So potentially the same code, just different colors. How can I implement this in the extra.less file? Any help greatly appreciated.
Code:
.myButton {
background-color:#44c767;
border-radius:10px;
border:1px solid #18ab29;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-size:16px;
padding:9px 31px;
text-decoration:none;
}
.myButton:hover {
background-color:#2ab1bd;
}
.myButton:active {
position:relative;
top:1px;
}