提升版本切换可见性:悬浮入口 + 手机端适配
Deploy Resume / deploy (push) Successful in 22s

- 简历页固定右上角「切换简历版本」悬浮入口(打印隐藏),替代仅页脚的弱入口
- 简历页 viewport 改为 width=794,手机整页缩放显示不再横向裁切
- 导航页窄屏下 2x2 矩阵改为单列堆叠
This commit is contained in:
2026-11-03 12:31:05 +08:00
parent d08ef09b3a
commit cc177fcb9b
3 changed files with 46 additions and 2 deletions
+23 -1
View File
@@ -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;
}
}
+21
View File
@@ -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;
}
}
+2 -1
View File
@@ -2,7 +2,7 @@
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=794">
<title>{{meta.title}}</title>
<meta name="description" content="{{meta.description}}">
<meta property="og:title" content="{{meta.title}}">
@@ -14,6 +14,7 @@
<link rel="stylesheet" href="/css/theme-{{theme}}.css">
</head>
<body>
<a class="version-switch" href="/">⇄ 切换简历版本</a>
<div class="page">
{{{headerHtml}}}
{{{bodyHtml}}}