📝 Document light/dark images in `markdown.md`

This commit is contained in:
hayesall 2023-10-22 13:24:43 -04:00
parent c42569b8d6
commit 3d4721fd96
1 changed files with 12 additions and 12 deletions

View File

@ -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`.