fix(ui): 页脚文字加深 —— 备案号 #94a3b8→#475569、一言 #b6c2d2→#64748b

用户反馈「文字颜色过浅」。实测前景色与亮度:
  备案号/分隔符 rgb(148,163,184)=#94a3b8(亮度 160)
  每日一言     rgb(182,194,210)=#b6c2d2(亮度 187)
均为 11px 小字 + 透明背景(叠在浅色页面底图上),对比度偏低、观感发虚。
改为中性 slate:#475569(对白底约 8.9:1)、一言 #64748b;
并去掉一言的斜体(小字号下进一步降低可读性);hover 加深为 #1e293b + 下划线。
深色主题改用 #cbd5e1 / #94a3b8 保持可读。
This commit is contained in:
HomeDash Bot
2026-09-12 18:35:56 +08:00
parent 175788e4eb
commit 8cc94e91f0

View File

@ -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; }