From 225f675dbe64e9ccf135c621dc98b3800158a4b3 Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 13 Aug 2026 13:34:54 +0800 Subject: [PATCH 1/2] docs: refine documentation theme styles --- website/theme/index.scss | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/website/theme/index.scss b/website/theme/index.scss index 4de65755..f6b892df 100644 --- a/website/theme/index.scss +++ b/website/theme/index.scss @@ -1,11 +1,5 @@ :root { - --rp-c-brand: #ff5e00; - --rp-c-brand-dark: var(--rp-c-brand); - --rp-c-brand-darker: #ff704d; - --rp-c-brand-light: #ff7524; - --rp-c-brand-lighter: #ff7524; - --rp-c-link: var(--rp-c-brand); - --rp-c-brand-tint: rgba(255, 94, 0, 0.07); + --rp-c-text-code: var(--rp-c-text-1); } .dark { @@ -18,3 +12,31 @@ width: 10vw !important; } } + +.rp-doc { + .rp-link, + .rp-link code { + color: inherit; + text-decoration-line: underline; + text-underline-offset: 2px; + text-decoration-color: rgba(0, 0, 0, 0.25); + + &:hover { + opacity: 1; + text-decoration-color: currentColor; + border-bottom: none !important; + } + } +} + +.dark { + .rp-doc { + .rp-link { + text-decoration-color: rgba(255, 255, 255, 0.5); + } + + &:hover { + text-decoration-color: currentColor; + } + } +} From b1cae420090577ee4b92c058f2d5f6a627ea009b Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 13 Aug 2026 13:41:54 +0800 Subject: [PATCH 2/2] fix --- website/theme/index.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/theme/index.scss b/website/theme/index.scss index f6b892df..e9b4f959 100644 --- a/website/theme/index.scss +++ b/website/theme/index.scss @@ -33,10 +33,10 @@ .rp-doc { .rp-link { text-decoration-color: rgba(255, 255, 255, 0.5); - } - &:hover { - text-decoration-color: currentColor; + &:hover { + text-decoration-color: currentColor; + } } } }