Skip to content

Commit

Permalink
Fix background color on no lang dark mode, closes #1867
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Feb 19, 2024
1 parent 7611468 commit 0404d64
Show file tree
Hide file tree
Showing 14 changed files with 145 additions and 19 deletions.
3 changes: 2 additions & 1 deletion assets/css/content/admonition.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,13 @@
.content-inner blockquote:is(.warning, .error, .info, .neutral, .tip) code {
background-color: var(--admInlineCodeBackground);
border: 1px solid var(--admInlineCodeBorder);
color: var(--admInlineCode);
color: var(--admInlineCodeColor);
}

.content-inner blockquote:is(.warning, .error, .info, .neutral, .tip) pre code {
background-color: var(--admCodeBackground);
border: 1px solid var(--admCodeBorder);
color: var(--admCodeColor);
}

.content-inner blockquote:is(.warning, .error, .info, .neutral, .tip) :is(a, a:visited) {
Expand Down
3 changes: 2 additions & 1 deletion assets/css/content/epub-admonition.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@
.content-inner blockquote:is(.warning, .error, .info, .neutral, .tip) code {
background-color: var(--admInlineCodeBackground);
border: 1px solid var(--admInlineCodeBorder);
color: var(--admInlineCode);
color: var(--admInlineCodeColor);
}

.content-inner blockquote:is(.warning, .error, .info, .neutral, .tip) pre code {
background-color: var(--admCodeBackground);
border: 1px solid var(--admCodeBorder);
color: var(--admCodeColor);
}
3 changes: 2 additions & 1 deletion assets/css/custom-props/theme-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ body.dark {
--codeScrollBackground: var(--codeBorder);
--admCodeBackground: var(--gray750);
--admCodeBorder: var(--gray600);
--admInlineCode: var(--black);
--admCodeColor: var(--gray100);
--admInlineCodeColor: var(--black);
--admInlineCodeBackground: var(--gray25);
--admInlineCodeBorder: var(--gray100);

Expand Down
3 changes: 2 additions & 1 deletion assets/css/custom-props/theme-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
--codeScrollBackground: var(--codeBorder);
--admCodeBackground: var(--gray25);
--admCodeBorder: var(--gray100);
--admInlineCode: var(--black);
--admCodeColor: var(--black);
--admInlineCodeColor: var(--black);
--admInlineCodeBackground: var(--gray25);
--admInlineCodeBorder: var(--gray100);

Expand Down
1 change: 0 additions & 1 deletion formatters/epub/dist/epub-elixir-MRWNLF34.css

This file was deleted.

Loading

0 comments on commit 0404d64

Please sign in to comment.