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