From 71226be6730013bed817cc35acd92f6a6fcd78e4 Mon Sep 17 00:00:00 2001 From: Ad-closeNN <1709301095@qq.com> Date: Tue, 3 Mar 2026 18:17:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(style):=20=E4=BF=AE=E5=A4=8D=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2=E8=BF=87=E4=BA=AE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/main.css | 3 ++- src/styles/markdown.css | 1 + src/styles/variables.styl | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/styles/main.css b/src/styles/main.css index 2fbc3da..536dc19 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -157,7 +157,8 @@ } ::selection { - background-color: var(--selection-bg) + background-color: var(--selection-bg); + color: inherit; } .dash-line { diff --git a/src/styles/markdown.css b/src/styles/markdown.css index 1046ccd..3951656 100644 --- a/src/styles/markdown.css +++ b/src/styles/markdown.css @@ -119,6 +119,7 @@ ::selection { @apply bg-[var(--codeblock-selection)]; + color: inherit; } } diff --git a/src/styles/variables.styl b/src/styles/variables.styl index 9bc5583..58a97ae 100644 --- a/src/styles/variables.styl +++ b/src/styles/variables.styl @@ -54,7 +54,7 @@ define({ --inline-code-bg: var(--btn-regular-bg) --inline-code-color: var(--btn-content) - --selection-bg: oklch(0.90 0.05 var(--hue)) oklch(0.40 0.08 var(--hue)) + --selection-bg: oklch(0.75 0.08 var(--hue)) oklch(0.40 0.08 var(--hue)) --codeblock-selection: oklch(0.40 0.08 var(--hue)) --codeblock-bg: oklch(0.17 0.015 var(--hue)) oklch(0.17 0.015 var(--hue)) --codeblock-topbar-bg: oklch(0.3 0.02 var(--hue)) oklch(0.12 0.015 var(--hue))