add responsive and scroll behaviour changes

This commit is contained in:
zoronjiermin committed 2026-04-30 09:39:32 +02:00
1 parent 2eea587e8b
commit 283a7a5214
22 files changed
+294 -268

No files matched your search

+14 -67
View File
@@ -5,50 +5,6 @@
background: var(--theme-bg);
}
.discovery-topbar {
position: fixed;
top: clamp(0.75rem, 2.1vw, 1.4rem);
right: var(--page-x);
left: var(--page-x);
z-index: 997;
min-height: 44px;
margin-bottom: 0;
pointer-events: none;
}
.discovery-back-link {
display: inline-flex;
align-items: center;
gap: 0.65rem;
min-height: 44px;
padding: 0;
border: 0;
background: transparent;
color: var(--theme-text);
cursor: pointer;
font-size: var(--text-sm);
pointer-events: auto;
transition:
opacity var(--duration-med) var(--ease-out),
transform var(--duration-med) var(--ease-out);
}
.discovery-back-link:hover,
.discovery-back-link:focus-visible {
opacity: 0.68;
transform: translateX(-0.2rem);
}
.discovery-back-arrow {
display: inline-block;
width: 1rem;
height: 1rem;
flex: 0 0 auto;
background: currentColor;
-webkit-mask: url("/icon-arrow-left.svg") center / contain no-repeat;
mask: url("/icon-arrow-left.svg") center / contain no-repeat;
}
.discovery-kicker,
.discovery-label,
.discovery-price-row span,
@@ -88,7 +44,7 @@
top: clamp(6.5rem, 11vw, 9rem);
left: 0;
z-index: 5;
width: min(34vw, 540px);
width: min(26vw, 390px);
min-width: 0;
}
@@ -96,7 +52,7 @@
max-width: 9ch;
margin: clamp(0.75rem, 1.5vw, 1.15rem) 0 clamp(1rem, 2vw, 1.4rem);
color: var(--theme-text);
font-size: clamp(3.35rem, 6.2vw, 7.6rem);
font-size: clamp(2.6rem, 5.1vw, 6.4rem);
line-height: 0.9;
font-weight: 300;
letter-spacing: 0;
@@ -115,14 +71,14 @@
.discovery-hero-visual {
position: relative;
grid-column: 5 / 10;
grid-column: 4 / 10;
grid-row: 1;
justify-self: center;
align-self: center;
z-index: 1;
display: grid;
place-items: center;
justify-items: end;
justify-items: center;
width: 100%;
min-height: inherit;
margin: 0;
@@ -133,11 +89,11 @@
position: relative;
z-index: 2;
display: block;
width: min(100%, 520px);
height: min(56svh, 640px);
max-height: min(68svh, 760px);
border: 1px solid var(--theme-border);
object-fit: cover;
width: min(100%, 600px);
height: auto;
max-height: min(62svh, 700px);
border: 0;
object-fit: contain;
object-position: center;
filter: saturate(0.92) contrast(1.04) drop-shadow(0 34px 72px rgba(0, 0, 0, 0.42));
}
@@ -378,13 +334,12 @@
.discovery-benefit {
display: grid;
grid-template-columns: 1.75rem minmax(0, 1fr);
grid-template-columns: minmax(0, 1fr);
gap: var(--gap-sm);
align-items: start;
padding-top: 1rem;
}
.discovery-benefit-icon,
.discovery-comparison-icon {
display: inline-flex;
align-items: center;
@@ -663,8 +618,8 @@
}
.discovery-hero-visual img {
width: min(100%, 480px);
height: 100%;
width: min(74%, 430px);
height: auto;
max-height: 100%;
}
@@ -688,13 +643,6 @@
}
@media (max-width: 820px) {
.discovery-topbar {
top: clamp(4.35rem, 14vw, 5.05rem);
z-index: 999;
right: clamp(0.75rem, 4vw, 1rem);
left: clamp(0.75rem, 4vw, 1rem);
}
.discovery-hero {
grid-template-columns: 1fr;
gap: clamp(0.75rem, 2vw, 1rem);
@@ -735,7 +683,7 @@
}
.discovery-hero-visual img {
width: 100%;
width: min(82%, 320px);
}
.discovery-panel-facts,
@@ -826,8 +774,7 @@
@media (prefers-reduced-motion: reduce) {
.discovery-primary-btn,
.discovery-product-card,
.discovery-product-image img,
.discovery-back-link {
.discovery-product-image img {
transition: none;
}
}