Home › Forums › WoodMart support forum › When we hover over the Buy Button with the mouse › Reply To: When we hover over the Buy Button with the mouse
September 21, 2022 at 10:15 am
#407535
Luke Nielsen
Keymaster
Hello,
The below code will help you to add the border to the swatches. Enter it into the “Global Custom CSS” area in Theme Settings -> Custom CSS.
.wd-swatch:after {
display: none;
}
.wd-swatch.swatch-with-bg {
border: 2px solid #FFF;
box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.wd-swatch.swatch-with-bg.active-swatch {
box-shadow: 0 0 0 1px #000;
}
.wd-swatch.swatch-with-bg:not(.active-swatch):hover {
box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
}
.wd-swatch:not(.swatch-with-bg) {
border: 1px solid rgba(0,0,0,0.15);
border-radius: 3px;
padding: 4px;
}
.wd-swatch:not(.swatch-with-bg).active-swatch {
border-color: #000;
}
.wd-swatch:not(.swatch-with-bg):not(.active-swatch):hover {
border-color: rgba(0,0,0,0.4);
}
Kind Regards