Skip to content

Commit

Permalink
fix(style): Make font-family of code, match ordinary MDN examples (#1133
Browse files Browse the repository at this point in the history
)

fix(style): Make font-family of code match ordinary MDN examples
  • Loading branch information
NiedziolkaMichal authored Jun 9, 2023
1 parent f92927f commit 742a5b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions editor/css/editor-libs/codemirror-override.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

.cm-editor .cm-scroller {
line-height: inherit;
font-family: var(--font-code);
}

.cm-editor .cm-cursor {
Expand Down
3 changes: 2 additions & 1 deletion editor/css/editor-libs/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
--font-fallback: BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
"Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-sans;
--font-body: Inter, var(--font-fallback);
--font-code: Consolas, "Courier New", monospace;
--font-code: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console,
monospace;
--type-body-l: 400 1rem/1.1876 var(--font-body); /* 16px/19px */
--type-emphasis-m: 600 0.8125rem/1.23 var(--font-body); /* 13px/16px */
--font-heading: var(--font-body);
Expand Down

0 comments on commit 742a5b5

Please sign in to comment.