You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there's a neat github feature to define if images should be rendered in dark and/or light mode. It's something like this:
<p align="center">
<a href="https://crownstone.rocks#gh-light-mode-only">
<img src="https://raw.githubusercontent.com/crownstone/bluenet/master/docs/images/crownstone_logo_text_black.svg?sanitize=true" alt="Crownstone Logo in Light Mode" />
</a>
<a href="https://crownstone.rocks#gh-dark-mode-only">
<img src="https://raw.githubusercontent.com/crownstone/bluenet/master/docs/images/crownstone_logo_text_white.svg?sanitize=true" alt="Crownstone Logo in Dark Mode" />
</a>
</p>
What I'm looking for is how to adjust the css to have the same behavior. It means I've to do something like the following depending on the mode.
a[href$="gh-light-mode-only"] {
display:none;
}
It would be great to get some help in how to do this. Or otherwise, some directions I how this should be done in a manner that is github compatible.
The text was updated successfully, but these errors were encountered:
Currently there's a neat github feature to define if images should be rendered in dark and/or light mode. It's something like this:
What I'm looking for is how to adjust the
css
to have the same behavior. It means I've to do something like the following depending on the mode.It would be great to get some help in how to do this. Or otherwise, some directions I how this should be done in a manner that is github compatible.
The text was updated successfully, but these errors were encountered: