Jump to content

How to add colour overlay on clickthrough links

Recommended Posts

Site URL: https://dhaydendesign.com/portfolio-test

I'm trying to add custom css to my site to allow the captions to show on hover over, however when the image has a clickthrough link attached to it the code isn't behaving.

Can someone advise me please.

Below is the code i have used.

.gallery-caption-grid-masonry {
  opacity: 0;
  z-index: -1;
  transition: all .2s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  text-align: center;
  color: #fff;
  height: 100%;
  padding: 0;
}
  
.gallery-masonry-item:not(.has-clickthrough) .gallery-caption-grid-masonry:before {
  background-color: #0c3448;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  opacity: .8;
  transition: all .2s;
}

.gallery-masonry-item.has-clickthrough:hover .gallery-caption-grid-masonry {
  z-index: 0;
  opacity: 1;
  height: auto;
}

.gallery-masonry-item:not(.has-clickthrough):hover .gallery-caption-grid-masonry {
  z-index: 0;
  opacity: .9;
}

.gallery-masonry-item:hover .gallery-caption-grid-masonry:before {
  opacity: 1;
  transition: all .3s;
}

.gallery-caption-grid-masonry .gallery-caption-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-caption-grid-masonry p.gallery-caption-content {
  z-index: 1000;
  font-size: 1.9rem;
}

Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 months later...

Hey guys! Thought I'd post on this thread rather than create a new one.

 I've added some css to this site to get the gallery displaying differently. I'd like to change the text link colour but can't work out how to change it. Can you help? TIA 🙂

 

//Gallery title font overlay//
.sqs-gallery-block-slideshow .meta .meta-title {
  font-family: "Playfair Display";
font-style: italic;
  letter-spacing: 0.05em;
  line-height: 26px;
}



//Gallery Slideshow Fonts & Colours//
.sqs-gallery-block-slideshow .meta .meta-title {
font-family: Playfair Display;
  font-style: italic;
  letter-spacing: 0.05em;
font-size: 24px;
color: #273e38;
}

.sqs-gallery-block-slideshow .meta .meta-description p {
 font-family: Source Sans Pro;
 font-style: normal;
 font-size: 15px;
  line-height: 33px;
  padding-top: 20px;
  padding-left: 50px;
  padding-right: 50px;
 color: #273e38;
 opacity: 1;
}

 

https://echidna-cymbals-2kjy.squarespace.com/1078591532_Screenshot2021-02-24at14_49_13.thumb.png.0f3d6cdb52fc74252ec9443e3164f273.png

p/w coaching

Link to comment
On 2/24/2021 at 10:06 PM, MakingWaves said:

Hey guys! Thought I'd post on this thread rather than create a new one.

 I've added some css to this site to get the gallery displaying differently. I'd like to change the text link colour but can't work out how to change it. Can you help? TIA 🙂

 


//Gallery title font overlay//
.sqs-gallery-block-slideshow .meta .meta-title {
  font-family: "Playfair Display";
font-style: italic;
  letter-spacing: 0.05em;
  line-height: 26px;
}



//Gallery Slideshow Fonts & Colours//
.sqs-gallery-block-slideshow .meta .meta-title {
font-family: Playfair Display;
  font-style: italic;
  letter-spacing: 0.05em;
font-size: 24px;
color: #273e38;
}

.sqs-gallery-block-slideshow .meta .meta-description p {
 font-family: Source Sans Pro;
 font-style: normal;
 font-size: 15px;
  line-height: 33px;
  padding-top: 20px;
  padding-left: 50px;
  padding-right: 50px;
 color: #273e38;
 opacity: 1;
}

 

https://echidna-cymbals-2kjy.squarespace.com/1078591532_Screenshot2021-02-24at14_49_13.thumb.png.0f3d6cdb52fc74252ec9443e3164f273.png

p/w coaching

Did you remove it? I don't see it on homepage

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 3/1/2021 at 7:36 PM, MakingWaves said:

Yes, the client's just removed them as she wanted to go live. Are you able to help without them on there??

You can duplicate site, add there & share url.

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.