6c42777eb3dbb9def69db2aad2e18990b9fad590
[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 }
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 em.wieksze-odstepy
340 {
341     font-style: normal;
342     word-spacing: 1em;
343 }
344
345 .person-list em.person
346 {
347     font-style: normal;
348     /*font-variant: small-caps;*/
349     text-transform: uppercase;
350 }
351
352 .info
353 {
354     text-align: center;
355     margin-bottom: 1em;
356 }
357 .info div
358 {
359     text-align: center;
360 }
361
362 .info img
363 {
364     margin: 0;
365     margin-left: 2em;
366     margin-right: 2em;
367 }
368
369 p.minor-info {
370     text-align: center;
371     margin-bottom: 1em;
372     font-size: 0.75em;
373 }
374 p.footer {
375     margin-top: 2em;
376 }
377
378 table {
379     border-collapse: collapse;
380     width: 100%;
381 }
382 table.border th, table.border td {
383     border: 1px solid black;
384 }
385
386 th, td {
387     vertical-align: top;
388 }