41 lines
1.4 KiB
SCSS
41 lines
1.4 KiB
SCSS
@charset "UTF-8";
|
|
|
|
html {
|
|
font-variant-numeric: tabular-nums;
|
|
-webkit-font-smoothing: antialiased;
|
|
font-size: 16px;
|
|
|
|
// =========== 移动端 ===========
|
|
@media (max-width: 870px) {
|
|
font-size: 18px;
|
|
font-family: -apple-system, BlinksMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
'Noto Sans', serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
'Noto Color Emoji';
|
|
font-weight: 500;
|
|
}
|
|
|
|
// =========== 桌面端 ===========
|
|
@media (min-width: 870px) and (max-width: 2048px) {
|
|
font-size: 16px;
|
|
font-family: -apple-system, BlinksMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
'Noto Color Emoji';
|
|
font-weight: 400;
|
|
}
|
|
}
|
|
|
|
// 衬线字体
|
|
[data-font="serif"] {
|
|
font-family: -apple-system, BlinksMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
'Noto Sans', serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
'Noto Color Emoji';
|
|
font-weight: 500;
|
|
}
|
|
|
|
// 无衬线字体
|
|
[data-font="sans"] {
|
|
font-family: -apple-system, BlinksMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
'Noto Color Emoji';
|
|
font-weight: 400;
|
|
} |