From cc177fcb9b32c9c33956378097bc2cd1a9e23772 Mon Sep 17 00:00:00 2001 From: wonder Date: Tue, 3 Nov 2026 12:31:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=8D=87=E7=89=88=E6=9C=AC=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=8F=AF=E8=A7=81=E6=80=A7=EF=BC=9A=E6=82=AC=E6=B5=AE?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=20+=20=E6=89=8B=E6=9C=BA=E7=AB=AF=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 简历页固定右上角「切换简历版本」悬浮入口(打印隐藏),替代仅页脚的弱入口 - 简历页 viewport 改为 width=794,手机整页缩放显示不再横向裁切 - 导航页窄屏下 2x2 矩阵改为单列堆叠 --- css/base.css | 24 +++++++++++++++++++++++- css/nav.css | 21 +++++++++++++++++++++ templates/page.html.hbs | 3 ++- 3 files changed, 46 insertions(+), 2 deletions(-) diff --git a/css/base.css b/css/base.css index fbae6ba..6e49976 100644 --- a/css/base.css +++ b/css/base.css @@ -400,6 +400,27 @@ body { height: 20px; } +/* 版本切换悬浮入口(仅屏幕显示,打印隐藏) */ +.version-switch { + position: fixed; + top: 14px; + right: 14px; + z-index: 99; + padding: 7px 16px; + background: #4478DF; + color: #fff; + font-size: 13px; + text-decoration: none; + border-radius: 18px; + box-shadow: 0 2px 10px rgba(68, 120, 223, 0.35); + opacity: 0.92; +} + +.version-switch:hover { + opacity: 1; + text-decoration: none; +} + /* 页脚(仅屏幕显示,打印隐藏) */ .page-footer { display: flex; @@ -455,7 +476,8 @@ body { break-inside: avoid; } - .page-footer { + .page-footer, + .version-switch { display: none !important; } } diff --git a/css/nav.css b/css/nav.css index fd77902..442b26f 100644 --- a/css/nav.css +++ b/css/nav.css @@ -232,3 +232,24 @@ h1 { display: none !important; } } + +/* 窄屏(手机):矩阵改为单列堆叠 */ +@media (max-width: 640px) { + .nav-wrap { + padding: 24px 16px; + } + + .matrix { + grid-template-columns: 1fr; + } + + .matrix-corner, + .matrix-colhead { + display: none; + } + + .matrix-rowhead { + justify-content: flex-start; + padding: 8px 0 0; + } +} diff --git a/templates/page.html.hbs b/templates/page.html.hbs index 59e4422..1ba1456 100644 --- a/templates/page.html.hbs +++ b/templates/page.html.hbs @@ -2,7 +2,7 @@ - + {{meta.title}} @@ -14,6 +14,7 @@ + ⇄ 切换简历版本
{{{headerHtml}}} {{{bodyHtml}}}