View Single Post
Old 08-26-2015, 10:51 PM   #44
mattmc
Connoisseur
mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.
 
Posts: 89
Karma: 185923
Join Date: May 2015
Device: iPad 1/2/Air, K3/PW2/Fire1, Kobo Touch, Samsung Tab, Nook Color/Touch
Quote:
Originally Posted by dgatwood View Post
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".
mattmc is offline   Reply With Quote