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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
@charset "UTF-8";
/* Gitden & Namo default to 16px font-size; bump it to 19px (118.75%) */
body.gitden-reader,
body.namo-epub-library {
font-size: 118.75%;
}
/* Use tighter margins and smaller font (18px) on phones (Nexus 4 and smaller) */
@media only screen and (max-device-width: 768px) and (max-device-height: 1280px), only screen and (max-device-width: 1280px) and (max-device-height: 768px) {
body.gitden-reader,
body.namo-epub-library {
font-size: 112.5%;
}
}
body.gitden-reader pre {
white-space: pre-wrap !important; /* Gitden must be applying white-space: pre !important */
}
body h1, body h2, body h3:not(.list-heading), body h4, body h5, body h6,
h1 :not(code), h2 :not(code), h3:not(.list-heading) :not(code), h4 :not(code), h5 :not(code), h6 :not(code) {
/* !important required to override custom font setting in Kindle / Gitden / Namo */
/* Gitden requires the extra weight of a parent selector; it also makes headings bold when custom font is specified */
/* Kindle and Gitden require the override on heading child elements */
font-family: "M+ 1p", sans-serif !important;
}
/* QUESTION what about nested elements inside code? */
body code, body kbd, body :not(.verse) > pre, :not(.verse) > pre :not(code) {
/* !important required to override custom font setting in Kindle / Gitden / Namo */
/* Gitden requires the extra weight of a parent selector */
/* Kindle and Gitden require the override on pre child elements */
font-family: "M+ 1mn", monospace !important;
}
/* TODO: DO we still need this? */
@media amzn-kf8 {
/* Kindle does its own margin management, so don't use an explicit margin */
/*body {
margin: 0 !important;
}*/
/* text-rendering is the only way to enable kerning in Kindle (and Calibre, though it seems to kern automatically) */
/* personally, I think Kindle overdoes kerning, but we're running with it for now */
/* text-rendering: optimizeLegibility kills certain Kindle eInk devices */
/*h1, h2, h3, h4, h5, h6,
body p, li, dd, blockquote > footer,
th, td, figcaption, caption {
text-rendering: optimizeLegibility;
}*/
h1.chapter-title .subtitle::after {
display: table;
content: ' ';
clear: both;
}
}
.chapter-header p.byline {
height: auto; /* Aldiko requires this value to be 0; reset it for all others */
}
/* Font-based icons */
.icon {
display: inline-block;
/* !important required to override custom font setting in Kindle (since .icon can appear inside a span) */
font-family: "FontAwesome" !important;
font-style: normal !important;
font-weight: normal !important;
line-height: 1;
}
.icon-1_5x {
padding: 0 0.25em;
-webkit-transform: scale(1.5, 1.5);
transform: scale(1.5, 1.5);
}
.icon-2x {
padding: 0 0.5em;
-webkit-transform: scale(2, 2);
transform: scale(2, 2);
}
.icon-small {
font-size: 0.85em;
vertical-align: 0.075em;
}
.icon-1_5em {
font-size: 1.5em;
}
.icon-2em {
font-size: 2em;
}
.icon-3em {
font-size: 3em;
}
.icon-4em {
font-size: 4em;
}
.icon-rotate-90 {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.icon-rotate-90i {
-webkit-transform: scale(-1, 1) rotate(90deg);
transform: scale(-1, 1) rotate(90deg);
}
.icon-rotate-180 {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.icon-rotate-180i {
-webkit-transform: scale(-1, 1) rotate(180deg);
transform: scale(-1, 1) rotate(180deg);
}
.icon-rotate-270 {
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
.icon-rotate-270i {
-webkit-transform: scale(-1, 1) rotate(270deg);
transform: scale(-1, 1) rotate(270deg);
}
.icon-flip-h {
-webkit-transform: scale(-1, 1);
transform: scale(-1, 1);
}
.icon-flip-v {
-webkit-transform: scale(1, -1);
transform: scale(1, -1);
}
|