Skip to content

Commit e1da25c

Browse files
authored
Add support for themed img (#1445)
Closes #1405.
1 parent aa87acf commit e1da25c

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

assets/less/content.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313
@import './content/footer';
1414
@import './content/bottom-actions.less';
1515
}
16+
17+
body:not(.night-mode) .content-inner img[src*="#gh-dark-mode-only"] {
18+
display: none;
19+
}

assets/less/epub.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ nav > ol {
1717
}
1818
}
1919

20+
img[src*="#gh-dark-mode-only"] {
21+
display: none;
22+
}
23+
2024
.title-container {
2125
text-align: center;
2226
}

assets/less/night/content/general.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ a.view-source {
3333
.summary h2 a {
3434
text-decoration: none;
3535
}
36+
37+
img[src*="#gh-light-mode-only"] {
38+
display: none;
39+
}

0 commit comments

Comments
 (0)