Skip to content

Commit

Permalink
style: update background color for code blocks in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Daydreamer-riri committed Jun 19, 2024
1 parent b245213 commit e59e61d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ h6:focus .header-anchor {
border-radius: 0.3em;
}

.dark .prose :where(code):not(:where(.not-prose, .not-prose *, pre code)) {
background-color: #f5f5f516;
}

.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;
Expand Down

0 comments on commit e59e61d

Please sign in to comment.