Override the tailwind typography inline code styles (#11)

This commit is contained in:
Scott Trinh 2021-01-10 13:32:06 -05:00 committed by GitHub
parent 7e9650c403
commit 6057aa1898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -5,3 +5,9 @@
.kdl-section { .kdl-section {
@apply py-10 px-4 prose prose-xl mx-auto; @apply py-10 px-4 prose prose-xl mx-auto;
} }
code {
background-color: #efefef;
padding: 0.1em 0.5em;
border-radius: 4px;
}

View File

@ -9,6 +9,12 @@ module.exports = {
typography: { typography: {
DEFAULT: { DEFAULT: {
css: { css: {
"code::before": {
content: "none",
},
"code::after": {
content: "none",
},
"pre code::after": { "pre code::after": {
content: "none", content: "none",
}, },