limit aspect-ratio to featured images

This commit is contained in:
madrilene 2024-12-21 10:23:00 +01:00
parent 7133645b75
commit b422dbb958

View file

@ -10,7 +10,8 @@
font-size: var(--size-step-2);
}
.post img {
/* make featured image alwyays 16/9 */
.post h1 + :is(picture, figure) img {
max-inline-size: var(--max-img-width, 100%);
block-size: auto;
aspect-ratio: 16/9;