Solved

Remove outline on button :before and :hover

memikee
Excursionist
25 1 7

Although hard to see, the "add" button has a 1px thick outline which gets bigger when you hover.

I want to remove the outline before and when hovering.

This is possible within the "buttons" setting in the dawn theme but i want this setting to remain as is.

 

Any help is greatly appreciated.

Shop: https://csctesrqgudqzgtx-66895675693.shopifypreview.com

 

Screenshot 2023-10-07 at 21-27-21 GoActiveShop.png

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
5437 1308 1610

This is an accepted solution.

Hi @memikee 

Try this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

button#quick-add-template--21182112399661__68cd86ba-c9a7-4092-91ea-3570e608b8538008987279661-submit {
    --buttons-border-width: 0px !important;
}
.button:after {
    box-shadow: none !important;
}
.button--secondary:after {
    --border-opacity: 0 !important;
}

 

  • And Save. 
  • Result (I change the background while editing so it visible)
  • Made4uoRibe_0-1696708508020.png
Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
5437 1308 1610

This is an accepted solution.

Hi @memikee 

Try this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

button#quick-add-template--21182112399661__68cd86ba-c9a7-4092-91ea-3570e608b8538008987279661-submit {
    --buttons-border-width: 0px !important;
}
.button:after {
    box-shadow: none !important;
}
.button--secondary:after {
    --border-opacity: 0 !important;
}

 

  • And Save. 
  • Result (I change the background while editing so it visible)
  • Made4uoRibe_0-1696708508020.png
Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


memikee
Excursionist
25 1 7

Worked like a charm 🙂 Thank you!