hugo-soresu

My fork of hugo-xmin

git clone git://git.shimmy1996.com/hugo-soresu.git
commit b574690b695b73fd0fba3b701b7dc3c827231527
parent 8a09d2ea126a4fcf2e239d558bb08a184dd2fcb0
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue, 26 Jun 2018 09:45:37 -0500

Override certain puncutation marks with Noto Sans SC.

Diffstat:
Mlayouts/partials/css/fonts.css | 46+++++++++++++++++++++++++++++++++++++---------
1 file changed, 37 insertions(+), 9 deletions(-)
diff --git a/layouts/partials/css/fonts.css b/layouts/partials/css/fonts.css
@@ -1,34 +1,62 @@
-@import url (//fonts.googleapis.com/earlyaccess/notosansscsliced.css);
+@import url("https://fonts.googleapis.com/earlyaccess/notosansscsliced.css");
 
 @font-face {
-    font-family: "Iosevka Term";
-    src: url("/fonts/iosevka-term-ss09-regular.eascii.woff2") format('woff2');
-    font-display: swap;
+    font-family: "Noto Sans SC Sliced Override";
+    font-weight: 300;
+    src: local("Noto Sans CJK SC"),
+         url("//fonts.gstatic.com/ea/notosansscsliced/v2/NotoSansSCSliced-Light.100.woff2") format("woff2"),
+         url("//fonts.gstatic.com/ea/notosansscsliced/v2/NotoSansSCSliced-Light.100.woff") format("woff"),
+         url("//fonts.gstatic.com/ea/notosansscsliced/v2/NotoSansSCSliced-Light.100.otf")  format("opentype");
+    unicode-range: U+2018-2019, U+201C-201D;
+}
+
+@font-face {
+    font-family: "Noto Sans SC Sliced Override";
+    font-weight: 400;
+    src: local("Noto Sans CJK SC"),
+         url("//fonts.gstatic.com/ea/notosansscsliced/v2/NotoSansSCSliced-Regular.100.woff2") format("woff2"),
+         url("//fonts.gstatic.com/ea/notosansscsliced/v2/NotoSansSCSliced-Regular.100.woff") format("woff"),
+         url("//fonts.gstatic.com/ea/notosansscsliced/v2/NotoSansSCSliced-Regular.100.otf")  format("opentype");
+    unicode-range: U+2018-2019, U+201C-201D;
+}
+
+@font-face {
+    font-family: "Noto Sans SC Sliced Override";
+    font-weight: 500;
+    src: local("Noto Sans CJK SC"),
+         url("//fonts.gstatic.com/ea/notosansscsliced/v2/NotoSansSCSliced-Bold.100.woff2") format("woff2"),
+         url("//fonts.gstatic.com/ea/notosansscsliced/v2/NotoSansSCSliced-Bold.100.woff") format("woff"),
+         url("//fonts.gstatic.com/ea/notosansscsliced/v2/NotoSansSCSliced-Bold.100.otf")  format("opentype");
+    unicode-range: U+2018-2019, U+201C-201D;
 }
 
 @font-face {
     font-family: "Oxygen";
-    src: url("/fonts/Oxygen-Sans.woff2") format('woff2');
+    src: url("/fonts/Oxygen-Sans.woff2") format("woff2");
     font-display: swap;
 }
 
 @font-face {
     font-family: "Oxygen";
-    src: url("/fonts/Oxygen-Sans-Bold.woff2") format('woff2');
+    src: url("/fonts/Oxygen-Sans-Bold.woff2") format("woff2");
     font-weight: bold;
     font-display: swap;
 }
 
 body {
-    font-family: 'Oxygen', 'Noto Sans SC Sliced', Candara, Calibri, Arial, sans-serif;
+    font-family: "Noto Sans SC Sliced Override", "Oxygen", "Noto Sans SC Sliced", Candara, Calibri, Arial, sans-serif;
+}
+
+.title {
+    font-weight: bold;
 }
 
 code {
-    font-family: 'Iosevka Term', monospace;
+    font-family: "Iosevka Term", monospace;
     font-size: 90%;
 }
 
 kbd {
-    font-family: 'Iosevka Term', monospace;
+    font-family: "Iosevka Term", monospace;
     font-size: 80%;
 }