pinned investigation
All checks were successful
Deploy / Deploy to Production (push) Successful in 12s

This commit is contained in:
Julie Blanc 2026-01-23 14:21:26 +01:00
parent 05e49af352
commit bee25e5922
11 changed files with 102 additions and 172 deletions

View file

@ -13,7 +13,7 @@
border-top: var(--border-light);
}
@include figure-16-9();
@include figure-16-9-hover();
.content{
display: flex;

View file

@ -5,7 +5,7 @@
flex-direction: column;
@include figure-16-9();
@include figure-16-9-hover();
.content{
padding: var(--padding-inner);
@ -13,6 +13,23 @@
flex-direction: column;
flex-grow: 2;
}
.pin{
position: absolute;
top: var(--padding-inner);
left: var(--padding-inner);
z-index: 200;
width: 24px;
height: 24px;
border-radius: var(--radius-small);
background-color: rgba(255, 255, 255, 0.27);
display: flex;
align-items: center;
justify-content: center;
svg{
width: 16px;
fill: var(--color-txt);
}
}
.title{
margin-top: calc(var(--spacing)*0.5);

View file

@ -13,7 +13,7 @@
}
@include figure-16-9();
@include figure-16-9-hover();
@media #{$x-small}{

View file

@ -12,6 +12,23 @@
}
}
}
@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;
}
}
&:hover{
figure img{ transform: scale(1.05); }
}