📝 Document the light and dark image variants
This commit is contained in:
parent
658699fea6
commit
b210655424
|
@ -117,19 +117,20 @@ Which, of course displays the image like so:
|
||||||
|
|
||||||
![The Rust Logo](images/rust-logo-blk.svg)
|
![The Rust Logo](images/rust-logo-blk.svg)
|
||||||
|
|
||||||
|
|
||||||
## Light and Dark Image Variants
|
## Light and Dark Image Variants
|
||||||
|
|
||||||
Separate light mode and dark mode images may be presented to the viewer by adding `#light-only` or `#dark-only` to an image path:
|
Separate light mode and dark mode images may be presented to the viewer by adding `#light-only` or `#dark-only` to an image path:
|
||||||
|
|
||||||
```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)
|
||||||
|
|
||||||
## Extensions
|
## Extensions
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue