字体调整
This commit is contained in:
+10
-9
@@ -1,27 +1,28 @@
|
|||||||
/* ===== style-1.css - 全局基础 ===== */
|
/* ===== style-1.css - 全局基础 ===== */
|
||||||
|
|
||||||
/* ---------- 字体定义 ---------- */
|
/* ---------- 字体定义 ---------- */
|
||||||
/* 自托管 HarmonyOS Sans 字体 */
|
/* 自托管 HarmonyOS Sans SC Regular */
|
||||||
|
|
||||||
/* 中文/英文:HarmonyOS Sans SC Regular */
|
/* 中英文:HarmonyOS Sans SC Regular */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'HarmonyOS Sans SC';
|
font-family: 'HarmonyOS Sans SC';
|
||||||
src: url('/static/fonts/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
|
src: url('./fonts/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 数字专用:HarmonyOS Sans Light */
|
/* 数字专用:复用 HarmonyOS Sans SC Regular(因 Light 版本缺失) */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'HarmonyOS Sans';
|
font-family: 'HarmonyOS Sans';
|
||||||
src: url('/static/fonts/HarmonyOS_Sans_Light.ttf') format('truetype');
|
src: url('./fonts/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 后备:如果自托管字体加载失败,使用系统字体 */
|
/* 后备:如果自托管字体加载失败,使用系统字体 */
|
||||||
|
|
||||||
/* ---------- 重置 ---------- */
|
/* ---------- 重置 ---------- */
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -37,7 +38,7 @@ body {
|
|||||||
color: #e0e0e0;
|
color: #e0e0e0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------- 数字专用字体(使用 HarmonyOS Sans Light) ---------- */
|
/* ---------- 数字专用字体(使用 HarmonyOS Sans) ---------- */
|
||||||
.digit,
|
.digit,
|
||||||
.big-number,
|
.big-number,
|
||||||
.remote-port,
|
.remote-port,
|
||||||
@@ -48,18 +49,18 @@ body {
|
|||||||
.login-btn,
|
.login-btn,
|
||||||
.save-btn,
|
.save-btn,
|
||||||
.btn-confirm {
|
.btn-confirm {
|
||||||
font-weight: 300 !important; /* Light 字重 */
|
font-weight: 300 !important;
|
||||||
letter-spacing: 0.02em;
|
letter-spacing: 0.02em;
|
||||||
font-family: 'HarmonyOS Sans', 'JetBrains Mono', monospace;
|
font-family: 'HarmonyOS Sans', 'JetBrains Mono', monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 数字特别加粗(适用于大数字展示)——但 Light 本身就细,这里加大字重覆盖 */
|
/* 数字特别加粗(适用于大数字展示) */
|
||||||
.big-number {
|
.big-number {
|
||||||
font-weight: 600 !important;
|
font-weight: 600 !important;
|
||||||
letter-spacing: -0.01em;
|
letter-spacing: -0.01em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 代码/端口类数字使用等宽字体,但保持 Light 风格 */
|
/* 代码/端口类数字使用等宽字体,但保持 HarmonyOS Sans 风格 */
|
||||||
.digit,
|
.digit,
|
||||||
.remote-port,
|
.remote-port,
|
||||||
.proxy-addr {
|
.proxy-addr {
|
||||||
|
|||||||
Reference in New Issue
Block a user