Skip to content

Commit

Permalink
Create simple-font.css
Browse files Browse the repository at this point in the history
新增精简字体规格定义的常规CSS文件,使用 font-display 属性增强交互体验
  • Loading branch information
CodePlayer authored Jun 3, 2019
1 parent f6c6de6 commit 5859ed2
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* Noto Sans CJK SC */

@font-face {
font-family: 'Noto Sans CJK SC';
font-style: normal;
font-weight: 400;
font-display: fallback;
src: local('☺'), url('NotoSansCJKsc-Regular.woff2') format('woff2'), url('NotoSansCJKsc-Regular.woff') format('woff'), url('NotoSansCJKsc-Regular.otf') format('opentype');
}

@font-face {
font-family: 'Noto Sans CJK SC';
font-style: normal;
font-weight: 100;
font-display: fallback;
src: local('☺'), url('NotoSansCJKsc-Thin.woff2') format('woff2'), url('NotoSansCJKsc-Thin.woff') format('woff'), url('NotoSansCJKsc-Thin.otf') format('opentype');
}

@font-face {
font-family: 'Noto Sans CJK SC';
font-style: normal;
font-weight: 500;
font-display: fallback;
src: local('☺'), url('NotoSansCJKsc-Medium.woff2') format('woff2'), url('NotoSansCJKsc-Medium.woff') format('woff'), url('NotoSansCJKsc-Medium.otf') format('opentype');
}

@font-face {
font-family: 'Noto Sans CJK SC';
font-style: normal;
font-weight: 700;
font-display: fallback;
src: local('☺'), url('NotoSansCJKsc-Bold.woff2') format('woff2'), url('NotoSansCJKsc-Bold.woff') format('woff'), url('NotoSansCJKsc-Bold.otf') format('opentype');
}

0 comments on commit 5859ed2

Please sign in to comment.