Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show screenshots matching the theme #71

Closed
kazk opened this issue Jul 17, 2020 · 2 comments
Closed

Show screenshots matching the theme #71

kazk opened this issue Jul 17, 2020 · 2 comments
Labels
docs guideline enhancement New feature or request

Comments

@kazk
Copy link
Member

kazk commented Jul 17, 2020

For some screenshots, it might be better to use the version matching the current theme (dark mode on/off).

This should be possible using dark:hidden and dark:block variants:

<div class="block dark:hidden">

![alt](./light.png)

</div>
<div class="hidden dark:block">

![alt](./dark.png)

</div>

Wrapping in <div> because we can't use <img> tag with relative paths in Markdown at the moment.

@Blind4Basics
Copy link
Contributor

Blind4Basics commented Jul 20, 2020

info for later: once it works, remove this file:

docs/content/languages/python/codewars-test/python-test-framework-example.png

edit: done

@Blind4Basics
Copy link
Contributor

done here, archived in #74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs guideline enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants