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

27 lines
739 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 17:34:41 +08:00
// 320px 设备
@media (max-width: 320px) {
font-size: 18px;
}
}
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;
}