Hi there,
I tried to remove the white “border” around all my buttons when hovering over them, but I can’t find a way.
The problem is, it doesnt seem to be a border. The real border is black and goes around the white one. Do you know what it is and how to change it??
URL: www.taneraskin.com
Here is the code from base.css I tried to modify:
.button,
.shopify-challenge__button,
.customer button {
display: inline-flex;
justify-content: center;
align-items: center;
border: 1px solid #c43b78 !important;
padding: 0 3rem;
cursor: pointer;
font: inherit;
font-size: 1.5rem;
text-decoration: none;
color: #c43b78;
transition: none;
-webkit-appearance: none;
appearance: none;
background-color: white;
}
.button:before,
.shopify-challenge__button:before,
.customer button:before,
.shopify-payment-button__button–unbranded:before,
.shopify-payment-button [role=“button”]:before,
.cart__dynamic-checkout-buttons [role=‘button’]:before {
content: ‘’;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
}
.button:after,
.shopify-challenge__button:after,
.customer button:after,
.shopify-payment-button__button–unbranded:after {
content: ‘’;
position: absolute;
top: var(–buttons-border-width);
right: var(–buttons-border-width);
bottom: var(–buttons-border-width);
left: var(–buttons-border-width);
z-index: 1;
border-radius: var(–buttons-radius);
box-shadow: 0 0 0 calc(var(–buttons-border-width) + var(–border-offset)) rgba(var(–color-button-text), var(–border-opacity)),
0 0 0 var(–buttons-border-width) rgba(var(–color-button), var(–alpha-button-background));
transition: none;
/CHANGE BUTTON HOVER COLOR/
}
.button:hover{
background: #111111 !important;
color: #ffffff !important;
border: 1px solid #111111 !important;
}
.button:not([disabled]):hover::after,
.shopify-challenge__button:hover::after,
.customer button:hover::after,
.shopify-payment-button__button–unbranded:hover::after {
–border-offset: 0px;
box-shadow: 0 0 0 calc(var(–buttons-border-width) + var(–border-offset)) rgba(var(–color-button-text), var(–border-opacity)),
0 0 0 calc(var(–buttons-border-width) + 1px) rgba(var(–color-button), var(–alpha-button-background));
}
.button–secondary:after {
–border-opacity: var(–buttons-border-opacity);
}
Best,
Isabelle