Jump to content

Removing drop shadow from font but not gallery image

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Hi!

I've taken over the maintenance of a website and am very much a beginner with CSS.

I've been asked if I can remove the drop shadow on the gallery captions of this website, but to keep them on the images themselves.

This custom code is in the Design area, but I'm not sure what I'd need to remove or edit...

.gallery-section .gallery-caption p {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  color: #FFFFF;
  text-transform: normal;
  line-height: 1.1em;
  font-family: inherit;}

.gallery-section .gallery-grid-item img:hover { filter: grayscale(70%);}

.sqs-gallery-block-grid .slide .margin-wrapper a.image-slide-anchor
.gallery-caption {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 102%;
    text-align:center;
    opacity: 0;
    transition: all .3s ease;
    background-color: white;
    height: 100%;
}

.gallery-section .gallery-grid-item  {
  filter: drop-shadow(1px 2px 5px  #000000);
}

.image-block:hover {
  filter: drop-shadow(2px 2px 5px #000000);
}

.image-block {
  filter: drop-shadow(2px 2px 5px #000000);
}

.image-block:hover {
  filter: drop-shadow(2px 2px 5px #000000);
}

Thanks so much in advance if anyone can help!

  • Replies 2
  • Views 621
  • Created
  • Last Reply

Top Posters In This Topic

Posted
On 7/21/2023 at 12:06 PM, tuanphan said:

Change this code

.gallery-section .gallery-grid-item {
    filter: drop-shadow(1px 2px 5px #000);
}

to this

.gallery-section .gallery-grid-item .gallery-grid-item-wrapper {
    filter: drop-shadow(1px 2px 5px #000);
}

 

Perfect, thank you so much!

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.