Feature: 解决方案列表 & 网页字体
This commit is contained in:
26
app/assets/css/fonts.css
Normal file
26
app/assets/css/fonts.css
Normal file
@ -0,0 +1,26 @@
|
||||
@font-face {
|
||||
font-family: "Source Han Sans CN";
|
||||
src: url("/fonts/source-han-sans/SourceHanSansCN-Regular-Alphabetic.woff2") format("woff2"),
|
||||
url("/fonts/source-han-sans/SourceHanSansCN-Regular-Alphabetic.woff") format("woff");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Source Han Sans CN";
|
||||
src: url("/fonts/source-han-sans/SourceHanSansCN-Bold-Alphabetic.woff2") format("woff2"),
|
||||
url("/fonts/source-han-sans/SourceHanSansCN-Bold-Alphabetic.woff") format("woff");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Source Han Sans CN";
|
||||
src: url("/fonts/source-han-sans/SourceHanSansCN-Light-Alphabetic.woff2") format("woff2"),
|
||||
url("/fonts/source-han-sans/SourceHanSansCN-Light-Alphabetic.woff") format("woff");
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@ -3,6 +3,7 @@ body,
|
||||
#app {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: var(--font-main);
|
||||
}
|
||||
|
||||
html.dark {
|
||||
@ -14,3 +15,7 @@ a {
|
||||
font-weight: 400;
|
||||
color: var(--el-color-primary);
|
||||
}
|
||||
|
||||
:root {
|
||||
--font-main: "Source Han Sans CN", "Noto Sans CJK SC", "Noto Sans CJK", sans-serif;
|
||||
}
|
||||
Reference in New Issue
Block a user