From 42967ea77552473860afde9a07644a39b8ee4255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=A1=93=E6=A1=93?= Date: Tue, 7 Mar 2023 22:04:15 +0800 Subject: [PATCH] feat(link): improve user experience with links --- src/partials/link.scss | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/partials/link.scss b/src/partials/link.scss index 96e7856..9300201 100644 --- a/src/partials/link.scss +++ b/src/partials/link.scss @@ -5,9 +5,15 @@ a { text-decoration: none; transition: border .3s ease-in-out; code { - color: inherit; + color: var(--xm-c-deep); } &:hover { border-bottom: 1px solid var(--xm-c-regular); } + &:not([href]) { + color: inherit; + font-weight: normal; + transition: none; + border-bottom: none; + } }