-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add both simplified & traditional Chinese (#30)
Chinese words using default font seems a little bit weird, so I rewrite the 'font-family' rule and add 3 fonts for OS compatibility. By the way, I also update languages.html for your convenience.
- Loading branch information
Showing
3 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
:lang(zh-hans) .theorem::before { content: '定理 ' counter(theorem) '. ' !important; } | ||
:lang(zh-hans) .lemma::before { content: '引理 ' counter(theorem) '. ' !important; } | ||
:lang(zh-hans) .proof::before { content: '证明:' attr(title) !important; font-style: normal; } | ||
:lang(zh-hans) .definition::before { content: '定义 ' counter(definition) '. ' !important; } | ||
:lang(zh-hans) ::before { font-family: 'Microsoft Yahei', 'STHeiti', 'Source Han Sans CN'; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
:lang(zh-hant) .theorem::before { content: '定理 ' counter(theorem) '. ' !important; } | ||
:lang(zh-hant) .lemma::before { content: '引理 ' counter(theorem) '. ' !important; } | ||
:lang(zh-hant) .proof::before { content: '證明:' attr(title) !important; font-style: normal; } | ||
:lang(zh-hant) .definition::before { content: '定義 ' counter(definition) '. ' !important; } | ||
:lang(zh-hant) ::before { font-family: 'Microsoft Yahei', 'STHeiti', 'Source Han Sans CN'; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1cbe025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: