From 8cc94e91f04e16edcd3038a03c3541a844c1a4fb Mon Sep 17 00:00:00 2001 From: HomeDash Bot Date: Sat, 12 Sep 2026 18:35:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E9=A1=B5=E8=84=9A=E6=96=87=E5=AD=97?= =?UTF-8?q?=E5=8A=A0=E6=B7=B1=20=E2=80=94=E2=80=94=20=E5=A4=87=E6=A1=88?= =?UTF-8?q?=E5=8F=B7=20#94a3b8=E2=86=92#475569=E3=80=81=E4=B8=80=E8=A8=80?= =?UTF-8?q?=20#b6c2d2=E2=86=92#64748b?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用户反馈「文字颜色过浅」。实测前景色与亮度: 备案号/分隔符 rgb(148,163,184)=#94a3b8(亮度 160) 每日一言 rgb(182,194,210)=#b6c2d2(亮度 187) 均为 11px 小字 + 透明背景(叠在浅色页面底图上),对比度偏低、观感发虚。 改为中性 slate:#475569(对白底约 8.9:1)、一言 #64748b; 并去掉一言的斜体(小字号下进一步降低可读性);hover 加深为 #1e293b + 下划线。 深色主题改用 #cbd5e1 / #94a3b8 保持可读。 --- web/navi.css | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/web/navi.css b/web/navi.css index fea9e7f..6404b2b 100644 --- a/web/navi.css +++ b/web/navi.css @@ -2332,3 +2332,32 @@ html[data-theme] body:not(:has(.minimal-home)) footer > .navi-footer > .navi-quo /* workspace:host 固定贴底不再出血 */ html[data-theme] .navi-footer-host { bottom: 0 !important; } html[data-theme] .navi-footer-host > .navi-footer { max-height: 20px !important; } + +/* ═══ v78:页脚文字加深(用户反馈"文字颜色过浅")═══ + 实测前景色:备案号/分隔符 #94a3b8(亮度 160)、每日一言 #b6c2d2(亮度 187), + 11px 小字 + 透明背景(叠在浅色页面底图上)→ 对比度不足,观感发虚。 + 加深为中性 slate:#475569(亮度 84,对白底约 8.9:1)与 #64748b(亮度 105)。 + 深色主题相应使用亮色系 #cbd5e1 / #94a3b8,保持可读。 */ +html[data-theme] .navi-footer, +html[data-theme] .navi-footer a, +html[data-theme] .navi-footer .navi-footer-sep, +html[data-theme] body .navi-footer, +html[data-theme] body .navi-footer a, +html[data-theme] body .navi-footer .navi-footer-sep, +html[data-theme] body:has(.minimal-home) .navi-footer-host > .navi-footer, +html[data-theme] body:has(.minimal-home) .navi-footer-host > .navi-footer > a, +html[data-theme] body:not(:has(.minimal-home)) footer > .navi-footer { + color: #475569 !important; +} +html[data-theme] .navi-footer .navi-quote, +html[data-theme] body .navi-footer .navi-quote, +html[data-theme] body:has(.minimal-home) .navi-footer-host .navi-quote { + color: #64748b !important; + font-style: normal !important; /* 斜体在小字号下进一步降低可读性 */ +} +html[data-theme] .navi-footer a:hover { color: #1e293b !important; text-decoration: underline !important; } +/* 深色主题:保持亮色可读 */ +html.navi-dark[data-theme] .navi-footer, +html.navi-dark[data-theme] .navi-footer a, +html.navi-dark[data-theme] .navi-footer .navi-footer-sep { color: #cbd5e1 !important; } +html.navi-dark[data-theme] .navi-footer .navi-quote { color: #94a3b8 !important; }