From b422dbb958b4331664ed34b5fb4adfc4b234935c Mon Sep 17 00:00:00 2001 From: madrilene Date: Sat, 21 Dec 2024 10:23:00 +0100 Subject: [PATCH] limit aspect-ratio to featured images --- src/assets/css/bundle/post.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/assets/css/bundle/post.css b/src/assets/css/bundle/post.css index 4fb9928..60fda56 100644 --- a/src/assets/css/bundle/post.css +++ b/src/assets/css/bundle/post.css @@ -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;