Skip to content

Commit

Permalink
fix: update line-heights for new fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Jul 20, 2021
1 parent 50e9135 commit d9c3a8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ div.items-center::after,

/* Block oversize issue */
.block-content-wrapper {
max-width: calc(100% - 40px);
max-width: calc(100% - 38px);
}

.block-content-wrapper > div.flex-1 {
Expand Down
7 changes: 6 additions & 1 deletion src/_root.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:root {
--ct-text-size: 16px;
--ct-line-height: 1.5;
--ct-line-height: 1.8;
--ct-page-title-font-family: "Noto Serif SC", ui-serif, Georgia, Cambria,
"Times New Roman", Times, serif;
--ls-font-family: "Noto Sans SC", ui-sans-serif, system-ui, -apple-system,
Expand Down Expand Up @@ -57,6 +57,11 @@ body {
font-family: var(--ls-font-family);
overscroll-behavior-y: none;
-webkit-font-smoothing: auto;
line-height: var(--ct-line-height);
}

textarea {
line-height: var(--ct-line-height);
}

:root.is-mac.is-electron {
Expand Down

0 comments on commit d9c3a8c

Please sign in to comment.