Skip to content

Commit

Permalink
Fix code display in dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
golozubov committed Jul 10, 2024
1 parent 8bf19bd commit 33a34c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/code-block.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@
border: none;
position: relative;
margin: unset;

:global(.dark-theme) & code {
background-color: unset;
}
}
4 changes: 4 additions & 0 deletions styles/shared/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ code.inline-code {
color: unset;
background-color: unset;
padding: unset;

.dark-theme & {
background-color: unset;
}
}

.text-no-breaks br {
Expand Down

0 comments on commit 33a34c9

Please sign in to comment.