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

64 lines
1.2 KiB
SCSS
Raw Normal View History

2026-01-06 15:43:31 +01:00
@mixin figure-16-9{
2026-02-09 18:56:31 +01:00
& > picture,
& > figure{
2026-01-06 15:43:31 +01:00
aspect-ratio: 16/9;
display: flex;
overflow: hidden;
img{
width: 100%;
height: 100%;
object-fit: cover;
transition: cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s;
}
}
2026-01-23 14:21:26 +01:00
}
2026-02-09 13:50:20 +01:00
@mixin figure-3-1(){
2026-02-09 18:56:31 +01:00
& > picture,
2026-02-09 13:50:20 +01:00
& > figure{
aspect-ratio: 3/1;
overflow: hidden;
img{
width: 100%;
height: 100%;
object-fit: cover;
}
}
}
2026-02-09 18:56:31 +01:00
// @mixin figure-2-1(){
// & > picture,
// & > figure{
// aspect-ratio: 2/1;
// overflow: hidden;
// img{
// width: 100%;
// height: 100%;
// object-fit: cover;
// }
// }
// }
2026-02-09 13:50:20 +01:00
2026-02-09 18:56:31 +01:00
// @mixin figure-16-9-hover{
// figure{
// aspect-ratio: 16/9;
// display: flex;
// overflow: hidden;
// img{
// width: 100%;
// height: 100%;
// object-fit: cover;
// transition: cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s;
2026-02-09 13:50:20 +01:00
2026-02-09 18:56:31 +01:00
// }
// }
// &:hover{
// figure img{ transform: scale(1.05); }
// }
// }