From 1257164c3f69ab3f80e2c87baba7c4d197780a56 Mon Sep 17 00:00:00 2001 From: HomeDash Bot Date: Sat, 12 Sep 2026 07:46:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(theme):=20=E5=A4=87=E6=A1=88=E5=8F=B7?= =?UTF-8?q?=E6=B7=B1=E8=89=B2=E8=8D=AF=E4=B8=B8=20+=20=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E7=94=A8=20background=20=E7=AE=80=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 浏览器规则枚举确认元凶:navi.css 的 html.navi-dark body 用 background 简写 (特异性 0,2,1 > 壁纸规则 0,1,1),简写把 background-image 重置为 initial, 于是壁纸消失。本地已改为仅 background-color + body::before 深色遮罩。 同时按实测补上备案号药丸的深色样式(此前实测仍是 rgba(255,255,255,.55)), 并把内部元素强制透明,避免深底上贴一块白。 实测数据:备案号位于文档最底部(y=1079..1125 / 文档高 1125),与悬浮件无重叠。 --- web/navi.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/web/navi.css b/web/navi.css index 0cf7699..69728dd 100644 --- a/web/navi.css +++ b/web/navi.css @@ -1636,3 +1636,21 @@ html.navi-dark body .navi-ws-modal-title, html.navi-dark body nav.side-bar .side-bar-item { color: #dce6f5 !important; } + +/* 备案号药丸:深色实测发现它仍是 rgba(255,255,255,.55) 的亮色块。 + 这里用更高特异度 + 末尾顺序确保覆盖,并把内部元素强制透明, + 避免出现"深色底上贴一块白"的观感。 */ +html.navi-dark body.navi-dark .navi-footer, +html.navi-dark body.navi-dark .navi-footer-host .navi-footer { + background-color: rgba(20, 31, 49, .92) !important; + border-color: rgba(148, 163, 184, .26) !important; + color: #9fb0c8 !important; + box-shadow: 0 8px 24px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .05) !important; +} +html.navi-dark body.navi-dark .navi-footer *, +html.navi-dark body.navi-dark .navi-footer a, +html.navi-dark body.navi-dark .navi-footer .navi-footer-sep { + background-color: transparent !important; + color: #9fb0c8 !important; +} +html.navi-dark body.navi-dark .navi-footer a:hover { color: #7dd3fc !important; }