From 1b9f375c955ce4cb00ad642fec51ee5ffac435f2 Mon Sep 17 00:00:00 2001 From: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Date: Thu, 25 Jan 2024 18:20:40 +1300 Subject: [PATCH] fix: v13.3 docs CSS external link icon workaround mkdocs-material 9.5.5 broke this with their instant nav feature update. They have no plans to make this easier in a compatible manner. --- v13.3/assets/css/customizations.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v13.3/assets/css/customizations.css b/v13.3/assets/css/customizations.css index 49ede009..b7b164fa 100644 --- a/v13.3/assets/css/customizations.css +++ b/v13.3/assets/css/customizations.css @@ -16,8 +16,9 @@ If you want to append instead, switch `::before` to `::after`. src: url('../fonts/external-link.woff') format('woff'); } -/* Matches the two nav link classes that start with `http` `href` values, regular docs pages use relative URLs instead. */ -.md-tabs__link[href^="http"]::before, .md-nav__link[href^="http"]::before { +/* Matches the two nav link classes, but not links with the docs domain (not external) */ +/* https://github.com/docker-mailserver/docker-mailserver/issues/3822 */ +.md-tabs__link[href]:not([href*="docker-mailserver.github.io"])::before, .md-nav__link[href]:not([href*="docker-mailserver.github.io"])::before { display: inline-block; /* treat similar to text */ font-family: 'external-link'; content:'\0041'; /* represents "A" which our font renders as an icon instead of the "A" glyph */