Skip to content

Commit bd8a1bd

Browse files
committed
support alt attribute for dark-light image variants tooo
1 parent dcc9b78 commit bd8a1bd

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docs/Manual/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<div align="center">
44

5-
<img width="400px" src="nuke.cola.full.onLight.svg#gh-light-mode-only" />
6-
<img width="400px" src="nuke.cola.full.onDark.svg#gh-dark-mode-only" />
5+
<img width="400px" src="nuke.cola.full.onLight.svg" alt="light-mode" />
6+
<img width="400px" src="nuke.cola.full.onDark.svg" alt="dark-mode" />
77

88
Utilities and extensions useful for any [Nuke](https://nuke.build) builds originally separated from Nuke.Unreal.
99

docs/custom.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,13 @@ html.light-mode img[src*="gh-dark-mode-only"]
1111
{
1212
display: none !important;
1313
}
14+
15+
html.dark-mode img[alt*="light-mode"]
16+
{
17+
display: none !important;
18+
}
19+
20+
html.light-mode img[alt*="dark-mode"]
21+
{
22+
display: none !important;
23+
}

0 commit comments

Comments
 (0)