Skip to content

Commit

Permalink
update monospace fonts to match github
Browse files Browse the repository at this point in the history
  • Loading branch information
Wattenberger committed Aug 17, 2022
1 parent 78f5691 commit d83513e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
4 changes: 3 additions & 1 deletion blocks/file-blocks/code/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ body,
outline: none !important;
}

.cm-scroller {
.cm-editor div.cm-scroller {
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
}

.cm-editor div.cm-scroller {
Expand Down
3 changes: 2 additions & 1 deletion blocks/file-blocks/json.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export default function (props: FileBlockProps) {
fontSize: "1.2em",
lineHeight: "1.2em",
padding: "2em",
fontFamily: "monospace",
fontFamily:
"ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace",
whiteSpace: "pre-wrap",
wordBreak: "break-word",
wordWrap: "break-word",
Expand Down
3 changes: 2 additions & 1 deletion blocks/file-blocks/live-markdown/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@
.markdown-body kbd,
.markdown-body pre,
.markdown-body samp {
font-family: monospace, monospace;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
font-size: 1em;
}

Expand Down
5 changes: 3 additions & 2 deletions blocks/file-blocks/markdown-edit/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ body,
}

.cm-line {
white-space: pre-line;
white-space: pre-wrap;
}
.cm-line .cm {
opacity: 0.5;
Expand Down Expand Up @@ -206,7 +206,8 @@ html body div.cm-editor .cm-line::selection {
}

.cm-table {
font-family: monospace;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
}
.cm-table .cm-instruction {
display: inline !important;
Expand Down
3 changes: 2 additions & 1 deletion blocks/file-blocks/markdown-edit/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ export const highlightStyle = HighlightStyle.define([
},
{
tag: t.monospace,
fontFamily: "monospace",
fontFamily:
"ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace",
fontSize: "1.1em",
padding: "0.2em 0.4em",
backgroundColor: colors.activelineBg,
Expand Down
3 changes: 2 additions & 1 deletion blocks/file-blocks/use-case/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@
.markdown-body kbd,
.markdown-body pre,
.markdown-body samp {
font-family: monospace, monospace;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
font-size: 1em;
}

Expand Down

0 comments on commit d83513e

Please sign in to comment.