Skip to content

Instantly share code, notes, and snippets.

Adaptive Garage adaptivegarage

Block or report user

Report or block adaptivegarage

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@adaptivegarage
adaptivegarage / theme-detect.css
Last active Apr 11, 2018
Pure CSS ePub theme detection (White / Sepia / Night) in iBooks (Mac OS and iOS included)
View theme-detect.css
/*
Pure CSS ePub theme detection (White / Sepia / Night) in iBooks (Mac OS and iOS included)
Version 1.1
Note that iBooks actually uses internal JavaScript to set the "__ibooks_internal_theme" attribute on :root (html) element
every time the theme is changed, but this happens independently of whether your epub html markup is scripted or not.
Discovered and tested in iBooks on Mac, iPhone and iPad by
https://twitter.com/adaptivegarage
*/
You can’t perform that action at this time.