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
Better support for printing from dark mode #1973
Comments
Thanks for reporting. I guess a better solution might be to scope the |
I can confirm that wrapping the theme definitions in Maybe that should also be documented in the Custom Color Schemes section. Something like "If your custom colors don't look good when printed, wrap the definitions in ..." |
The only thing where this does not work is when using multiple color palettes through Insiders with bright primary and accent colors, e.g. |
Fixed in ab60de2 – I didn't address the last concern regarding multiple color palettes, as it's not fixable in general. It will always depend on the chosen colors palettes, thus some adjustments via extra CSS might be necessary. |
Released as part of 6.1.0. |
I checked that...
Description
When using dark mode, printing a page results in barely readable text:
instead, when printing,
mkdocs-material
could temporarily switch to light mode, and then back.Use Cases
well, printing obviously.
Screenshots / Mockups
Here is some javascript I adapted from https://stackoverflow.com/a/11060206/5525118 to make it work for mkdocs-material
And here's a GIF with the script in action:
The text was updated successfully, but these errors were encountered: