Skip to content

Commit

Permalink
docs: add code styling for inline code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Daydreamer-riri committed Feb 21, 2024
1 parent 5d76329 commit 4bff853
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,16 @@ h6:hover .header-anchor,
h6:focus .header-anchor {
opacity: 0.5;
}

.prose :where(code):not(:where(.not-prose, .not-prose *, pre code)) {
font-size: 0.9em;
font-weight: 400;
background-color: #f5f5f5cc;
padding: 0.2em 0.4em;
border-radius: 0.3em;
}

.prose :where(:not(pre) > code):not(:where(.not-prose, .not-prose *))::before,
.prose :where(:not(pre) > code):not(:where(.not-prose, .not-prose *))::after {
content: none;
}

0 comments on commit 4bff853

Please sign in to comment.