Add support for GitHub-styled color scheme dependent images (#617)

This commit is contained in:
Ryan Cao authored and GitHub committed 2022-08-23 22:38:22 -04:00
1 parent 8a53fa0aab
commit 59bb132dd7
1 file changed
+8
+8
View File
@@ -184,6 +184,14 @@
height: auto;
}
html:not(.dark-mode, .oled-mode) & img[src$='#gh-dark-mode-only'] {
display: none;
}
html:is(.dark-mode, .oled-mode) & img[src$='#gh-light-mode-only'] {
display: none;
}
pre {
margin-top: 1rem;
padding: 14px;