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

32 lines
894 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;
2022-01-19 18:53:46 +08:00
// =========== 320px 设备 ===========
2022-01-19 17:34:41 +08:00
@media (max-width: 320px) {
2022-01-19 18:53:46 +08:00
font-size: 14px;
}
// =========== 768px 设备 ===========
@media (min-width: 320px) and (max-width: 768px) {
font-size: 16px;
2022-01-19 17:34:41 +08:00
}
}
2022-01-19 17:34:41 +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
// 无衬线字体
[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;
}