Skip to content

Commit 727e12d

Browse files
committed
fix(css): correct globe icon selector — bare svg direct child not .md-nav__icon span
1 parent 92fc2ad commit 727e12d

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

docs/stylesheets/extra.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -774,13 +774,12 @@ body,
774774

775775
/* ============================================================
776776
HIDE MATERIAL'S GLOBE ICON ON EXTERNAL NAV LINKS ONLY
777-
Material injects a .md-nav__icon globe SVG on every nav link
778-
that opens in a new tab (external URLs). Internal page links
779-
have frontmatter icons (icon: material/...) using the same
780-
.md-nav__icon structure — we must NOT hide those.
781-
Targeting [target="_blank"] isolates only the external links.
777+
The globe is a bare <svg> direct child of .md-nav__link on
778+
external URLs. Internal page icons (icon: material/...) are
779+
inside span.md-nav__icon — a completely different element —
780+
so targeting > svg only on [target="_blank"] is safe.
782781
============================================================ */
783-
.md-nav__link[target="_blank"] .md-nav__icon {
782+
.md-nav__link[target="_blank"] > svg {
784783
display: none !important;
785784
}
786785

0 commit comments

Comments
 (0)