Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Apple Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 06-27-2020, 05:02 AM   #1
scruffs
Connoisseur
scruffs doesn't litterscruffs doesn't litter
 
Posts: 59
Karma: 100
Join Date: Jun 2020
Device: ePUB Kindle and iBooks
CSS media queries to detect apple books

If I want to detect Kindle readers, I can use:
@media amzn-kf8 {
/* CSS for KF8 devices */
}
or
@media amzn-mobi7 {
/* CSS for Mobi7 devices */
}

Is there an equivalent for Apple Books?

THX
scruffs is offline   Reply With Quote
Old 06-27-2020, 04:27 PM   #2
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,961
Karma: 16854743
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by scruffs View Post
Is there an equivalent for Apple Books?
AFAIK, there's no Apple Books equivalent. You can, of course, test for specific Apple devices, for example iPads.
If you want to be absolutely sure, you'll need to use JavaScript to get the value of the epubReadingSystem name property.
Doitsu is offline   Reply With Quote
Old 06-30-2020, 02:02 PM   #3
scruffs
Connoisseur
scruffs doesn't litterscruffs doesn't litter
 
Posts: 59
Karma: 100
Join Date: Jun 2020
Device: ePUB Kindle and iBooks
Thank you!
scruffs is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iBooks Author ePub3 Media Queries mattmc ePub 2 10-12-2016 05:55 PM
Media Queries for images as dropcaps in Kindle DX verydeepwater Kindle Formats 3 03-22-2014 05:35 PM
Media Queries eggheadbooks1 Kindle Formats 4 12-16-2013 02:32 AM
Calibre and Media Queries chrlsdrwn12 Calibre 0 12-05-2012 11:16 AM
Media Queries on Kindle Previewer AIR-WIZZ Kindle Developer's Corner 26 10-15-2012 10:10 AM


All times are GMT -4. The time now is 01:29 AM.


MobileRead.com is a privately owned, operated and funded community.