Preliminary math and tables support.
[librarian.git] / librarian / epub / style.css
1 @font-face {
2     font-family: "DejaVu Serif";
3     font-weight: normal;
4     font-style: normal;
5     src: url(DejaVuSerif.ttf);
6 }
7 @font-face {
8     font-family: "DejaVu Serif";
9     font-weight: bold;
10     font-style: normal;
11     src: url(DejaVuSerif-Bold.ttf);
12 }
13 @font-face {
14     font-family: "DejaVu Serif";
15     font-weight: normal;
16     font-style: italic;
17     src: url(DejaVuSerif-Italic.ttf);
18 }
19 @font-face {
20     font-family: "DejaVu Serif";
21     font-weight: bold;
22     font-style: italic;
23     src: url(DejaVuSerif-BoldItalic.ttf);
24 }
25
26 body, p, h1, h2, h3, h4 {
27     font-family: "DejaVu Serif", serif;
28 }
29
30
31 body
32 {
33     line-height: 1.5em;
34     margin: 0;
35 }
36
37 a
38 {
39     text-decoration: none;
40     color: #00e;
41 }
42
43 a img {
44     border: 0;
45 }
46
47 #book-text
48 {
49     margin: 2em;
50 }
51
52 @media amzn-kf8
53 {
54    #book-text
55     {
56         margin: 0;
57     }
58 }
59
60 /* =================================================== */
61 /* = Common elements: headings, paragraphs and lines = */
62 /* =================================================== */
63
64
65 .h2
66 {
67     font-size: 2em;
68     margin: 0;
69     margin-top: 1.5em;
70     font-weight: bold;
71     line-height: 1.5em;
72 }
73
74 .h3
75 {
76     text-align:left;
77     font-size: 1.5em;
78     margin-top: 1.5em;
79     font-weight: normal;
80     line-height: 1.5em;
81 }
82
83 .h4
84 {
85     font-size: 1em;
86     margin: 0;
87     margin-top: 1.5em;
88     line-height: 1.5em;
89 }
90
91 p
92 {
93     margin: 0;
94 }
95
96 /* ======================== */
97 /* = Footnotes and themes = */
98 /* ======================== */
99
100 .theme-begin
101 {
102     border-left: 0.1em solid #DDDDDD;
103     color: #777;
104     padding: 0 0.5em;
105     width: 7.5em;
106     font-style: normal;
107     font-weight: normal;
108     font-size: 0.875em;
109     float: right;
110     margin-right: -9.5em;
111     clear: both;
112     left: 40em;
113     line-height: 1.5em;
114     text-align: left;
115 }
116
117 .annotation
118 {
119     margin-bottom: 0.3em;
120     text-align: justify;
121 }
122
123 .block
124 {
125     font-size: 0.875em;
126     padding: 1em;
127 }
128
129
130 /* ============= */
131 /* = Numbering = */
132 /* ============= */
133
134 .anchor sup
135 {
136     line-height: 0;
137     font-size: 0.7em;
138 }
139
140 /* =================== */
141 /* = Custom elements = */
142 /* =================== */
143
144 .title-page
145 {
146     margin-top: 1.5em;
147 }
148
149 .title
150 {
151     font-size: 3em;
152     text-align: center;
153     line-height: 1.5em;
154     font-weight: bold;
155 }
156
157 .author
158 {
159     margin: 0;
160     text-align: center;
161     font-weight: bold;
162
163     font-size: 1.5em;
164     line-height: 1.5em;
165     margin-bottom: 0.25em;
166 }
167
168 .intitle
169 {
170     margin: 0;
171     text-align: center;
172     font-weight: bold;
173
174     font-size: 1.5em;
175     line-height: 1.5em;
176     margin-bottom: 0.25em;
177 }
178
179 .insubtitle
180 {
181     margin: 0;
182     text-align: center;
183     font-weight: bold;
184
185     font-size: 1em;
186     line-height: 1.5em;
187     margin-bottom: 0.25em;
188 }
189
190 .collection
191 {
192     margin: 0;
193     text-align: center;
194     font-weight: bold;
195
196     font-size: 1.125em;
197     line-height: 1.5em;
198     margin-bottom: -0.25em;
199 }
200
201 .subtitle
202 {
203     margin: 0;
204     text-align: center;
205     font-weight: bold;
206
207     font-size: 1.5em;
208     line-height: 1.5em;
209     margin-top: -0.25em;
210 }
211
212 div.didaskalia
213 {
214     font-style: italic;
215     margin-top: 0.5em;
216     margin-bottom: 0.5em;
217     margin-left: 1.5em;
218 }
219
220 .kwestia
221 {
222     margin-top: 0.5em;
223 }
224
225 .paragraph
226 {
227     text-align: justify;
228     margin: 0;
229     text-indent: 1.2em;
230 }
231
232 h1 + .paragraph, h2 + .paragraph
233 {
234     text-indent: 0;
235 }
236
237 h2 + .paragraph:first-letter
238 {
239     font-size: 1.6em;
240 }
241
242 .motto
243 {
244     text-align: justify;
245     font-style: italic;
246     margin-top: 1.5em;
247 }
248
249 .motto_podpis, .motto_podpis .paragraph
250 {
251     font-size: 0.875em;
252     text-align: right;
253     font-style: italic;
254 }
255
256 .fragment
257 {
258     border-bottom: 0.1em solid #999;
259     padding-bottom: 1.5em;
260 }
261
262 .note
263 {
264     text-align: right;
265     font-style: italic;
266     margin-top: 1em;
267     margin-bottom: 0.5em;
268 }
269
270 .note .paragraph
271 {
272     text-align: justify;
273 }
274
275 .dedication, .dedication .paragraph
276 {
277     text-align: right;
278     font-style: italic;
279 }
280
281 hr.spacer
282 {
283     height: 3em;
284     visibility: hidden;
285 }
286
287 hr.spacer-line
288 {
289     margin: 0;
290     margin-top: 1.5em;
291     margin-bottom: 1.5em;
292     border: none;
293     border-bottom: 0.1em solid #000;
294 }
295
296 .spacer-asterisk
297 {
298     padding: 0;
299     margin: 0;
300     margin-top: 1.5em;
301     margin-bottom: 1.5em;
302     text-align: center;
303 }
304
305 div.person-list ol
306 {
307     list-style: none;
308     padding: 0;
309     padding-left: 1.5em;
310 }
311
312 .place-and-time
313 {
314     font-style: italic;
315 }
316
317 em.math
318 {
319     font-style: italic;
320 }
321 em.foreign-word
322 {
323     font-style: italic;
324 }
325 em.book-title
326 {
327     font-style: italic;
328 }
329 em.didaskalia
330 {
331     font-style: italic;
332 }
333
334 em.author-emphasis
335 {
336     letter-spacing: 0.1em;
337 }
338
339 .person-list em.person
340 {
341     font-style: normal;
342     /*font-variant: small-caps;*/
343     text-transform: uppercase;
344 }
345
346 .info
347 {
348     text-align: center;
349     margin-bottom: 1em;
350 }
351 .info div
352 {
353     text-align: center;
354 }
355
356 .info img
357 {
358     margin: 0;
359     margin-left: 2em;
360     margin-right: 2em;
361 }
362
363 p.minor-info {
364     text-align: center;
365     margin-bottom: 1em;
366     font-size: 0.75em;
367 }
368 p.footer {
369     margin-top: 2em;
370 }
371
372 table {
373     border-collapse: collapse;
374 }
375 td {
376     border: 1px solid black;
377 }