mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 20:29:03 +08:00
修复iOS模拟器中文字体显示异常
This commit is contained in:
@@ -181,6 +181,8 @@ function MainContent(): React.JSX.Element {
|
|||||||
algorithm: isDark ? antTheme.darkAlgorithm : antTheme.defaultAlgorithm,
|
algorithm: isDark ? antTheme.darkAlgorithm : antTheme.defaultAlgorithm,
|
||||||
token: {
|
token: {
|
||||||
colorPrimary: brandColor,
|
colorPrimary: brandColor,
|
||||||
|
fontFamily:
|
||||||
|
'"PingFang SC", "Hiragino Sans GB", "Heiti SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
@import "antd/dist/reset.css";
|
@import "antd/dist/reset.css";
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--ss-font-family:
|
||||||
|
"PingFang SC", "Hiragino Sans GB", "Heiti SC", "Noto Sans SC", "Noto Sans CJK SC",
|
||||||
|
"Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
||||||
|
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
||||||
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body,
|
body,
|
||||||
#root {
|
#root {
|
||||||
@@ -9,11 +16,20 @@ body,
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
background: var(--ss-bg-color, #f5f5f5);
|
background: var(--ss-bg-color, #f5f5f5);
|
||||||
|
font-family: var(--ss-font-family);
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
|
text-size-adjust: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
textarea {
|
textarea {
|
||||||
user-select: text;
|
user-select: text;
|
||||||
|
font-family: var(--ss-font-family);
|
||||||
|
}
|
||||||
|
|
||||||
|
button,
|
||||||
|
select {
|
||||||
|
font-family: var(--ss-font-family);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ss-sidebar {
|
.ss-sidebar {
|
||||||
|
|||||||
Reference in New Issue
Block a user