06-29-2020, 01:45 PM | #1 |
Connoisseur
Posts: 59
Karma: 100
Join Date: Jun 2020
Device: ePUB Kindle and iBooks
|
Targeted iBooks mode css
Please forgive if this is not the correct forum.
I am trying to target the background mode on Apple Books in CSS. I can get sepia working with: :root[__ibooks_internal_theme*="Sepia"] div.thing { background-color : #ffff00; } but I cannot get Night or Gray working with: :root[__ibooks_internal_theme*="Night"] div.thing { background-color : #00ffff; } Info on the web seems to indicate that it should work. :-/ |
06-30-2020, 01:27 PM | #2 |
Wizard
Posts: 1,843
Karma: 9547754
Join Date: Jul 2009
Location: Newcastle, Australia
Device: iPhone SE2020
|
Do you have to define the background colours? I thought those were part of the app itself, like the fonts. You’re only allowed access to a subset of the available fonts on the device.
|
Advert | |
|
06-30-2020, 01:36 PM | #3 |
Connoisseur
Posts: 59
Karma: 100
Join Date: Jun 2020
Device: ePUB Kindle and iBooks
|
So far as I can see it is literally impossible to create a single image with opacity that meets minimum accessibility requirements across all four theme modes.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS - query colour mode on Kindle and iBooks? | scruffs | Writers' Corner | 2 | 06-17-2020 02:31 AM |
iBooks Night Mode Overriding CSS | zephyrmays | ePub | 23 | 07-31-2015 11:12 PM |
iBooks Not Displaying SVG Covers in 'Book Mode' | twedigteam | Apple Devices | 0 | 07-10-2013 02:38 PM |
iBooks ignoring a:link css style | Alan Newson | ePub | 9 | 03-19-2012 07:49 AM |