Quote:
Originally Posted by dgatwood
You sure it wasn't just a specificity issue? The iBooks stylesheets throw a lot of stuff into universal selectors like this:
Code:
:root[__ibooks_internal_theme*="Night"] * { ... }
Try this:
Code:
body element.class, element.class * { ... }
which gives you the same specificity as the built-in rules, and by virtue of being later, wins. (The universal selector in the second part is so that it applies to all elements inside. This overrides the universal selector for those. Do not include that for styles that set relative font sizes, obviously, or for box model stuff.)
|
By the by, I did try this out, and it didn't work on iBooks for OSX v1.1.1. Unfortunately, while I can Web Inspect the body of the book, I can't seem to do that for the popovers, so I can't tell what is going on exactly. It may just be that the HTML is being fed into some custom function that renders with a certain set of CSS and doesn't even pull in my main stylesheets, for example.
Any other ideas? I also tried
* element.class, in case it's "not in a body".