Fade garden promo flower behind overlapping text

Ryph-Run: r-02c72dd80d
This commit is contained in:
Ada
2026-10-21 17:15:43 +02:00
committed by Rūdolfs Ošiņš
parent 2f337534f4
commit e41de09a55
+25 -4
View File
@@ -408,13 +408,30 @@
gap: 2rem;
padding: 2rem;
margin-bottom: 6rem;
background:
url("/marketing/images/garden.png") no-repeat right center,
var(--color-accent-citrus-500);
background-size: cover;
position: relative;
isolation: isolate;
overflow: hidden;
container-type: inline-size;
background-color: var(--color-accent-citrus-500);
border-radius: var(--border-radius-tiny);
}
.garden-promo::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: url("/marketing/images/garden.png") no-repeat right center;
background-size: cover;
transition: opacity 0.2s ease;
}
@container (max-width: 48rem) {
.garden-promo::before {
opacity: 0.4;
}
}
.garden-promo-text h3,
.garden-promo-text p {
margin: 0;
@@ -456,6 +473,10 @@
aspect-ratio: 3 / 2;
}
.garden-promo::before {
opacity: 0.4;
}
.garden-promo {
flex-direction: column;
align-items: flex-start;