Improve card image sizing
This commit is contained in:
parent
042c31a3c7
commit
0cc6019d89
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
.c-card__image {
|
.c-card__image {
|
||||||
height: auto;
|
height: auto;
|
||||||
|
aspect-ratio: 16/9;
|
||||||
|
object-fit: cover;
|
||||||
background-color: var(--color-grey-500); // fallback while image is loading
|
background-color: var(--color-grey-500); // fallback while image is loading
|
||||||
border-radius: 20px 20px 0 0;
|
border-radius: 20px 20px 0 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue