commit caeb524f574f5ef45e4b775f6cd3e226ad6916e3
parent 33addb711381db3a71d5ee41176acc619fa64250
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sat, 30 Nov 2019 12:11:26 -0500
Add font settings
Diffstat:
2 files changed, 69 insertions(+), 72 deletions(-)
diff --git a/layouts/partials/css/custom.css b/layouts/partials/css/custom.css
@@ -0,0 +1,69 @@
+@font-face {
+ font-family: "Noto Sans SC Override";
+ font-weight: normal;
+ font-display: swap;
+ src: local("NotoSansCJKsc-Regular"),
+ url("/fonts/NotoSansSC-Regular.woff2") format("woff2");
+ unicode-range: U+2018-2019, U+201C-201D;
+}
+
+@font-face {
+ font-family: "Noto Sans SC Override";
+ font-weight: bold;
+ font-display: swap;
+ src: local("NotoSansCJKsc-Bold"),
+ url("/fonts/NotoSansSC-Bold.woff2") format("woff2");
+ unicode-range: U+2018-2019, U+201C-201D;
+}
+
+@font-face {
+ font-family: "Oxygen";
+ font-weight: normal;
+ font-display: swap;
+ src: local("Oxygen-Sans-Book"),
+ url("/fonts/Oxygen-Sans.woff2") format("woff2");
+}
+
+@font-face {
+ font-family: "Oxygen";
+ font-weight: bold;
+ font-display: swap;
+ src: local("Oxygen-Sans-Bold"),
+ url("/fonts/Oxygen-Sans-Bold.woff2") format("woff2");
+}
+
+@font-face {
+ font-family: "Noto Sans SC";
+ font-weight: normal;
+ font-display: swap;
+ src: local("NotoSansCJKsc-Regular"),
+ url("/fonts/NotoSansSC-Regular.woff2") format("woff2");
+}
+
+@font-face {
+ font-family: "Noto Sans SC";
+ font-weight: bold;
+ font-display: swap;
+ src: local("NotoSansCJKsc-Bold"),
+ url("/fonts/NotoSansSC-Bold.woff2") format("woff2");
+}
+
+@font-face {
+ font-family: "Iosevka Term";
+ font-weight: normal;
+ font-display: swap;
+ src: local("Iosevka-Term-SS09"),
+ url("/fonts/iosevka-term-ss09-regular.eascii.woff2") format("woff2");
+}
+
+body:lang(en) {
+ font-family: "Oxygen", "Noto Sans SC", Candara, Calibri, Arial, sans-serif;
+}
+
+body:lang(zh) {
+ font-family: "Noto Sans SC Override", "Oxygen", "Noto Sans SC", Candara, Calibri, Arial, sans-serif;
+}
+
+code, kbd {
+ font-family: "Iosevka Term", monospace;
+}
diff --git a/layouts/partials/css/fonts.css b/layouts/partials/css/fonts.css
@@ -1,72 +0,0 @@
-@font-face {
- font-family: "Noto Sans SC Override";
- font-weight: normal;
- font-display: swap;
- src: local("NotoSansCJKsc-Regular"),
- url("/fonts/NotoSansSC-Regular.woff2") format("woff2");
- unicode-range: U+2018-2019, U+201C-201D;
-}
-
-@font-face {
- font-family: "Noto Sans SC Override";
- font-weight: bold;
- font-display: swap;
- src: local("NotoSansCJKsc-Bold"),
- url("/fonts/NotoSansSC-Bold.woff2") format("woff2");
- unicode-range: U+2018-2019, U+201C-201D;
-}
-
-@font-face {
- font-family: "Oxygen";
- font-weight: normal;
- font-display: swap;
- src: local("Oxygen-Sans-Book"),
- url("/fonts/Oxygen-Sans.woff2") format("woff2");
-}
-
-@font-face {
- font-family: "Oxygen";
- font-weight: bold;
- font-display: swap;
- src: local("Oxygen-Sans-Bold"),
- url("/fonts/Oxygen-Sans-Bold.woff2") format("woff2");
-}
-
-@font-face {
- font-family: "Noto Sans SC";
- font-weight: normal;
- font-display: swap;
- src: local("NotoSansCJKsc-Regular"),
- url("/fonts/NotoSansSC-Regular.woff2") format("woff2");
-}
-
-@font-face {
- font-family: "Noto Sans SC";
- font-weight: bold;
- font-display: swap;
- src: local("NotoSansCJKsc-Bold"),
- url("/fonts/NotoSansSC-Bold.woff2") format("woff2");
-}
-
-@font-face {
- font-family: "Iosevka Term";
- font-weight: normal;
- font-display: swap;
- src: local("Iosevka-Term-SS09"),
- url("/fonts/iosevka-term-ss09-regular.eascii.woff2") format("woff2");
-}
-
-body:lang(en) {
- font-family: "Oxygen", "Noto Sans SC", Candara, Calibri, Arial, sans-serif;
-}
-
-body:lang(zh) {
- font-family: "Noto Sans SC Override", "Oxygen", "Noto Sans SC", Candara, Calibri, Arial, sans-serif;
-}
-
-code {
- font-family: "Iosevka Term", monospace;
-}
-kbd {
- font-family: "Iosevka Term", monospace;
-}