top align in tables
[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 hr.spacer
276 {
277     height: 3em;
278     visibility: hidden;
279 }
280
281 hr.spacer-line
282 {
283     margin: 0;
284     margin-top: 1.5em;
285     margin-bottom: 1.5em;
286     border: none;
287     border-bottom: 0.1em solid #000;
288 }
289
290 .spacer-asterisk
291 {
292     padding: 0;
293     margin: 0;
294     margin-top: 1.5em;
295     margin-bottom: 1.5em;
296     text-align: center;
297 }
298
299 div.person-list ol
300 {
301     list-style: none;
302     padding: 0;
303     padding-left: 1.5em;
304 }
305
306 .place-and-time
307 {
308     font-style: italic;
309 }
310
311 em.math
312 {
313     font-style: italic;
314 }
315 em.foreign-word
316 {
317     font-style: italic;
318 }
319 em.book-title
320 {
321     font-style: italic;
322 }
323 em.didaskalia
324 {
325     font-style: italic;
326 }
327
328 em.author-emphasis
329 {
330     letter-spacing: 0.1em;
331 }
332
333 em.wieksze-odstepy
334 {
335     font-style: normal;
336     word-spacing: 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     width: 100%;
375 }
376 table.border th, table.border td {
377     border: 1px solid black;
378 }
379
380 th, td {
381     vertical-align: top;
382 }