letters
[librarian.git] / src / librarian / res / 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 nav#id li {
56     list-style: none;
57 }
58
59 /* =================================================== */
60 /* = Common elements: headings, paragraphs and lines = */
61 /* =================================================== */
62
63
64 .h2
65 {
66     font-size: 2em;
67     margin: 0;
68     margin-top: 1.5em;
69     font-weight: bold;
70     line-height: 1.5em;
71 }
72
73 .h3
74 {
75     text-align:left;
76     font-size: 1.5em;
77     margin-top: 1.5em;
78     font-weight: normal;
79     line-height: 1.5em;
80 }
81
82 .h4
83 {
84     font-size: 1em;
85     margin: 0;
86     margin-top: 1.5em;
87     line-height: 1.5em;
88 }
89
90 p
91 {
92     margin: 0;
93 }
94
95 /* ======================== */
96 /* = Footnotes and themes = */
97 /* ======================== */
98
99 .theme-begin
100 {
101     border-left: 0.1em solid #DDDDDD;
102     color: #777;
103     padding: 0 0.5em;
104     width: 7.5em;
105     font-style: normal;
106     font-weight: normal;
107     font-size: 0.875em;
108     float: right;
109     margin-right: -9.5em;
110     clear: both;
111     left: 40em;
112     line-height: 1.5em;
113     text-align: left;
114 }
115
116 .annotation
117 {
118     margin-bottom: 0.3em;
119     text-align: justify;
120 }
121
122 .block
123 {
124     font-size: 0.875em;
125     padding: 1em;
126 }
127
128
129 /* ============= */
130 /* = Numbering = */
131 /* ============= */
132
133 .anchor sup
134 {
135     line-height: 0;
136     font-size: 0.7em;
137 }
138
139 /* =================== */
140 /* = Custom elements = */
141 /* =================== */
142
143 .title-page
144 {
145     margin-top: 1.5em;
146 }
147
148 .title
149 {
150     font-size: 3em;
151     text-align: center;
152     line-height: 1.5em;
153     font-weight: bold;
154 }
155
156 .author
157 {
158     margin: 0;
159     text-align: center;
160     font-weight: bold;
161
162     font-size: 1.5em;
163     line-height: 1.5em;
164     margin-bottom: 0.25em;
165 }
166
167 .intitle
168 {
169     margin: 0;
170     text-align: center;
171     font-weight: bold;
172
173     font-size: 1.5em;
174     line-height: 1.5em;
175     margin-bottom: 0.25em;
176 }
177
178 .insubtitle
179 {
180     margin: 0;
181     text-align: center;
182     font-weight: bold;
183
184     font-size: 1em;
185     line-height: 1.5em;
186     margin-bottom: 0.25em;
187 }
188
189 .collection
190 {
191     margin: 0;
192     text-align: center;
193     font-weight: bold;
194
195     font-size: 1.125em;
196     line-height: 1.5em;
197     margin-bottom: -0.25em;
198 }
199
200 .subtitle
201 {
202     margin: 0;
203     text-align: center;
204     font-weight: bold;
205
206     font-size: 1.5em;
207     line-height: 1.5em;
208     margin-top: -0.25em;
209 }
210
211 div.didaskalia
212 {
213     font-style: italic;
214     margin-top: 0.5em;
215     margin-bottom: 0.5em;
216     margin-left: 1.5em;
217 }
218
219 .kwestia
220 {
221     margin-top: 0.5em;
222 }
223
224 .paragraph
225 {
226     text-align: justify;
227     margin: 0;
228     text-indent: 1.2em;
229 }
230 .paragraph.nagloweklistu {
231     text-align: center;
232     margin: .5em 0;
233     text-indent: 0;
234 }
235 .paragraph.miejscedata, .paragraph.pozdrowienie, .paragraph.podpis {
236     text-align: right;
237     text-indent: 0;
238 }
239
240 h1 + .paragraph, h2 + .paragraph
241 {
242     text-indent: 0;
243 }
244
245 h2 + .paragraph:first-letter
246 {
247     font-size: 1.6em;
248 }
249
250 .motto
251 {
252     text-align: justify;
253     font-style: italic;
254     margin-top: 1.5em;
255 }
256
257 .motto_podpis, .motto_podpis .paragraph
258 {
259     font-size: 0.875em;
260     text-align: right;
261     font-style: italic;
262 }
263
264 .fragment
265 {
266     border-bottom: 0.1em solid #999;
267     padding-bottom: 1.5em;
268 }
269
270 .dedication, .dedication .paragraph
271 {
272     text-align: right;
273     font-style: italic;
274 }
275
276 .note
277 {
278     text-align: right;
279     font-style: italic;
280     margin-top: 1em;
281     margin-bottom: 0.5em;
282 }
283
284 .note .paragraph
285 {
286     text-align: justify;
287 }
288
289 .frame
290 {
291     border: 1px darkgray solid;
292     padding: 1em;
293     margin-top: 1em;
294     margin-bottom: 1em;
295 }
296
297 hr.spacer
298 {
299     height: 3em;
300     visibility: hidden;
301 }
302
303 hr.spacer-line
304 {
305     margin: 0;
306     margin-top: 1.5em;
307     margin-bottom: 1.5em;
308     border: none;
309     border-bottom: 0.1em solid #000;
310 }
311
312 .spacer-asterisk
313 {
314     padding: 0;
315     margin: 0;
316     margin-top: 1.5em;
317     margin-bottom: 1.5em;
318     text-align: center;
319 }
320
321 div.person-list ol
322 {
323     list-style: none;
324     padding: 0;
325     padding-left: 1.5em;
326 }
327
328 .place-and-time
329 {
330     font-style: italic;
331 }
332
333 em.math
334 {
335     font-style: italic;
336 }
337 em.foreign-word
338 {
339     font-style: italic;
340 }
341 em.book-title
342 {
343     font-style: italic;
344 }
345 em.didaskalia
346 {
347     font-style: italic;
348 }
349
350 em.author-emphasis
351 {
352     letter-spacing: 0.1em;
353 }
354
355 em.wieksze-odstepy
356 {
357     font-style: normal;
358     word-spacing: 1em;
359 }
360
361 .person-list em.person
362 {
363     font-style: normal;
364     /*font-variant: small-caps;*/
365     text-transform: uppercase;
366 }
367
368 .info
369 {
370     text-align: center;
371     margin-bottom: 1em;
372 }
373 .info div
374 {
375     text-align: center;
376 }
377
378 .info img
379 {
380     margin: 0;
381     margin-left: 2em;
382     margin-right: 2em;
383 }
384
385 p.minor-info {
386     text-align: center;
387     margin-bottom: 1em;
388     font-size: 0.75em;
389 }
390 p.footer {
391     margin-top: 2em;
392 }
393
394 table {
395     border-collapse: collapse;
396     width: 100%;
397 }
398 table.border th, table.border td {
399     border: 1px solid black;
400 }
401
402 th, td {
403     vertical-align: top;
404 }
405
406 .fundraising {
407         margin: 2em 1em 0;
408         border: 2px solid black;
409         padding: 2em 2em;
410         text-align: center;
411         font-size: 1.3em;
412         line-height: 1.4em;
413 }
414
415 .rownolegly-blok {
416     border-left: 2px solid red;
417     padding-left: .5em;
418 }
419 .rownolegly-blok.first {
420     border-radius: 0 0 0 .75em;
421 }
422 .rownolegly-blok.last {
423     border-radius: .75em 0 0 0;
424 }