Skip to content

Commit

Permalink
fix: do not use serif fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Jul 21, 2021
1 parent 86d9ac9 commit ccfca6b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
17 changes: 16 additions & 1 deletion src/_fonts.scss
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&family=Noto+Sans+SC:wght@100;300;400;500;700;900&family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Serif+SC:wght@200;300;400;500;600;700;900&family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&family=Noto+Sans+SC:wght@400;500;700;900&family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
--ct-text-size: 15px;
--ct-line-height: 1.5;
--ls-font-family: "Noto Sans", "Noto Sans SC", ui-sans-serif, system-ui,
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol", "Noto Color Emoji";
--ct-page-title-font-family: "Noto Sans SC", ui-sans-serif, system-ui,
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol", "Noto Color Emoji";
--ct-code-font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo,
Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
2 changes: 1 addition & 1 deletion src/_markers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ a.priority::before {
color: var(--ls-primary-text-color);
display: inline-block;
font-size: 16px;
font-weight: 650;
font-weight: 600;
height: 1rem;
line-height: 1rem;
text-align: center;
Expand Down
11 changes: 0 additions & 11 deletions src/_root.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
:root {
--ct-text-size: 16px;
--ct-line-height: 1.8;
--ct-page-title-font-family: "Noto Serif", "Noto Serif SC", ui-serif, Georgia, Cambria,
"Times New Roman", Times, serif;
--ls-font-family: "Noto Sans", "Noto Sans SC", ui-sans-serif, system-ui, -apple-system,
BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
"Noto Color Emoji";
--ct-code-font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo,
Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

--ct-background: var(--ls-primary-background-color);

--ct-inline-code-font-size: 0.8em;
Expand Down

0 comments on commit ccfca6b

Please sign in to comment.