Skip to content

Commit a4d02ab

Browse files
authored
fix(styles): optimize font-size for code block (#697)
1 parent e632c3e commit a4d02ab

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

components/css-baseline/__tests__/__snapshots__/baseline.test.tsx.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ LoadedCheerio {
198198
}
199199
200200
pre {
201-
padding: calc(16pt * 0.75) 16pt;
201+
padding: calc(16pt * 0.9) 16pt;
202202
margin: 16pt 0;
203203
border: 1px solid #eaeaea;
204204
border-radius: 5px;
@@ -207,13 +207,13 @@ LoadedCheerio {
207207
overflow: auto;
208208
line-height: 1.5;
209209
text-align: left;
210-
font-size: 13px;
210+
font-size: 14px;
211211
-webkit-overflow-scrolling: touch;
212212
}
213213
214214
pre code {
215215
color: #000;
216-
font-size: 0.8125rem;
216+
font-size: 1em;
217217
line-height: 1.25em;
218218
white-space: pre;
219219
}
@@ -601,7 +601,7 @@ LoadedCheerio {
601601
}
602602
603603
pre {
604-
padding: calc(16pt * 0.75) 16pt;
604+
padding: calc(16pt * 0.9) 16pt;
605605
margin: 16pt 0;
606606
border: 1px solid #333;
607607
border-radius: 5px;
@@ -610,13 +610,13 @@ LoadedCheerio {
610610
overflow: auto;
611611
line-height: 1.5;
612612
text-align: left;
613-
font-size: 13px;
613+
font-size: 14px;
614614
-webkit-overflow-scrolling: touch;
615615
}
616616
617617
pre code {
618618
color: #fff;
619-
font-size: 0.8125rem;
619+
font-size: 1em;
620620
line-height: 1.25em;
621621
white-space: pre;
622622
}

components/css-baseline/css-baseline.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ const CssBaseline: React.FC<React.PropsWithChildren<unknown>> = ({ children }) =
202202
}
203203
204204
pre {
205-
padding: calc(${theme.layout.gap} * 0.75) ${theme.layout.gap};
205+
padding: calc(${theme.layout.gap} * 0.9) ${theme.layout.gap};
206206
margin: ${theme.layout.gap} 0;
207207
border: 1px solid ${theme.palette.accents_2};
208208
border-radius: ${theme.layout.radius};
@@ -211,13 +211,13 @@ const CssBaseline: React.FC<React.PropsWithChildren<unknown>> = ({ children }) =
211211
overflow: auto;
212212
line-height: 1.5;
213213
text-align: left;
214-
font-size: 13px;
214+
font-size: 14px;
215215
-webkit-overflow-scrolling: touch;
216216
}
217217
218218
pre code {
219219
color: ${theme.palette.foreground};
220-
font-size: 0.8125rem;
220+
font-size: 1em;
221221
line-height: 1.25em;
222222
white-space: pre;
223223
}

0 commit comments

Comments
 (0)