From bef3d5ce77740018e48f8748a90a7e9a1fe9036f Mon Sep 17 00:00:00 2001 From: sendevia Date: Sun, 8 Feb 2026 21:15:42 +0800 Subject: [PATCH] style: update link decoration --- .vitepress/theme/styles/layouts/Article.scss | 7 ++++++- .vitepress/theme/styles/layouts/NotFound.scss | 2 -- .vitepress/theme/styles/main.scss | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.vitepress/theme/styles/layouts/Article.scss b/.vitepress/theme/styles/layouts/Article.scss index e1b5f4a..23ab050 100644 --- a/.vitepress/theme/styles/layouts/Article.scss +++ b/.vitepress/theme/styles/layouts/Article.scss @@ -451,7 +451,12 @@ } a { - text-decoration: underline solid; + text-decoration: underline 2px dotted; + text-underline-offset: 3px; + + &:hover { + text-decoration-style: solid; + } } blockquote { diff --git a/.vitepress/theme/styles/layouts/NotFound.scss b/.vitepress/theme/styles/layouts/NotFound.scss index 013ef00..82c7948 100644 --- a/.vitepress/theme/styles/layouts/NotFound.scss +++ b/.vitepress/theme/styles/layouts/NotFound.scss @@ -30,8 +30,6 @@ h2, a { @include mixin.typescale-style("display-small"); - - text-decoration: none; } } diff --git a/.vitepress/theme/styles/main.scss b/.vitepress/theme/styles/main.scss index 3cf59da..cd1d6d1 100644 --- a/.vitepress/theme/styles/main.scss +++ b/.vitepress/theme/styles/main.scss @@ -122,7 +122,8 @@ a { color: var(--md-sys-color-primary); letter-spacing: 0px; - text-underline-offset: 5px; + text-decoration: underline solid; + text-underline-offset: 6px; code { color: var(--md-sys-color-inverse-primary) !important;