方正黑体大小太大了,换思源黑体
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";
|
||||
src: url("/stratum2-medium-webfont.ttf");
|
||||
}
|
||||
@font-face {
|
||||
/* @font-face {
|
||||
font-family: "fangzhengheiti";
|
||||
src: url("/FZHTJW.ttf");
|
||||
}
|
||||
} */
|
@ -34,6 +34,7 @@
|
||||
|
||||
.post-content {
|
||||
color: var(--content);
|
||||
font-family: 'Times New Roman', 'Noto Serif SC' !important;
|
||||
}
|
||||
|
||||
.post-content h3,
|
||||
|
@ -22,7 +22,7 @@ h6 {
|
||||
}
|
||||
|
||||
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;
|
||||
line-height: 1.6;
|
||||
word-break: break-word;
|
||||
|
@ -1,23 +1,26 @@
|
||||
|
||||
<style>
|
||||
:root {
|
||||
/* :root {
|
||||
--sys-font-family: "Noto Serif SC";
|
||||
--zh-font-family: "Noto Serif SC";
|
||||
--base-font-family: "Noto Serif SC";
|
||||
--code-font-family: "Noto Serif SC";
|
||||
--article-font-family: "Noto Serif SC";
|
||||
}
|
||||
} */
|
||||
</style>
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
const customFont = document.createElement("link");
|
||||
customFont.href =
|
||||
"https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&display=swap";
|
||||
const notoSerifFont = document.createElement("link");
|
||||
notoSerifFont.href = "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";
|
||||
customFont.rel = "stylesheet";
|
||||
|
||||
document.head.appendChild(customFont);
|
||||
const notoSansFont = document.createElement("link");
|
||||
notoSansFont.href = "https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&&display=swap";
|
||||
notoSansFont.type = "text/css";
|
||||
notoSansFont.rel = "stylesheet";
|
||||
document.head.appendChild(notoSansFont);
|
||||
})();
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user