📝 Document light/dark images in `markdown.md`
This commit is contained in:
parent
c42569b8d6
commit
3d4721fd96
|
@ -124,14 +124,14 @@ Image variants for different themes can be used via CSS classes.
|
||||||
Here is an example for different images for light vs. dark themes:
|
Here is an example for different images for light vs. dark themes:
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
<img src="images/rust-logo-blk.svg" class="no-dark-themes" />
|
![rust logo standard edition](images/rust-logo-blk.svg#only-light)
|
||||||
<img src="images/rust-logo-blk-dark.svg" class="no-light-themes" />
|
![rust logo dark mode](images/rust-logo-blk-dark.svg#only-dark)
|
||||||
```
|
```
|
||||||
|
|
||||||
Try switching the theme to see the effect below (brush icon at the top left of the page):
|
Try switching the theme to see the effect below (brush icon at the top left of the page):
|
||||||
|
|
||||||
<img src="images/rust-logo-blk.svg" class="no-dark-themes" />
|
![rust logo standard edition](images/rust-logo-blk.svg#only-light)
|
||||||
<img src="images/rust-logo-blk-dark.svg" class="no-light-themes" />
|
![rust logo dark mode](images/rust-logo-blk-dark.svg#only-dark)
|
||||||
|
|
||||||
To exclude an image (or any HTML element) for all dark or all light themes
|
To exclude an image (or any HTML element) for all dark or all light themes
|
||||||
(incl. the Rust theme), use the classes `no-dark-themes` and `no-light-themes`.
|
(incl. the Rust theme), use the classes `no-dark-themes` and `no-light-themes`.
|
||||||
|
|
Loading…
Reference in New Issue