方正黑体大小太大了,换思源黑体
This commit is contained in:
parent
3ccb4c0038
commit
46e05f0a2c
0
.hugo_build.lock
Normal file
0
.hugo_build.lock
Normal file
@ -96,7 +96,7 @@ body:not(.dark) #sun {
|
|||||||
font-family: "stratum2";
|
font-family: "stratum2";
|
||||||
src: url("/stratum2-medium-webfont.ttf");
|
src: url("/stratum2-medium-webfont.ttf");
|
||||||
}
|
}
|
||||||
@font-face {
|
/* @font-face {
|
||||||
font-family: "fangzhengheiti";
|
font-family: "fangzhengheiti";
|
||||||
src: url("/FZHTJW.ttf");
|
src: url("/FZHTJW.ttf");
|
||||||
}
|
} */
|
@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
.post-content {
|
.post-content {
|
||||||
color: var(--content);
|
color: var(--content);
|
||||||
|
font-family: 'Times New Roman', 'Noto Serif SC' !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-content h3,
|
.post-content h3,
|
||||||
|
@ -22,7 +22,7 @@ h6 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'stratum2', 'fangzhengheiti', /*'Noto Serif SC',*/ -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
font-family: 'stratum2', 'Open Sans', 'Microsoft Yahei',/*'Noto Serif SC',*/ -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
|
@ -1,23 +1,26 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
:root {
|
/* :root {
|
||||||
--sys-font-family: "Noto Serif SC";
|
--sys-font-family: "Noto Serif SC";
|
||||||
--zh-font-family: "Noto Serif SC";
|
--zh-font-family: "Noto Serif SC";
|
||||||
--base-font-family: "Noto Serif SC";
|
--base-font-family: "Noto Serif SC";
|
||||||
--code-font-family: "Noto Serif SC";
|
--code-font-family: "Noto Serif SC";
|
||||||
--article-font-family: "Noto Serif SC";
|
--article-font-family: "Noto Serif SC";
|
||||||
}
|
} */
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(function () {
|
(function () {
|
||||||
const customFont = document.createElement("link");
|
const notoSerifFont = document.createElement("link");
|
||||||
customFont.href =
|
notoSerifFont.href = "https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&display=swap";
|
||||||
"https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&display=swap";
|
notoSerifFont.type = "text/css";
|
||||||
|
notoSerifFont.rel = "stylesheet";
|
||||||
|
document.head.appendChild(notoSerifFont);
|
||||||
|
|
||||||
customFont.type = "text/css";
|
const notoSansFont = document.createElement("link");
|
||||||
customFont.rel = "stylesheet";
|
notoSansFont.href = "https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&&display=swap";
|
||||||
|
notoSansFont.type = "text/css";
|
||||||
document.head.appendChild(customFont);
|
notoSansFont.rel = "stylesheet";
|
||||||
|
document.head.appendChild(notoSansFont);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user