Jump to content

How to edit the black box/border surrounding product variants??

Recommended Posts

Posted

I can find ccs codes to edit almost everything except the thin black box that surrounds the variants of products. 

I have two variants - one is Colour and the other is Quantity. 

Does anyone know how I can change the colour and thickness of the border that surrounds these? 

Thanks!

 

  • Replies 10
  • Views 1.7k
  • Created
  • Last Reply
Posted

Please post the URL to a page where you want to make these changes.

If your site is not public please set up a site-wide password, if you've not already done so. Post the password here.

We can then take a look at your issue.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Posted

Use the following CSS as a starting point.

.ProductItem-details .variant-select-wrapper select {

  border-color: red;
  border-width: 10px;
  
  }

.ProductItem-details .product-quantity-input input {

  border-color: green;
  border-width: 10px;
  
  }
  
.ProductItem-details .product-quantity-input input:focus {

  outline-color: blue;
  outline-width: 10px;
  
  }

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

  • 6 months later...
Posted

Hello, 

Perhaps you could help me with the code to edit my product variant boxes as well. I am looking to do something like this. 

my website is Mulberrypaperco.com

Thank you, 

Hails

 

Screen Shot 2021-05-27 at 9.11.49 PM.png

Posted

Ahhh, I am working on a mac and it i displaying like the photo below, so I wasn't quite sure if I was achieving the effect. Is there anything I can do to have the mac display more like it is in the photo you posted?

 

Thank you!

 

Screen Shot 2021-05-27 at 10.08.55 PM.png

Posted

Apparently the issue has to do with Safari not supporting the gap property for flex.

Supposedly Apple has released a new version recently that finally does support gap. Version 14.1. Although it may be years before many folks are on versions later than v14.1.

So the solution involves trying to fix flex on Safari with a margin hack. Perhaps use grid instead. Not sure how long Safari has supported grid. Or use one of the older techniques such as float.

I began to tinker with a flex hack but so far I'm not satisfied.

If anyone has a solution please pitch in!

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.