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
  • Views 772
  • Created
  • Last Reply
  • 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

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

Link to comment

Archived

This topic is now archived and is closed to further replies.

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