chore: mobile font
This commit is contained in:
@@ -213,7 +213,8 @@
|
||||
|
||||
body {
|
||||
@apply bg-background text-foreground antialiased;
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
/* 增强字体栈:优先 Inter,同时补充安卓/Linux 中文字体 */
|
||||
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
letter-spacing: -0.01em;
|
||||
@@ -223,7 +224,7 @@
|
||||
}
|
||||
|
||||
input, textarea, button, select {
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
|
||||
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif !important;
|
||||
}
|
||||
|
||||
.font-code,
|
||||
@@ -256,21 +257,21 @@
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
/* 正文与描述类文字同步加厚,避免手机端自动淡出造成的纤细感 */
|
||||
/* 正文与描述类文字同步加厚,使用标准字重 500 以匹配静态字体 */
|
||||
p,
|
||||
span:not([class*="icon"]),
|
||||
label,
|
||||
[class*="description"],
|
||||
[class*="muted"],
|
||||
.text-muted-foreground {
|
||||
font-weight: 480;
|
||||
font-weight: 500;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* 针对移动端小字进行强制加粗补偿(400 在手机上易由于笔画过细而消失) */
|
||||
/* 针对移动端小字进行字重补偿,使用标准字重 600 */
|
||||
.text-xs {
|
||||
font-size: 12.5px;
|
||||
font-weight: 550;
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user