-
-
Notifications
You must be signed in to change notification settings - Fork 656
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
📝 Make darkmode logo work on github #909
Conversation
📝 Docs preview for commit 8ee3e7e at: https://cd0e35e6.typertiangolo.pages.dev |
Thanks for the PR, @pypae! We'll review this and get back to you 🙏 |
📝 Docs preview for commit 6172210 at: https://1581077f.typertiangolo.pages.dev Modified Pages |
📝 Docs preview for commit dda7134 at: https://7791d569.typertiangolo.pages.dev Modified Pages |
@tiangolo : I think it's probably better if you review this one directly 🙏 |
Thanks @pypae! I tried a looot of things to make it compatible with both MkDocs and GitHub 😅 As I want to be able to keep both files in sync. For now, I would prefer to leave it as is, but thanks for the effort! ☕ |
This PR makes the new dark mode logo introduced in #907 available in the GitHub README by using
<picture>
conditionally.Note: This got quite ugly, because mkdocs material allows to override the system setting for darkmode, while on github we can only use the media query. Feel free to ignore and close.