Skip to content

Commit

Permalink
Fix codeblock disappear in darkmode (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
viphan007 authored Jun 11, 2024
1 parent e05ed1a commit 1ed1564
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/RichText.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const RichTextWrapper = styled.div`
background-color: #fcfaf6;
text-shadow: none;
body.dark-mode & {
background-color: #fcfaf6;
background-color: transparent;
}
}
pre > code[class~='language-javascript']::before {
Expand Down
1 change: 0 additions & 1 deletion src/components/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2061,7 +2061,6 @@ body.dark-mode {
code[class*='language-'],
pre[class*='language-'] {
color: #fff;
display: none;
}
pre {
background-color: #24292e;
Expand Down

0 comments on commit 1ed1564

Please sign in to comment.