Skip to content

Commit c3a3d24

Browse files
cvanelterenclaude
andcommitted
fix: restore brand text on iOS by isolating from backdrop-filter
Shibuya's .sy-head-blur uses -webkit-backdrop-filter: blur(), which causes -webkit-background-clip: text on sibling elements to silently fail in iOS Safari — making the "UltraPlot" nav link invisible. Adding isolation: isolate to .sy-head-brand creates a new stacking context, shielding the gradient text compositing from the blur layer. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent be2371b commit c3a3d24

1 file changed

Lines changed: 21 additions & 24 deletions

File tree

docs/_static/custom.css

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@
8484
gap: 0.5rem;
8585
padding: 0.2rem 0.04rem 0.2rem;
8686
line-height: 1.25;
87+
/* Shibuya's .sy-head-blur sibling uses -webkit-backdrop-filter: blur().
88+
On iOS Safari, backdrop-filter on any element in the same stacking
89+
context breaks -webkit-background-clip: text in descendants, making
90+
the brand text invisible. isolation: isolate creates a new stacking
91+
context here so the gradient clip composites independently. */
92+
isolation: isolate;
8793
}
8894

8995
.sy-head .sy-head-brand strong {
@@ -92,31 +98,22 @@
9298
letter-spacing: 0.065em;
9399
text-transform: uppercase;
94100
line-height: 1.25;
95-
/* Solid colour fallback — always applied first. On browsers that support
96-
background-clip: text the @supports block below overrides this with the
97-
gradient. On iOS Safari or any browser where the gradient clip fails the
98-
text remains visible in this teal colour instead of disappearing. */
99101
color: #138a73;
100-
}
101-
102-
@supports (-webkit-background-clip: text) or (background-clip: text) {
103-
.sy-head .sy-head-brand strong {
104-
background-image: linear-gradient(
105-
90deg,
106-
#0f6d5f 0%,
107-
#11806b 12%,
108-
#139378 24%,
109-
#15a685 36%,
110-
#17b793 48%,
111-
#19a988 60%,
112-
#1a9c7d 72%,
113-
#1c8f73 84%,
114-
#1e8268 100%
115-
);
116-
background-clip: text;
117-
-webkit-background-clip: text;
118-
-webkit-text-fill-color: transparent;
119-
}
102+
background-image: linear-gradient(
103+
90deg,
104+
#0f6d5f 0%,
105+
#11806b 12%,
106+
#139378 24%,
107+
#15a685 36%,
108+
#17b793 48%,
109+
#19a988 60%,
110+
#1a9c7d 72%,
111+
#1c8f73 84%,
112+
#1e8268 100%
113+
);
114+
background-clip: text;
115+
-webkit-background-clip: text;
116+
-webkit-text-fill-color: transparent;
120117
}
121118

122119
@media (min-width: 768px) {

0 commit comments

Comments
 (0)