Files
schnittfest/assets/scss/_work_entry.scss
T
2026-10-14 19:29:31 +02:00

96 lines
2.1 KiB
SCSS

@use "variables" as *;
.take {
counter-increment: take;
display: grid;
gap: 32px;
align-items: center;
@include md {
grid-template-columns: 4fr 8fr;
gap: 64px;
&:nth-child(even) {
grid-template-columns: 8fr 4fr;
.take__info { order: 2; }
.take__screen { order: 1; transform: rotate(1.5deg); }
}
}
&__info {
position: relative;
}
&__label {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 14px;
border: 2px solid $beige;
border-radius: 8px;
font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
font-size: 13px;
letter-spacing: 0.12em;
text-transform: uppercase;
&::after {
content: counter(take, decimal-leading-zero);
padding-left: 8px;
border-left: 2px solid $beige;
color: $yellow;
}
}
&__title {
margin-top: 20px;
font-size: clamp(32px, 4.5vw, 56px);
line-height: 1.05;
font-weight: 800;
letter-spacing: -0.03em;
}
&__text {
margin-top: 16px;
color: rgba($beige, 0.75);
}
&__screen {
position: relative;
aspect-ratio: 16 / 9;
border: 3px solid $beige;
border-radius: $radius;
overflow: hidden;
background: #000;
transform: rotate(-1.5deg);
transition: transform 0.5s $ease, box-shadow 0.5s $ease;
box-shadow: 10px 10px 0 var(--take-color, #{$red});
}
&:hover &__screen {
transform: rotate(0) scale(1.02);
box-shadow: 16px 16px 0 var(--take-color, #{$red});
}
&:nth-child(4n+1) { --take-color: #{$pink}; }
&:nth-child(4n+2) { --take-color: #{$red}; }
&:nth-child(4n+3) { --take-color: #{$orange}; }
&:nth-child(4n+4) { --take-color: #{$yellow}; }
&:hover &__title {
color: var(--take-color);
}
&__title {
transition: color 0.3s;
}
&__video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: 0;
}
}