padding in epub and pdf
[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 .frame
286 {
287     border: 1px darkgray solid;
288     padding: 1em;
289 }
290
291 hr.spacer
292 {
293         height: 3em;
294         visibility: hidden;
295 }
296
297 hr.spacer-line
298 {
299         margin: 0;
300         margin-top: 1.5em;
301         margin-bottom: 1.5em;
302         border: none;
303         border-bottom: 0.1em solid #000;
304 }
305
306 .spacer-asterisk
307 {
308         padding: 0;
309     margin: 0;
310     margin-top: 1.5em;
311     margin-bottom: 1.5em;
312         text-align: center;
313 }
314
315 div.person-list ol
316 {
317         list-style: none;
318         padding: 0;
319         padding-left: 1.5em;
320 }
321
322 .place-and-time
323 {
324         font-style: italic;
325 }
326
327 em.math
328 {
329         font-style: italic;
330 }
331 em.foreign-word
332 {
333     font-style: italic;
334 }
335 em.book-title
336 {
337     font-style: italic;
338 }
339 em.didaskalia
340 {
341     font-style: italic;
342 }
343
344 em.author-emphasis
345 {
346         letter-spacing: 0.1em;
347 }
348
349 .person-list em.person
350 {
351         font-style: normal;
352         /*font-variant: small-caps;*/
353         text-transform: uppercase;
354 }
355
356 .info
357 {
358         text-align: center;
359         margin-bottom: 1em;
360 }
361 .info div
362 {
363     text-align: center;
364 }
365
366 .info img
367 {
368         margin: 0;
369         margin-left: 2em;
370         margin-right: 2em;
371 }
372
373 p.minor {
374     font-size: 0.75em;
375 }
376 p.footer {
377     margin-top: 2em;
378 }