View Single Post
Old 02-24-2013, 06:51 PM   #1
zephyrmays
Member
zephyrmays began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Mar 2011
Device: iPad/iPhone
iBooks Night Mode Overriding CSS

Is there a way define a CSS stylesheet for an epub viewed on iBooks 3.0 in night mode?

I've tried all the permutations of the Night Vision Style Set Tags as defined in Appendix B found here http://idpf.org/epub/altss-tags/, but with no luck.

There are a few black backgrounds defined in the regular stylesheet that I need to set alternate colors for when the iDevice is in night mode.

Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
	<head>
		<meta charset="utf-8" /> 
		<title>
			SECTION 1 Part B Avionics 
		</title>
		<link rel="stylesheet" type="text/css" href="css/formatting.css" class="day" title="Day"/>
		<link rel="alternate stylesheet" type="text/css" href="css/formatting_night.css" class="night"/>

	</head>
	<body>
        ...
	</body>
</html>
Also, is there any developer reference for Apple's iBooks? I cannot find much documentation...

Regards,

Zephyr
zephyrmays is offline   Reply With Quote