View Single Post
Old 10-13-2020, 12:38 AM   #20
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by hobnail View Post
On e-ink screens black and white for text and bars/rules are really the only safe colors to use. And even then you don't want to use "black" and "white" or their hex equivalents but instead use "color: inherit;" for the text color so that it will work in night mode as pointed out by phillipgessert. E.g., in my boilerplate CSS I have

a.text-color {
color: inherit;
}

so that it's black (in day mode), not the usual blue, which comes out as gray on e-ink. There is also the builtin color currentColor.


See also https://friendsofepub.github.io/eBookTricks/
I know that this is the ePUB forum, but the last time I tested color:inherit on MOBI, it didn't work worth a damn. Looked fine in Previewer, not worth two s**ts on real devices.

Hitch
Hitch is offline   Reply With Quote