Jump to content

Removing drop shadow from font but not gallery image

Go to solution Solved by tuanphan,

Recommended Posts

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!

Link to comment
  • Replies 2
  • Views 560
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

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);
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

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.