File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments