View Single Post
Old 06-05-2016, 05:53 PM   #1
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
K4iOS & Night Mode Media Queries

Okay, maybe I'll have more luck with this question than my last one

Anyone know how to target K4iOS with a media query?

Specifically, I have some text that needs to be a certain shade of gray. It renders lighter on eInks, so I'm using some media queries to make it a different shade between Kindle eInks and Kindle Fires:

Code:
/* Regular eInk Kindles get a very dark gray... */
.blah {
	color: #333333;
}

/* ...then, make it lighter for Kindle Fires */
@media screen and (device-aspect-ratio:1/1) {
	.blah {
		color: #666666;
	}
}
This media query is based on some research from dvschultz, and it seems to work great. However, I then loaded up my file on K4iOS, latest version. (Yes, I did it via AZK...)

The text in question shows up as #333333 on K4iOS. I suppose that the ultra-hacky MQ I'm using there doesn't work, which shouldn't be surprising.

So...how do I target K4iOS with an MQ?

And, bonus question, anyone know of a way to target Night Mode in K4iOS (or Kindle Fire, too, actually) with an MQ or other selector? You can do it in iBooks...

Cheers
mattmc is offline   Reply With Quote