Does iBooks add something like a CSS class or anything else in order to be able to style some sections of the book differently (in lighter colors) when the night mode is active?
iBooks adds a __ibooks_internal_theme
attribute to the :root (html)
element with a value that's changing with the theme selected.
Go ahead with this:
:root[__ibooks_internal_theme*="Sepia"]
:root[__ibooks_internal_theme*="Night"]
You can find more details on GitHub: theme-detect.css
I will eventually add details on CSS limitations for the three themes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With