-
Notifications
You must be signed in to change notification settings - Fork 0
/
epub.css
65 lines (54 loc) · 1.75 KB
/
epub.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* Media query order matters here, as content of later media queries will override that of earlier ones) */
/* Default responses */
#platform_device::after {
content: "an ereader other than iBooks";
}
#orientation::after {
content: "either portrait or landscape mode";
}
/* Default orientation handling */
@media (orientation:landscape) {
#orientation::after {
content: "landscape mode";
}
}
@media (orientation:portrait) {
#orientation::after {
content: "portrait mode";
}
}
/* iBooks Platform Queries */
/* iBooks Desktop "device" pixel dimensions (tested on MacBook Retina) */
@media (min-device-width:1440px) and (max-device-width:2147483646px) {
#platform_device::after {
content: "iBooks Desktop for Mac";
}
/* Cannot find way to determine orientation or two-up view b/c
RS window can be resized at will and each page is separate viewport,
so no definitive max/min widths to rely on, and aspect-ratio queries
do not appear to be reliable */
#orientation::after {
content: "either portrait or landscape mode";
}
}
/* Standard iPad device pixel dimensions */
@media (min-device-width:768px) and (max-device-width:1024px) {
#platform_device::after {
content: "iBooks for iPad";
}
}
/* Standard iPad device pixel dimensions + two-up landscaped viewport
(in landscape view for iPad, each page is a separate viewport which is
less than 480 px) */
@media (min-device-width:768px) and (max-device-width:1024px) and
(max-width: 480px) {
#orientation::after {
content: "landscape mode (two-up view)";
}
}
/* Should work on iPhone 5s and below */
@media (max-device-width:480px) {
#platform_device::after {
content: "iBooks for iPhone";
}
}