Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2020-05-21 01:06:24

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Album set thumbnail behavior

Album-set thumbnails should have no borders and a .1 rem grey border when hover. This is a bilingual site using the language switch. When in Fr, thumbnails are fine as intended. But, when in En, there is a slight grey line below the thumbnails. Same CSS file used throughout.
What could cause this?

pideja.ca/marco

Last edited by pideja (2020-05-21 01:06:48)

Offline

#2 2020-05-21 01:49:18

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Album set thumbnail behavior

Maybe the thumbnail size is just off by a pixel? In the english site, I would republish all images. And check that 'republish only thumbnails' is not checked in publisher settings.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#3 2020-05-21 02:08:08

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Album set thumbnail behavior

Having published these thumbnails directly with Backlight and not thru LR, I'm not too sure how to republish.

Still, it is strange that the same images appear differently whatever language is used.

Offline

#4 2020-05-21 02:22:11

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Album set thumbnail behavior

Sorry, I kind of missed same images... obviously republishing doesn't help in this case...


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#5 2020-05-21 02:29:51

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Album set thumbnail behavior

I am using this CSS I lifted from another site I designed. I adapted it to control these thumbnails:

/* album-set thumbnails */
.the__albumSet figure {
position : relative;
border-radius : 1px;
box-shadow : 4px 4px 4px rgba(0, 0, 0, 0);
height : 185px;
width : 320px;
}
/* album-set thumbnail border hover effect */
.the__albumSet figure {
padding : .1rem .1rem;
border : rgb(0, 0, 0) solid 1px;
background : transparent;
font-size : 0.6rem;
border-radius : 2px;
}
.the__albumSet figure:hover {
cursor : pointer;
background : rgb(206, 196, 182);
color : black;
}

Notice I set the thumbnail height to 185px and the width to 320px. That's because I want a 16:9 ration (this being a cinematographer's site). If you calculate, 16:9 should come to 320x180px. The extra 5px is used so that I have a symetrical border on hover in the Fr. But it creates a 1px grey line in the En. I'm still playing around the CSS to find the offending line, if any.
Also, these thumbnails should be ICONIC. I do not wish to have titles under the thumbnails. However, the space for a title is still there.

Last edited by pideja (2020-05-21 02:31:34)

Offline

#6 2020-05-21 02:42:13

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Album set thumbnail behavior

I looked at some of your custom CSS and you are setting items that can be done in the Backlight album. I would recommend that you set everything that you can in Backlight Designer and only use custom CSS for things that can't be done in Backlight Designer.

Instead of lifting code from another site, try to find the proper settings in Backlight Designer. It is really worth your time to have a clean implementation!

To get rid of the line, you can use

.albums figcaption {
	border-top: 1px solid #000000;
}

Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#7 2020-05-21 03:56:41

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Album set thumbnail behavior

I've noticed this errant border before in single language sites (mine and others). I think it may be a bug and have reported it.

In the album set template Grid settings even if you set the border to 0, that one single border above where the metadata would go (figcaption) is showing up. What I've done is to set the border color in the template to match the background color, basically the same thing Daniel is advising.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#8 2020-05-21 04:29:11

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Album set thumbnail behavior

Thanks, Daniel and Rod. That extra code got rid of the line in the En version. The Fr version remains the same.

As for the CSS, I'll review it and look at what I can change in Backlight. This whole segment started when I tried to change thumbnail size with Backlight but couldn't...

Offline

Board footer

Powered by FluxBB