Skip to content

Commit 5ae0594

Browse files
Merge pull request #149 from gridaco/staging
Code UI Font styles update
2 parents 70eba2c + 3bfa399 commit 5ae0594

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

app/lib/pages/code/code-options-control.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ function __lang_to_docstring_lang(lang: Language): LanguageType {
191191
}
192192

193193
const Wrapper = styled.div`
194-
// for reset body margin 8px
195-
/* margin-right: -8px; */
196-
/* margin-left: -8px; */
194+
div,
195+
ul {
196+
font-family: "Source Code Pro", "Courier New", "Lucida Console", Monaco;
197+
}
197198
`;

web/pages/_document.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ export default class HeadDocument extends Document {
2323
`,
2424
}}
2525
/>
26+
27+
<link rel="preconnect" href="https://fonts.googleapis.com" />
28+
<link rel="preconnect" href="https://fonts.gstatic.com" />
29+
<link
30+
href="https://fonts.googleapis.com/css?family=Roboto:400,100,300,100italic,300italic,400italic,500italic,500,700,700italic,900,900italic"
31+
rel="stylesheet"
32+
type="text/css"
33+
/>
34+
<link
35+
href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@300;400&display=swap"
36+
rel="stylesheet"
37+
/>
2638
</Head>
2739
<body>
2840
<Main />

0 commit comments

Comments
 (0)