danielhaydenh 1 Share Posted November 27, 2020 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 post
0 tuanphan 9,609 Share Posted December 5, 2020 Hi. Do you still need help on this? Email me if you have need any help (free, of course :-D). Answer within 24 hours. How to: Setup password & share url Insert Custom CSS Open Page Header Upload Custom Font Find Block ID, Data Section ID Contact Squarespace Customer Care -- Yup! Link to post
0 MakingWaves 0 Share Posted February 24 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/ p/w coaching Link to post
0 tuanphan 9,609 Share Posted March 1 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/ 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 :-D). Answer within 24 hours. How to: Setup password & share url Insert Custom CSS Open Page Header Upload Custom Font Find Block ID, Data Section ID Contact Squarespace Customer Care -- Yup! Link to post
0 MakingWaves 0 Share Posted March 1 Yes, the client's just removed them as she wanted to go live. Are you able to help without them on there?? Link to post
0 tuanphan 9,609 Share Posted March 3 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 :-D). Answer within 24 hours. How to: Setup password & share url Insert Custom CSS Open Page Header Upload Custom Font Find Block ID, Data Section ID Contact Squarespace Customer Care -- Yup! Link to post
Question
danielhaydenh 1
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 post
Top Posters For This Question
3
2
1
Popular Days
Mar 1
2
Mar 3
1
Nov 27
1
Dec 5
1
Top Posters For This Question
tuanphan 3 posts
MakingWaves 2 posts
danielhaydenh 1 post
Popular Days
Mar 1 2021
2 posts
Mar 3 2021
1 post
Nov 27 2020
1 post
Dec 5 2020
1 post
Posted Images
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment