docs: improve sourcecode styles (#38675)

This commit is contained in:
Peach 2022-11-18 14:47:37 +08:00 committed by GitHub
parent f9b452017b
commit 7e6d6e3f38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,6 +287,10 @@ const GlobalStyles = () => {
.markdown .dumi-default-source-code {
background-color: ${token.siteMarkdownCodeBg};
> pre.prism-code {
font-size: 13px;
line-height: 2;
}
}
.markdown .dumi-default-table-content > table,
@ -751,6 +755,7 @@ const GlobalStyles = () => {
opacity: 0.7;
}
.markdown {
.token.property,
.token.tag,
.token.boolean,
@ -806,6 +811,7 @@ const GlobalStyles = () => {
.token.entity {
cursor: help;
}
}
`}
/>