Skip to content

Commit

Permalink
Bug fix: Make <pre> text readable in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Per Lundberg committed Apr 9, 2021
1 parent 2e325ad commit 719cfb1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions darkerfx/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ body.theme-dark {
--theme-inline-code: inherit;
--theme-inline-code-background: #454545;
--theme-code-border: #404040;
--theme-code-color: inherit;
--theme-border-subnav: #404040;
--theme-border-footer: #404040;
}
Expand Down Expand Up @@ -69,6 +70,7 @@ body.theme-light {
--theme-inline-code: #c7254e;
--theme-inline-code-background: #f9f2f4;
--theme-code-border: #e7e7e7;
--theme-code-color: #333;
--theme-border-footer: #e7e7e7;
}

Expand Down Expand Up @@ -428,6 +430,10 @@ pre {
background-color: inherit;
}

legend, pre {
color: var(--theme-code-color);
}

/*
* highlight.js custom theme (dark version)
*
Expand Down

0 comments on commit 719cfb1

Please sign in to comment.