Jump to content

plantshop203

Member
  • Posts

    23
  • Joined

  • Last visited

Posts posted by plantshop203

  1. I was able to figure it out!

    For anyone who wants to do something like this, here's the code I used:

    //product hover border
    .grid-item:hover {
      position: absolute;
      width: 100%;
      height: 100%;
      content: '';
      top: 0;
      left: 0;  
      box-sizing: border-box;
      padding: 7px!important;
      -webkit-box-shadow: 0px 0px 6px -3px rgba(0,0,0,0.75);
      -moz-box-shadow: 0px 0px 6px -3px rgba(0,0,0,0.75);
      box-shadow: 0px 0px 6px -3px rgba(0,0,0,0.75);
    }
    
    .grid-item {
      padding: 7px;
    }

     

  2. @tuanphan ok... update here:

    Using this code I have created the desired effect:

    .post-type-store-item:hover {
      position: absolute;
      width: 100%;
      height: 100%;
      content: '';
      top: 0;
      left: 0;
      border: 1px solid #bcbec0;
      box-sizing: border-box;
      padding: 7px!important;
      -webkit-box-shadow: 4px 4px 4px -4px  rgba(0,0,0,0.75);
      -moz-box-shadow: 4px 4px 4px -4px  rgba(0,0,0,0.75);
      box-shadow: 4px 4px 4px -4px rgba(0,0,0,0.75);
    }
    
    .post-type-store-item {
      padding: 7px;
    }

    See the first photo. The hover effect works great on the product list pages, but I am having a code issue on the product detail pages. See the second image.

    Any way to stop this from happening?

    https://pear-keyboard-jh2w.squarespace.com/shop/p/succulent-rock-garden

     

    Desired Effect.jpg

    Problem on Product Details Page.jpg

  3.  

    On 12/7/2020 at 8:26 PM, bangank36 said:
    
    .post-type-store-item:after {
     position: absolute;
      width: 100%;
      height: 100%;
      content: '';
      top: 0;
      left: 0;
      
    }
    .post-type-store-item {
      padding: 7px;
    }
    .post-type-store-item:hover:after {
      border: 2px solid #000;
      box-sizing: border-box;
    }

    image.png.bb725a6d3c723b95b1ad947921001fa0.png

    Hi – this code looks great but when added, it removes the link from each of the products. So the border hover effect happens, but the products are not clickable. Is there a fix for this?

    site: theoldyew.com

×
×
  • 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.