Fixed #671: no text styling on themes
[wolnelektury.git] / wolnelektury / static / css / master.book.css
1 body {
2     font-size: 16px;
3     font: Georgia, "Times New Roman", serif;
4     line-height: 1.5em;
5     margin: 0;
6 }
7
8 a {
9     color: blue;
10     text-decoration: none;
11 }
12
13 #book-text {
14     margin: 3em;
15     max-width: 36em;
16 }
17
18 /* ================================== */
19 /* = Header with logo and menu      = */
20 /* ================================== */
21 #header {
22     margin: 3.4em 0 0 1.4em;
23 }
24
25 img {
26     border: none;
27 }
28
29
30 #menu {
31     position: fixed;
32     left: 0em;
33     top: 0em;
34     width: 100%;
35     height: 1.5em;
36     background: #333;
37     color: #FFF;
38     opacity: 0.9;
39 }
40
41 #menu ul {
42     list-style: none;
43     padding: 0;
44     margin: 0;
45 }
46
47 #menu li a {
48     display: block;
49     float: left;
50     width: 7.5em;
51     height: 1.5em;
52     margin-left: 0.5em;
53     text-align: center;
54     color: #FFF;
55 }
56
57 #menu li a:hover, #menu li a:active {
58     color: #000;
59     background: #FFF url(/static/img/arrow-down.png) no-repeat center right;
60 }
61
62 #menu li a.selected {
63     color: #000;
64     background: #FFF url(/static/img/arrow-up.png) no-repeat center right;
65 }
66
67 #toc, #themes {
68     position: fixed;
69     left: 0em;
70     top: 1.5em;
71     width: 37em;
72     padding: 1.5em;
73     background: #FFF;
74     border-bottom: 0.25em solid #DDD;
75     border-right: 0.25em solid #DDD;
76     display: none;
77     height: 16em;
78     overflow-x: hidden;
79     overflow-y: auto;
80     opacity: 0.9;
81     z-index: 99;
82 }
83
84 #toc ol, #themes ol {
85     list-style: none;
86     padding: 0;
87     margin: 0;
88 }
89
90 #toc ol li {
91     font-weight: bold;
92 }
93
94 #toc ol ol {
95     padding: 0 0 1.5em 1.5em;
96     margin: 0;
97 }
98
99 #toc ol ol li {
100     font-weight: normal;
101 }
102
103 #toc h2 {
104     display: none;
105 }
106
107 #toc .anchor {
108     float: none;
109     margin: 0;
110     color: blue;
111     font-size: 16px;
112     position: inherit;
113 }
114
115 /* =================================================== */
116 /* = Common elements: headings, paragraphs and lines = */
117 /* =================================================== */
118 h1 {
119     font-size: 3em;
120     margin: 1.5em 0;
121     text-align: center;
122     line-height: 1.5em;
123     font-weight: bold;
124 }
125
126 h2 {
127     font-size: 2em;
128     margin: 1.5em 0 0;
129     font-weight: bold;
130     line-height: 1.5em;
131 }
132
133 h3 {
134     font-size: 1.5em;
135     margin: 1.5em 0 0;
136     font-weight: normal;
137     line-height: 1.5em;
138 }
139
140 h4 {
141     font-size: 1em;
142     margin: 1.5em 0 0;
143     line-height: 1.5em;
144 }
145
146 p {
147     margin: 0;
148 }
149
150 /* ======================== */
151 /* = Footnotes and themes = */
152 /* ======================== */
153 .theme-begin {
154     border-left: 0.1em solid #DDDDDD;
155     color: #777;
156     padding: 0 0.5em;
157     width: 7.5em;
158
159     font-style: normal;
160     font-weight: normal;
161     font-variant: normal;
162     letter-spacing: 0;
163     text-transform: none;
164     text-decoration: none;
165
166     font-size: 16px;
167     float: right;
168     margin-right: -9.5em;
169     clear: both;
170     left: 40em;
171     line-height: 1.5em;
172     text-align: left;
173 }
174
175 .annotation {
176     font-style: normal;
177     font-weight: normal;
178     font-size: 12px;
179 }
180
181 #footnotes .annotation {
182     display: block;
183     float: left;
184     width: 2.5em;
185     clear: both;
186 }
187
188 #footnotes div {
189     margin: 1.5em 0 0 0;
190 }
191
192 #footnotes p {
193     margin-left: 2.5em;
194     font-size: 0.875em;
195 }
196
197 blockquote {
198     font-size: 0.875em;
199 }
200
201 /* ============= */
202 /* = Numbering = */
203 /* ============= */
204 .verse, .paragraph {
205         position:relative;
206 }
207 .anchor {
208     position: absolute;
209     margin: -0.25em -0.5em;
210     left: -3em;
211     color: #777;
212     font-size: 12px;
213     width: 2em;
214     text-align: center;
215     padding: 0.25em 0.5em;
216     line-height: 1.5em;
217 }
218
219 .anchor:hover, #book-text .anchor:active {
220     color: #FFF;
221     background-color: #CCC;
222 }
223
224 /* =================== */
225 /* = Custom elements = */
226 /* =================== */
227 span.author {
228     font-size: 0.5em;
229     display: block;
230     line-height: 1.5em;
231     margin-bottom: 0.25em;
232 }
233
234 span.collection {
235     font-size: 0.375em;
236     display: block;
237     line-height: 1.5em;
238     margin-bottom: -0.25em;
239 }
240
241 span.subtitle {
242     font-size: 0.5em;
243     display: block;
244     line-height: 1.5em;
245     margin-top: -0.25em;
246 }
247
248 div.didaskalia {
249     font-style: italic;
250     margin: 0.5em 0 0 1.5em;
251 }
252
253 div.kwestia {
254     margin: 0.5em 0 0;
255 }
256
257 div.stanza {
258     margin: 1.5em 0 0;
259 }
260
261 div.kwestia div.stanza {
262     margin: 0;
263 }
264
265 p.paragraph {
266     text-align: justify;
267     margin: 1.5em 0 0;
268 }
269
270 p.motto {
271     text-align: justify;
272     font-style: italic;
273     margin: 1.5em 0 0;
274 }
275
276 p.motto_podpis {
277     font-size: 0.875em;
278     text-align: right;
279 }
280
281 div.fragment {
282     border-bottom: 0.1em solid #999;
283     padding-bottom: 1.5em;
284 }
285
286 div.note p, div.dedication p, div.note p.paragraph, div.dedication p.paragraph {
287     text-align: right;
288     font-style: italic;
289 }
290
291 hr.spacer {
292     height: 3em;
293     visibility: hidden;
294 }
295
296 hr.spacer-line {
297     margin: 1.5em 0;
298     border: none;
299     border-bottom: 0.1em solid #000;
300 }
301
302 p.spacer-asterisk {
303     padding: 0;
304     margin: 1.5em 0;
305     text-align: center;
306 }
307
308 div.person-list ol {
309     list-style: none;
310     padding: 0 0 0 1.5em;
311 }
312
313 p.place-and-time {
314     font-style: italic;
315 }
316
317 em.math, em.foreign-word, em.book-title, em.didaskalia {
318     font-style: italic;
319 }
320
321 em.author-emphasis {
322     letter-spacing: 0.1em;
323 }
324
325 em.person {
326     font-style: normal;
327     font-variant: small-caps;
328 }
329
330
331 /* =================================== */
332 /* = Hide some elements for printing = */
333 /* =================================== */
334
335 @media print {
336     #menu {display: none;}
337 }