limit aspect-ratio to featured images
This commit is contained in:
parent
7133645b75
commit
b422dbb958
1 changed files with 2 additions and 1 deletions
|
|
@ -10,7 +10,8 @@
|
||||||
font-size: var(--size-step-2);
|
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%);
|
max-inline-size: var(--max-img-width, 100%);
|
||||||
block-size: auto;
|
block-size: auto;
|
||||||
aspect-ratio: 16/9;
|
aspect-ratio: 16/9;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue