[ePub] Fix for inconsistent styles between on-line reader and ePub.
[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 sup
144 {
145         vertical-align: text-top;
146         font-size: 0.7em;
147 }       
148
149 /* =================== */
150 /* = Custom elements = */
151 /* =================== */
152
153 .title-page
154 {
155     margin-top: 1.5em;
156 }
157
158 .title
159 {
160     font-size: 3em;
161     text-align: center;
162     line-height: 1.5em;
163     font-weight: bold;
164 }
165
166 .author
167 {
168     margin: 0;
169     text-align: center;
170     font-weight: bold;
171
172     font-size: 1.5em;
173     line-height: 1.5em;
174     margin-bottom: 0.25em;
175 }
176
177 .intitle
178 {
179     margin: 0;
180     text-align: center;
181     font-weight: bold;
182
183     font-size: 1.5em;
184     line-height: 1.5em;
185     margin-bottom: 0.25em;
186 }
187
188 .insubtitle
189 {
190     margin: 0;
191     text-align: center;
192     font-weight: bold;
193
194     font-size: 1em;
195     line-height: 1.5em;
196     margin-bottom: 0.25em;
197 }
198
199 .collection
200 {
201     margin: 0;
202     text-align: center;
203     font-weight: bold;
204
205         font-size: 1.125em;
206         line-height: 1.5em;
207         margin-bottom: -0.25em;
208 }
209
210 .subtitle
211 {
212     margin: 0;
213     text-align: center;
214     font-weight: bold;
215
216         font-size: 1.5em;
217         line-height: 1.5em;
218         margin-top: -0.25em;
219 }
220
221 div.didaskalia
222 {
223         font-style: italic;
224         margin-top: 0.5em;
225         margin-left: 1.5em;
226 }
227
228 .kwestia
229 {
230         margin-top: 0.5em;
231 }
232
233 .paragraph
234 {
235         text-align: justify;
236         margin: 0
237 }
238
239 .paragraph + .paragraph
240 {
241         text-indent: 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, .motto_podpis .paragraph
252 {
253         font-size: 0.875em;
254         text-align: right;
255 }
256
257 .fragment
258 {
259         border-bottom: 0.1em solid #999;
260         padding-bottom: 1.5em;
261 }
262
263 .note, .note .paragraph
264 {
265         text-align: right;
266         font-style: italic;
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 .person-list em.person
334 {
335         font-style: normal;
336         /*font-variant: small-caps;*/
337         text-transform: uppercase;
338 }
339
340 .info
341 {
342         text-align: center;
343         margin-bottom: 1em;
344 }
345 .info div
346 {
347     text-align: center;
348 }
349
350 .info img
351 {
352         margin: 0;
353         margin-left: 2em;
354         margin-right: 2em;
355 }
356
357 p.minor-info {
358     text-align: center;
359     margin-bottom: 1em;
360     font-size: 0.75em;
361 }
362 p.footer {
363     margin-top: 2em;
364 }