From 5f3aac95c5a9046f63c103139ffafd892cac1669 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 15 Mar 2023 08:24:36 +0800 Subject: [PATCH] a11y: add hover underscore for main text links --- .../theme-default/styles/components/custom-block.css | 4 +--- src/client/theme-default/styles/components/vp-doc.css | 7 +++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/client/theme-default/styles/components/custom-block.css b/src/client/theme-default/styles/components/custom-block.css index 7a7520d2..aa18178d 100644 --- a/src/client/theme-default/styles/components/custom-block.css +++ b/src/client/theme-default/styles/components/custom-block.css @@ -78,12 +78,10 @@ .custom-block a { color: inherit; font-weight: 600; - text-decoration: underline; - transition: opacity 0.25s; } .custom-block a:hover { - opacity: 0.6; + text-decoration: underline; } .custom-block code { diff --git a/src/client/theme-default/styles/components/vp-doc.css b/src/client/theme-default/styles/components/vp-doc.css index 5c8349b7..963674d4 100644 --- a/src/client/theme-default/styles/components/vp-doc.css +++ b/src/client/theme-default/styles/components/vp-doc.css @@ -107,7 +107,8 @@ } .vp-doc a:hover { - color: var(--vp-c-brand-dark); + /* color: var(--vp-c-brand-dark); */ + text-decoration: underline; } .vp-doc strong { @@ -209,12 +210,10 @@ .vp-doc .custom-block a { color: inherit; font-weight: 600; - text-decoration: underline; - transition: opacity 0.25s; } .vp-doc .custom-block a:hover { - opacity: 0.6; + text-decoration: underline; } .vp-doc .custom-block code {