Jump to content

CSS no longer works: 'missing opening `{`'

Go to solution Solved by HoaLT,

Recommended Posts

Posted (edited)

This used to work, what I want to achieve is:

Image Galleries:

- 100% solid white background

- Centred captions

- 80% Smaller captions

- Captions separated lines with 'shift/return'

Below I am posting all my custom CSS in case there's an error somewhere else causing the problem, thanks!

/* Hide Cart When Empty */
.cart-quantity-zero {
  display: none !important;
}

  .products.collection-content-wrapper .nested-category-children::after {
  
    all: unset;
    
    }

@media screen and { ( min-width: 576px ) }


/* Lightbox opacity */
.gallery-lightbox-background {
    opacity: 1.0;
}


p {
text-decoration: none !important
}

}
/* center gallery caption */
p.gallery-caption-content {
    text-align: center;
}

p.gallery-caption-content {
  font-size: 80% !important;
}
.gallery-grid-item .gallery-caption-content {
white-space:pre;
}

 

Edited by Anon7856874
  • Solution
Posted

It should be

/* Hide Cart When Empty */
.cart-quantity-zero {
  display: none !important;
}

.products.collection-content-wrapper .nested-category-children::after {
  all: unset;
}

@media screen and ( min-width: 576px ) {
  /* Lightbox opacity */
  .gallery-lightbox-background {
    opacity: 1.0;
  }
  p {
    text-decoration: none !important
  }
}

/* center gallery caption */
p.gallery-caption-content {
  text-align: center;
}

p.gallery-caption-content {
  font-size: 80% !important;
}
.gallery-grid-item .gallery-caption-content {
  white-space:pre;
}

Hope it can help

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

📑 Squarespace embed PDF popup (affiliate link)

Create an account or sign in to comment

You need to be a member in order to leave a comment

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