book2mobi (using calibre)
[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-top: 1.5em;
242 }
243
244 .motto
245 {
246         text-align: justify;
247         font-style: italic;
248         margin-top: 1.5em;
249 }
250
251 .motto_podpis
252 {
253         font-size: 0.875em;
254         text-align: right;
255 }
256
257 div.fragment
258 {
259         border-bottom: 0.1em solid #999;
260         padding-bottom: 1.5em;
261 }
262
263 div.note
264 {
265         text-align: right;
266         font-style: italic;
267 }
268 div.note div.paragraph
269 {
270     text-align: right;
271     font-style: italic;
272 }
273 div.dedication
274 {
275     text-align: right;
276     font-style: italic;
277 }
278 div.dedication div.paragaph
279 {
280     text-align: right;
281     font-style: italic;
282 }
283
284
285 hr.spacer
286 {
287         height: 3em;
288         visibility: hidden;
289 }
290
291 hr.spacer-line
292 {
293         margin: 0;
294         margin-top: 1.5em;
295         margin-bottom: 1.5em;
296         border: none;
297         border-bottom: 0.1em solid #000;
298 }
299
300 .spacer-asterisk
301 {
302         padding: 0;
303     margin: 0;
304     margin-top: 1.5em;
305     margin-bottom: 1.5em;
306         text-align: center;
307 }
308
309 div.person-list ol
310 {
311         list-style: none;
312         padding: 0;
313         padding-left: 1.5em;
314 }
315
316 .place-and-time
317 {
318         font-style: italic;
319 }
320
321 em.math
322 {
323         font-style: italic;
324 }
325 em.foreign-word
326 {
327     font-style: italic;
328 }
329 em.book-title
330 {
331     font-style: italic;
332 }
333 em.didaskalia
334 {
335     font-style: italic;
336 }
337
338 em.author-emphasis
339 {
340         letter-spacing: 0.1em;
341 }
342
343 .person-list em.person
344 {
345         font-style: normal;
346         /*font-variant: small-caps;*/
347         text-transform: uppercase;
348 }
349
350 .info
351 {
352         text-align: center;
353         margin-bottom: 1em;
354 }
355 .info div
356 {
357     text-align: center;
358 }
359
360 .info img
361 {
362         margin: 0;
363         margin-left: 2em;
364         margin-right: 2em;
365 }
366
367 p.minor {
368     font-size: 0.75em;
369 }
370 p.footer {
371     margin-top: 2em;
372 }