docs: improve markdown style (#38875)

This commit is contained in:
afc163 2022-11-23 00:00:55 +08:00 committed by GitHub
parent c4c2ee7e32
commit 13e5451207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,8 +286,11 @@ const GlobalStyles = () => {
}
.markdown .dumi-default-source-code {
margin: 1em 0;
background-color: ${token.siteMarkdownCodeBg};
border-radius: ${token.borderRadius}px;
> pre.prism-code {
padding: 12px 20px;
font-size: 13px;
line-height: 2;
}
@ -450,7 +453,7 @@ const GlobalStyles = () => {
.markdown .dumi-default-table {
table {
margin: 2em 0;
margin: 0;
overflow-x: auto;
overflow-y: hidden;
font-size: ${Math.max(token.fontSize - 1, 12)}px;