From 8fb15861fe1d2259e8dbbd0e4f67741a84cb65ce Mon Sep 17 00:00:00 2001 From: Sakurasan <26715255+Sakurasan@users.noreply.github.com> Date: Thu, 1 Oct 2026 15:22:00 +0800 Subject: [PATCH] =?UTF-8?q?vivid=20=E6=89=8B=E6=9C=BA=E7=AB=AF=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E9=87=8D=E5=81=9A=EF=BC=9A=E5=BA=95=E9=83=A8=E7=8E=BB?= =?UTF-8?q?=E7=92=83=E6=A0=87=E7=AD=BE=E6=A0=8F=E4=B8=80=E6=AC=A1=E7=9B=B4?= =?UTF-8?q?=E8=BE=BE=EF=BC=8C=E6=9B=BF=E6=8E=89=20dock=20+=20=E6=B1=89?= =?UTF-8?q?=E5=A0=A1=20+=20=E4=B8=8A=E6=8B=89=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 五栏目平铺常驻拇指区,当前项分段高亮(与首页工具条分段控件同语言), 44px 触达高度 + :active 缩放反馈,safe-area 适配保留 - 去掉菜单里的 01-05 编号、逐行分隔线与站点描述,导航只做导航 - 明暗切换:手机端挪到页脚 foot-nav 末尾的 ◐(≤720px 显示), 桌面仍走顶栏主题键;QuickShort 的 FAB 底部给标签栏让位 --- frontend/src/ui/yohaku/YohakuFoot.vue | 9 ++ frontend/src/ui/yohaku/YohakuTop.vue | 122 +++++--------------------- frontend/src/ui/yohaku/chrome.css | 121 +++++++++---------------- 3 files changed, 73 insertions(+), 179 deletions(-) diff --git a/frontend/src/ui/yohaku/YohakuFoot.vue b/frontend/src/ui/yohaku/YohakuFoot.vue index 32ae14a..65ec27d 100644 --- a/frontend/src/ui/yohaku/YohakuFoot.vue +++ b/frontend/src/ui/yohaku/YohakuFoot.vue @@ -15,6 +15,13 @@ const social = (site.social_links || []).filter((s) => s && s.url && s.url !== P // 按站主要求去掉了(它只标识当前主题名,本站没有多套主题,属于纯装饰, // 而且固定在底部会挡住内容)。对应的 .switch 样式也一并从 // chrome.css / pages.css 里删除,避免留下死规则。 +// +// 手机端顶栏退场后,明暗切换没有了常驻入口:页脚这枚 ◐ 补位 +// (chrome.css 里 ≤720px 才显示,桌面仍走顶栏的主题键)。 +function toggleTheme() { + const dark = document.documentElement.getAttribute('data-theme') === 'vivid-dark' + site.themeMode = dark ? 'light' : 'dark' +} const links = [ { to: '/', label: '时间线' }, @@ -49,6 +56,8 @@ const links = [ · RSS + · + diff --git a/frontend/src/ui/yohaku/YohakuTop.vue b/frontend/src/ui/yohaku/YohakuTop.vue index 5a7f719..d52d028 100644 --- a/frontend/src/ui/yohaku/YohakuTop.vue +++ b/frontend/src/ui/yohaku/YohakuTop.vue @@ -1,31 +1,26 @@