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