chore: add chinese markdown style guide and update i18n footnotes

This commit is contained in:
radishzzz 2025-03-23 23:16:30 +00:00
parent cb9a212cc7
commit 191950981e
3 changed files with 280 additions and 14 deletions

View file

@ -208,6 +208,34 @@ html.dark .heti mark {
}
/* Footnotes */
.footnotes > h2,
.footnotes > h3 {
display: none;
}
.footnotes:lang(zh-CN)::before {
content: "脚注";
--at-apply: 'block text-xl font-semibold mb-4';
}
.footnotes:lang(zh-TW)::before {
content: "腳註";
--at-apply: 'block text-xl font-semibold mb-4';
}
.footnotes:lang(ja-JP)::before {
content: "脚注";
--at-apply: 'block text-xl font-semibold mb-4';
}
.footnotes:lang(en-US)::before {
content: "Footnotes";
--at-apply: 'block text-xl font-semibold mb-4';
}
.footnotes:lang(es-ES)::before {
content: "Notas al pie";
--at-apply: 'block text-xl font-semibold mb-4';
}
.footnotes:lang(ru-RU)::before {
content: "Сноски";
--at-apply: 'block text-xl font-semibold mb-4';
}
.heti .data-footnote-backref {
--at-apply: 'no-underline';
}
@ -225,11 +253,7 @@ html.dark .heti mark {
/* Emphasized */
.heti em {
--at-apply: 'not-italic font-semibold';
}
.heti em:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)),
.heti em:not(:lang(zh)) {
--at-apply: 'italic font-normal';
--at-apply: 'italic';
}
/* Quotes */