Skip to content

Commit 17f8083

Browse files
committed
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.
1 parent 6d700a9 commit 17f8083

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

docs/_static/custom.css

Lines changed: 6 additions & 0 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 {

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def _reset_ultraplot(gallery_conf, fname):
537537
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
538538
# pixels large. Static folder is for CSS and image files. Use ImageMagick to
539539
# convert png to ico on command line with 'convert image.png image.ico'
540-
html_favicon = str(Path("_static") / "logo_blank.svg")
540+
html_favicon = str(Path("_static") / "logo_square.svg")
541541

542542
# -- Options for HTMLHelp output ---------------------------------------------
543543

0 commit comments

Comments
 (0)