Skip to content

Commit b90b215

Browse files
committed
Fix code blocks color in night mode
This provides more eye-friendly code boxes when night mode is active. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
1 parent 291b338 commit b90b215

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

public/css/markdown.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
border: inherit !important;
1414
}
1515

16+
.night .markdown-body pre {
17+
filter: invert(100%);
18+
}
19+
1620
.markdown-body code {
1721
color: inherit !important;
1822
}
@@ -78,6 +82,7 @@
7882
.markdown-body code[data-gist-id] {
7983
background: none;
8084
padding: 0;
85+
filter: invert(100%);
8186
}
8287

8388
.markdown-body code[data-gist-id]:before {

0 commit comments

Comments
 (0)