Skip to content

Commit 91b4129

Browse files
committed
ui: change font style
1 parent 6242642 commit 91b4129

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/GlobalStyle.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ const GlobalStyle = createGlobalStyle`
224224
padding: 0.2rem 0.325rem;
225225
background: rgb(26, 91, 137, 0.07);
226226
border-radius: 0.325rem;
227+
font-family: Consolas, Monaco, 'Andale Mono', monospace;
227228
font-size: 80%;
228229
}
229230
@@ -232,6 +233,10 @@ const GlobalStyle = createGlobalStyle`
232233
border-left: 0.2rem solid #333;
233234
margin: 1.5rem 0;
234235
padding: 0.5rem 0 0.5rem 1rem;
236+
237+
@media (max-width: 680px) {
238+
font-size: 1.3rem;
239+
}
235240
236241
> p {
237242
margin: 0;

src/components/MDX/CodeBlock.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ const Pre = styled.pre`
1818
font-weight: 300;
1919
white-space: pre;
2020
21+
@media (max-width: 680px) {
22+
font-size: 1.25rem;
23+
}
24+
2125
> div {
2226
width: fit-content;
2327
min-width: 100%;

src/components/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import GlobalStyle from '../GlobalStyle';
77
import Inner from './Inner';
88

99
const Container = styled.div<{ $isMain: boolean }>`
10-
font-family: sans-serif;
10+
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Open Sans, sans-serif;
1111
1212
header {
1313
padding: 16px 0 24px;

0 commit comments

Comments
 (0)