mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-28 19:43:31 +08:00
feat: custom modify
This commit is contained in:
parent
64b242efc8
commit
7871eb4119
@ -54,7 +54,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.article-title {
|
.article-title {
|
||||||
font-family: var(--zh-font-family);
|
font-family: var(--article-font-family);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--card-text-color-main);
|
color: var(--card-text-color-main);
|
||||||
|
@ -208,6 +208,7 @@
|
|||||||
font-size: var(--article-font-size);
|
font-size: var(--article-font-size);
|
||||||
padding: 0 var(--card-padding);
|
padding: 0 var(--card-padding);
|
||||||
line-height: var(--article-line-height);
|
line-height: var(--article-line-height);
|
||||||
|
font-weight: 500;
|
||||||
|
|
||||||
& > p {
|
& > p {
|
||||||
margin: 1.5em 0;
|
margin: 1.5em 0;
|
||||||
@ -222,6 +223,7 @@
|
|||||||
margin-inline-start: calc((var(--card-padding)) * -1);
|
margin-inline-start: calc((var(--card-padding)) * -1);
|
||||||
padding-inline-start: calc(var(--card-padding) - var(--heading-border-size));
|
padding-inline-start: calc(var(--card-padding) - var(--heading-border-size));
|
||||||
border-inline-start: var(--heading-border-size) solid var(--accent-color);
|
border-inline-start: var(--heading-border-size) solid var(--accent-color);
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
figure {
|
figure {
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--sys-font-family: "LXGW WenKai Screen R";
|
--sys-font-family: "EB Garamond", "LXGW WenKai Screen R";
|
||||||
--zh-font-family: "LXGW WenKai Screen R";
|
--zh-font-family: "EB Garamond", "LXGW WenKai Screen R";
|
||||||
--base-font-family: "LXGW WenKai Screen R";
|
--base-font-family: "EB Garamond", "LXGW WenKai Screen R";
|
||||||
--code-font-family: "LXGW WenKai Screen R";
|
--code-font-family: "EB Garamond", "LXGW WenKai Screen R";
|
||||||
--article-font-family: "Noto Serif SC";
|
--article-font-family: "EB Garamond", "Noto Serif SC";
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@ -22,7 +22,17 @@
|
|||||||
(function () {
|
(function () {
|
||||||
const customFont = document.createElement("link");
|
const customFont = document.createElement("link");
|
||||||
customFont.href =
|
customFont.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;500;600;700&family=Source+Code+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Cinzel+Decorative:wght@700&display=swap";
|
||||||
|
|
||||||
|
customFont.type = "text/css";
|
||||||
|
customFont.rel = "stylesheet";
|
||||||
|
|
||||||
|
document.head.appendChild(customFont);
|
||||||
|
})();
|
||||||
|
(function () {
|
||||||
|
const customFont = document.createElement("link");
|
||||||
|
customFont.href =
|
||||||
|
"https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap";
|
||||||
|
|
||||||
customFont.type = "text/css";
|
customFont.type = "text/css";
|
||||||
customFont.rel = "stylesheet";
|
customFont.rel = "stylesheet";
|
||||||
|
Loading…
Reference in New Issue
Block a user