Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2020-06-12 21:08:51

giz
Member
From: New Zealand
Registered: 2004-07-26
Posts: 199
Website

Re: all-grid theme for image-rich websites

Agreed. No criticism taken :)

Unfortunately, neither approach helps with the ‘jump’ on detail pages (caused by the article header being superimposed over the hero image). I’ll likely use my Artedomus fix for this (force the proportions of the <picture> container, so the grid knows how much space to allow before the image starts loading.

Offline

#14 2020-06-12 21:22:55

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,087
Website

Re: all-grid theme for image-rich websites

giz wrote #323756:

I’ll likely use my Artedomus fix for this (force the proportions of the <picture> container, so the grid knows how much space to allow before the image starts loading.

There’s a new css property aspect-ratio that’s supposed to help solve that in future. If you want to use it already, you probably need to use @supports.

Harry Roberts recently posted a twist on the ::before/::after padding-top trick for this too – see this Twitter thread.


TXP Builders – finely-crafted code, design and txp

Offline

#15 2020-06-13 01:03:57

giz
Member
From: New Zealand
Registered: 2004-07-26
Posts: 199
Website

Re: all-grid theme for image-rich websites

jakob wrote #323758:

There’s a new css property aspect-ratio that’s supposed to help solve that in future. If you want to use it already, you probably need to use @supports.

Harry Roberts recently posted a twist on the ::before/::after padding-top trick for this too – see this Twitter thread.

Thanks. I’d heard about the new aspect-ratio property, but your link is da business.

Harry Roberts is worth following!

Offline

#16 2020-06-13 13:26:12

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,404

Re: all-grid theme for image-rich websites

giz wrote #323753:

(isn’t there a limit to the number of files you can have in a directory in Apache?)

You’re more likely to hit a filesystem / operating system limit depending on the format of your hard drive, or possibly a limit imposed by your web host for their own damage limitation.

Offline

Board footer

Powered by FluxBB