From 4c26383c92e70938a6832fadd3fedba44bcad9f3 Mon Sep 17 00:00:00 2001 From: "Y.D.X." <73375426+YDX-2147483647@users.noreply.github.com> Date: Thu, 28 Mar 2024 10:07:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Annotate=20external=20links=20with=20?= =?UTF-8?q?=F0=9F=94=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/asset/style/extra.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/asset/style/extra.css b/docs/asset/style/extra.css index 7cdfddf..3229820 100644 --- a/docs/asset/style/extra.css +++ b/docs/asset/style/extra.css @@ -20,6 +20,15 @@ text-underline-position: under; } +/* Relies on `hooks/external_link_in_new_tab.py` */ +.md-typeset a[target="_blank"]::after { + content: "🔗"; + + vertical-align: super; + font-size: x-small; + word-break: keep-all; +} + .md-typeset figure>img, .md-typeset figure>a.glightbox[data-type=image] { width: 80%;