This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
redemption/source/css/base/_font.scss

33 lines
944 B
SCSS
Raw Normal View History

@charset "UTF-8";
2022-01-19 17:34:41 +08:00
html {
font-variant-numeric: tabular-nums;
-webkit-font-smoothing: antialiased;
font-size: 16px;
2022-01-19 21:24:32 +08:00
// // =========== 移动端 ===========
// @media (max-width: 870px) {
// font-size: 16px;
// }
2022-01-19 18:53:46 +08:00
// // =========== 桌面端 ===========
// @media (min-width: 870px) and (max-width: 2048px) {
// font-size: 16px;
// }
}
2022-01-19 17:34:41 +08:00
// 衬线字体
2022-01-19 21:24:32 +08:00
[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;
}
2022-01-19 17:34:41 +08:00
// 无衬线字体
2022-01-19 21:24:32 +08:00
[data-font="sans"] {
font-family: -apple-system, BlinksMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
2022-01-19 21:24:32 +08:00
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
font-weight: 400;
2022-01-19 21:24:32 +08:00
}