From 7a19ec9d98caeab9eadb1ab64943d6540849a0d2 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 12 Sep 2025 20:04:25 +0800 Subject: perf: replace external link icon with a symbol Former-commit-id: ac57ae63dec745b7dc140950176e817aa9b7743e --- assets/css/_markdown.scss | 14 ++++++-------- static/img/external-link.svg | 7 ------- 2 files changed, 6 insertions(+), 15 deletions(-) delete mode 100644 static/img/external-link.svg diff --git a/assets/css/_markdown.scss b/assets/css/_markdown.scss index e66ad2c1..bb30f455 100644 --- a/assets/css/_markdown.scss +++ b/assets/css/_markdown.scss @@ -24,15 +24,13 @@ $em-text-color: #889E73; } &.external-link::after { - content: ''; + content: '↗'; display: inline-block; - width: 0.9em; - height: 0.9em; - background-image: url('/img/external-link.svg'); - background-size: cover; - @media (prefers-color-scheme: dark) { - filter: invert(1); - } + font-size: 70%; + margin-left: 0.05em; + color: var(--secondary-text-color); + vertical-align: middle; + font-weight: 800; } } diff --git a/static/img/external-link.svg b/static/img/external-link.svg deleted file mode 100644 index ed2483aa..00000000 --- a/static/img/external-link.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file -- cgit v1.2.3