Skip to content

Commit

Permalink
fix: fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
OpportunityLiu committed Sep 6, 2024
1 parent d74c347 commit fc54497
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/css/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
:lang(zh) {
--ifm-font-family-base: 'Sarasa UI SC', 'Source Han Sans SC', 'Noto Sans SC', 'Source Han Sans', 'Roboto', 'Ubuntu',
'BlinkMacSystemFont', 'Cantarell', 'Noto Sans', 'Segoe UI', 'Helvetica', 'Arial', sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol';
--ifm-font-family-monospace: 'Sarasa Mono SC', monospace, var(--ifm-font-family-base);
}

:lang(zh-hant) {
--ifm-font-family-base: 'Sarasa UI TC', 'Source Han Sans TC', 'Noto Sans TC', 'Source Han Sans', 'Roboto', 'Ubuntu',
'BlinkMacSystemFont', 'Cantarell', 'Noto Sans', 'Segoe UI', 'Helvetica', 'Arial', sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol';
--ifm-font-family-monospace: 'Sarasa Mono TC', monospace, var(--ifm-font-family-base);
}
1 change: 1 addition & 0 deletions src/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
@import url('./global');
@import url('./theme');
@import url('./print');
@import url('./fonts');

0 comments on commit fc54497

Please sign in to comment.