From c59655a5857829880d5da96c3ea2109e568af997 Mon Sep 17 00:00:00 2001 From: hehh Date: Mon, 24 Nov 2025 02:28:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor(css):=20=E7=A7=BB=E9=99=A4=E5=86=97?= =?UTF-8?q?=E4=BD=99=E7=9A=84=E6=A0=B7=E5=BC=8F=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了 :root 中关于 .i-text 的重复样式 - 简化了夜间模式下 strong 元素的背景色设置 - 统一了文本颜色的处理方式 - 提高了 CSS 文件的可维护性 - 减少了不必要的 !important 使用 - 优化了主题切换相关的样式逻辑 --- css/about.css | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/css/about.css b/css/about.css index ecedff7..55466cd 100644 --- a/css/about.css +++ b/css/about.css @@ -3003,21 +3003,6 @@ body { -webkit-text-fill-color: initial !important; color: #374151 !important; } -:root { -:not([data-theme="night"]) .i-text strong { - background: none !important; - -webkit-background-clip: initial !important; - background-clip: initial !important; - -webkit-text-fill-color: initial !important; - color: #111827 !important; -} -:not([data-theme="night"]) .i-text span:not(.i-emoji) { - background: none !important; - -webkit-background-clip: initial !important; - background-clip: initial !important; - -webkit-text-fill-color: initial !important; - color: #374151 !important; -} [data-theme="night"] .i-text strong { background: var(--gradient-1) !important;