index-main/assets/css/components/_figures.scss

24 lines
455 B
SCSS
Raw Normal View History

@mixin figure-16-9 {
& > figure {
aspect-ratio: 16/9;
display: flex;
overflow: hidden;
img,
picture {
width: 100%;
height: 100%;
object-fit: cover;
transition: cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s;
2026-01-06 15:43:31 +01:00
}
}
2026-01-23 14:21:26 +01:00
}
figcaption,
.caption {
font-size: var(--fs-small) !important;
color: var(--color-txt-light);
font-weight: 500;
line-height: 1.1;
margin: calc(var(--spacing) * 0.5) 0 !important;
}