Skip to content

Commit

Permalink
fix(styles): optimize font-size for code block (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
unix authored Feb 1, 2022
1 parent e632c3e commit a4d02ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ LoadedCheerio {
}
pre {
padding: calc(16pt * 0.75) 16pt;
padding: calc(16pt * 0.9) 16pt;
margin: 16pt 0;
border: 1px solid #eaeaea;
border-radius: 5px;
Expand All @@ -207,13 +207,13 @@ LoadedCheerio {
overflow: auto;
line-height: 1.5;
text-align: left;
font-size: 13px;
font-size: 14px;
-webkit-overflow-scrolling: touch;
}
pre code {
color: #000;
font-size: 0.8125rem;
font-size: 1em;
line-height: 1.25em;
white-space: pre;
}
Expand Down Expand Up @@ -601,7 +601,7 @@ LoadedCheerio {
}
pre {
padding: calc(16pt * 0.75) 16pt;
padding: calc(16pt * 0.9) 16pt;
margin: 16pt 0;
border: 1px solid #333;
border-radius: 5px;
Expand All @@ -610,13 +610,13 @@ LoadedCheerio {
overflow: auto;
line-height: 1.5;
text-align: left;
font-size: 13px;
font-size: 14px;
-webkit-overflow-scrolling: touch;
}
pre code {
color: #fff;
font-size: 0.8125rem;
font-size: 1em;
line-height: 1.25em;
white-space: pre;
}
Expand Down
6 changes: 3 additions & 3 deletions components/css-baseline/css-baseline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const CssBaseline: React.FC<React.PropsWithChildren<unknown>> = ({ children }) =
}
pre {
padding: calc(${theme.layout.gap} * 0.75) ${theme.layout.gap};
padding: calc(${theme.layout.gap} * 0.9) ${theme.layout.gap};
margin: ${theme.layout.gap} 0;
border: 1px solid ${theme.palette.accents_2};
border-radius: ${theme.layout.radius};
Expand All @@ -211,13 +211,13 @@ const CssBaseline: React.FC<React.PropsWithChildren<unknown>> = ({ children }) =
overflow: auto;
line-height: 1.5;
text-align: left;
font-size: 13px;
font-size: 14px;
-webkit-overflow-scrolling: touch;
}
pre code {
color: ${theme.palette.foreground};
font-size: 0.8125rem;
font-size: 1em;
line-height: 1.25em;
white-space: pre;
}
Expand Down

0 comments on commit a4d02ab

Please sign in to comment.