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

Fix dark mode in iOS13+ Books #379

Merged
merged 3 commits into from Dec 13, 2020
Merged

Fix dark mode in iOS13+ Books #379

merged 3 commits into from Dec 13, 2020

Conversation

robinwhittleton
Copy link
Member

iOS 13+ supports the prefers-color-scheme media query, so we can use that to invert images. The old and new versions play nicely together, in my testing on the latest versions at least.

Partially fixes #377.

iOS 13+ supports the `prefers-color-scheme` media query, so we can use that to invert images. The old and new versions play nicely together, in my testing on the latest versions at least.
The background color unsetting can remain in compatibility.css as the initial setting is done there.
@robinwhittleton
Copy link
Member Author

Updated to move the default dark mode image inversing to core.css.

@acabal
Copy link
Member

acabal commented Dec 13, 2020

Awesome, thanks!

@acabal acabal merged commit 380902e into master Dec 13, 2020
@acabal acabal deleted the media-query-dark-theme branch November 9, 2021 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build: __ibooks_internal_theme selector no longer working in compatibility.css
2 participants