Skip to content

Commit 0cd403e

Browse files
committed
fix(landing): stabilize light mode (no transparent gradients)
1 parent 13ec267 commit 0cd403e

3 files changed

Lines changed: 5 additions & 39 deletions

File tree

‎apps/web/src/components/landing/CTASection.vue‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,6 @@ function trackPricingClick() {
141141
}
142142
143143
:global(.body--light) .cta-content h2 {
144-
background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%) !important;
145-
-webkit-background-clip: text !important;
146-
background-clip: text !important;
147-
-webkit-text-fill-color: transparent !important;
148-
}
149-
150-
:global(html[data-light-safe="1"] body.body--light) .cta-content h2 {
151144
background: none !important;
152145
-webkit-background-clip: initial !important;
153146
background-clip: initial !important;
@@ -163,4 +156,3 @@ function trackPricingClick() {
163156
color: var(--text-primary) !important;
164157
}
165158
</style>
166-

‎apps/web/src/components/landing/HeroSection.vue‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ onMounted(async () => {
619619
color: var(--text-primary) !important;
620620
}
621621
622-
:global(html[data-light-safe="1"] body.body--light) .hero-title .title-line-1 .word .gradient-word {
622+
:global(.body--light) .hero-title .title-line-1 .word .gradient-word {
623623
background: none !important;
624624
-webkit-background-clip: initial !important;
625625
background-clip: initial !important;
@@ -634,13 +634,6 @@ onMounted(async () => {
634634
}
635635
636636
:global(.body--light) .hero-title .title-line-2.colorized strong {
637-
background: linear-gradient(135deg, #0d9488 0%, #00d4aa 100%) !important;
638-
-webkit-background-clip: text !important;
639-
background-clip: text !important;
640-
-webkit-text-fill-color: transparent !important;
641-
}
642-
643-
:global(html[data-light-safe="1"] body.body--light) .hero-title .title-line-2.colorized strong {
644637
background: none !important;
645638
-webkit-background-clip: initial !important;
646639
background-clip: initial !important;

‎apps/web/src/css/app.scss‎

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,14 +1893,12 @@ body.body--light {
18931893
}
18941894

18951895
// ============================================
1896-
// Light Safe Mode (Landing)
1897-
// Prevent light-mode flicker in calm presets by avoiding transparent-fill gradients
1898-
// and forcing key top-of-landing reveal elements visible.
1899-
// Enabled via html[data-light-safe="1"] set by the theme store.
1896+
// Landing Page Light Mode Stability
1897+
// Avoid transparent-fill gradients and heavy backdrop-filter effects in light mode
1898+
// (Chrome can intermittently render transparent text as invisible).
19001899
// ============================================
19011900

1902-
html[data-light-safe="1"] body.body--light {
1903-
// Prefer solid text in light mode to avoid intermittent transparent rendering in Chrome.
1901+
body.body--light {
19041902
.landing-page {
19051903
.gradient-text,
19061904
.gradient-word,
@@ -1912,27 +1910,10 @@ html[data-light-safe="1"] body.body--light {
19121910
animation: none !important;
19131911
}
19141912

1915-
// Disable backdrop-filter effects in light-safe mode (can cause flicker on Chrome).
19161913
* {
19171914
backdrop-filter: none !important;
19181915
}
19191916
}
1920-
1921-
// CrossPlatformShowcase: avoid reveal flicker (opacity 0 -> 1).
1922-
.cross-platform-section {
1923-
.badge,
1924-
.iphone-showcase,
1925-
.showcase-content {
1926-
opacity: 1 !important;
1927-
transform: none !important;
1928-
}
1929-
}
1930-
1931-
// Hero DAG labels: never start hidden.
1932-
.hero-dag-visualization .node-label {
1933-
opacity: 1 !important;
1934-
animation: none !important;
1935-
}
19361917
}
19371918

19381919

0 commit comments

Comments
 (0)