@@ -773,33 +773,14 @@ body,
773773
774774
775775/* ============================================================
776- HIDE MATERIAL'S BUILT-IN GLOBE / EXTERNAL-LINK ICON
777- Material injects an inline <svg> globe on every nav link
778- pointing to an external URL — sidebar items AND TOC headings.
779- We already have purpose-built ::before icons for the three
780- Home links (Website, Community, Blog), so suppress the
781- auto-injected globe everywhere else .
776+ 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 .
782782 ============================================================ */
783-
784- /* Left sidebar — primary nav tree */
785- .md-nav--primary .md-nav__link > svg .md-icon ,
786- .md-nav--primary .md-nav__link > .md-ellipsis > svg .md-icon {
787- display : none !important ;
788- }
789-
790- /* Right sidebar — table of contents */
791- .md-nav--secondary .md-nav__link > svg .md-icon ,
792- .md-nav--secondary .md-nav__link > .md-ellipsis > svg .md-icon {
793- display : none !important ;
794- }
795-
796- /* Mobile drawer */
797- .md-nav--integrated .md-nav__link > svg .md-icon {
798- display : none !important ;
799- }
800-
801- /* Broad catch-all for any remaining injected SVG globe in sidebars */
802- .md-sidebar .md-nav__link > svg [viewBox ] {
783+ .md-nav__link [target = "_blank" ] .md-nav__icon {
803784 display : none !important ;
804785}
805786
0 commit comments