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