]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | |
2 | /*============================================================================= | |
3 | Copyright (c) 2004 Joel de Guzman | |
4 | http://spirit.sourceforge.net/ | |
5 | ||
6 | Copyright 2013 Niall Douglas additions for colors and alignment. | |
7 | Copyright 2013 Paul A. Bristow additions for more colors and alignments. | |
8 | ||
9 | Distributed under the Boost Software License, Version 1.0. (See accompany- | |
10 | ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
11 | =============================================================================*/ | |
12 | ||
13 | /*============================================================================= | |
14 | Body defaults | |
15 | =============================================================================*/ | |
16 | ||
17 | body | |
18 | { | |
19 | margin: 1em; | |
20 | font-family: sans-serif; | |
21 | } | |
22 | ||
23 | /*============================================================================= | |
24 | Paragraphs | |
25 | =============================================================================*/ | |
26 | ||
27 | p | |
28 | { | |
29 | text-align: left; | |
30 | font-size: 10pt; | |
31 | line-height: 1.15; | |
32 | } | |
33 | ||
34 | /*============================================================================= | |
35 | Program listings | |
36 | =============================================================================*/ | |
37 | ||
38 | /* Code on paragraphs */ | |
39 | p tt.computeroutput | |
40 | { | |
41 | font-size: 9pt; | |
42 | } | |
43 | ||
44 | pre.synopsis | |
45 | { | |
46 | font-size: 9pt; | |
47 | margin: 1pc 4% 0pc 4%; | |
48 | padding: 0.5pc 0.5pc 0.5pc 0.5pc; | |
49 | } | |
50 | ||
51 | .programlisting, | |
52 | .screen | |
53 | { | |
54 | font-size: 9pt; | |
55 | display: block; | |
56 | margin: 1pc 4% 0pc 4%; | |
57 | padding: 0.5pc 0.5pc 0.5pc 0.5pc; | |
58 | } | |
59 | ||
60 | /* Program listings in tables don't get borders */ | |
61 | td .programlisting, | |
62 | td .screen | |
63 | { | |
64 | margin: 0pc 0pc 0pc 0pc; | |
65 | padding: 0pc 0pc 0pc 0pc; | |
66 | } | |
67 | ||
68 | /*============================================================================= | |
69 | Headings | |
70 | =============================================================================*/ | |
71 | ||
72 | h1, h2, h3, h4, h5, h6 | |
73 | { | |
74 | text-align: left; | |
75 | margin: 1em 0em 0.5em 0em; | |
76 | font-weight: bold; | |
77 | } | |
78 | ||
79 | h1 { font-size: 140%; } | |
80 | h2 { font-weight: bold; font-size: 140%; } | |
81 | h3 { font-weight: bold; font-size: 130%; } | |
82 | h4 { font-weight: bold; font-size: 120%; } | |
83 | h5 { font-weight: normal; font-style: italic; font-size: 110%; } | |
84 | h6 { font-weight: normal; font-style: italic; font-size: 100%; } | |
85 | ||
86 | /* Top page titles */ | |
87 | title, | |
88 | h1.title, | |
89 | h2.title | |
90 | h3.title, | |
91 | h4.title, | |
92 | h5.title, | |
93 | h6.title, | |
94 | .refentrytitle | |
95 | { | |
96 | font-weight: bold; | |
97 | margin-bottom: 1pc; | |
98 | } | |
99 | ||
100 | h1.title { font-size: 140% } | |
101 | h2.title { font-size: 140% } | |
102 | h3.title { font-size: 130% } | |
103 | h4.title { font-size: 120% } | |
104 | h5.title { font-size: 110% } | |
105 | h6.title { font-size: 100% } | |
106 | ||
107 | .section h1 | |
108 | { | |
109 | margin: 0em 0em 0.5em 0em; | |
110 | font-size: 140%; | |
111 | } | |
112 | ||
113 | .section h2 { font-size: 140% } | |
114 | .section h3 { font-size: 130% } | |
115 | .section h4 { font-size: 120% } | |
116 | .section h5 { font-size: 110% } | |
117 | .section h6 { font-size: 100% } | |
118 | ||
119 | /* Code on titles */ | |
120 | h1 tt.computeroutput { font-size: 140% } | |
121 | h2 tt.computeroutput { font-size: 140% } | |
122 | h3 tt.computeroutput { font-size: 130% } | |
123 | h4 tt.computeroutput { font-size: 130% } | |
124 | h5 tt.computeroutput { font-size: 130% } | |
125 | h6 tt.computeroutput { font-size: 130% } | |
126 | ||
127 | ||
128 | /*============================================================================= | |
129 | Author | |
130 | =============================================================================*/ | |
131 | ||
132 | h3.author | |
133 | { | |
134 | font-size: 100% | |
135 | } | |
136 | ||
137 | /*============================================================================= | |
138 | Lists | |
139 | =============================================================================*/ | |
140 | ||
141 | li | |
142 | { | |
143 | font-size: 10pt; | |
144 | line-height: 1.3; | |
145 | } | |
146 | ||
147 | /* Unordered lists */ | |
148 | ul | |
149 | { | |
150 | text-align: left; | |
151 | } | |
152 | ||
153 | /* Ordered lists */ | |
154 | ol | |
155 | { | |
156 | text-align: left; | |
157 | } | |
158 | ||
159 | /*============================================================================= | |
160 | Links | |
161 | =============================================================================*/ | |
162 | ||
163 | a | |
164 | { | |
165 | text-decoration: none; /* no underline */ | |
166 | } | |
167 | ||
168 | a:hover | |
169 | { | |
170 | text-decoration: underline; | |
171 | } | |
172 | ||
173 | /*============================================================================= | |
174 | Spirit style navigation | |
175 | =============================================================================*/ | |
176 | ||
177 | .spirit-nav | |
178 | { | |
179 | text-align: right; | |
180 | } | |
181 | ||
182 | .spirit-nav a | |
183 | { | |
184 | color: white; | |
185 | padding-left: 0.5em; | |
186 | } | |
187 | ||
188 | .spirit-nav img | |
189 | { | |
190 | border-width: 0px; | |
191 | } | |
192 | ||
193 | /*============================================================================= | |
194 | Copyright footer | |
195 | =============================================================================*/ | |
196 | .copyright-footer | |
197 | { | |
198 | text-align: right; | |
199 | font-size: 70%; | |
200 | } | |
201 | ||
202 | .copyright-footer p | |
203 | { | |
204 | text-align: right; | |
205 | font-size: 80%; | |
206 | } | |
207 | ||
208 | /*============================================================================= | |
209 | Table of contents | |
210 | =============================================================================*/ | |
211 | ||
212 | div.toc | |
213 | { | |
214 | margin: 1pc 4% 0pc 4%; | |
215 | padding: 0.1pc 1pc 0.1pc 1pc; | |
216 | font-size: 80%; | |
217 | line-height: 1.15; | |
218 | } | |
219 | ||
220 | .boost-toc | |
221 | { | |
222 | float: right; | |
223 | padding: 0.5pc; | |
224 | } | |
225 | ||
226 | /* Code on toc */ | |
227 | .toc .computeroutput { font-size: 120% } | |
228 | ||
229 | /* No margin on nested menus */ | |
230 | ||
231 | .toc dl dl { margin: 0; } | |
232 | ||
233 | /*============================================================================= | |
234 | Tables | |
235 | =============================================================================*/ | |
236 | ||
237 | .table-title, | |
238 | div.table p.title | |
239 | { | |
240 | margin-left: 4%; | |
241 | padding-right: 0.5em; | |
242 | padding-left: 0.5em; | |
243 | } | |
244 | ||
245 | .informaltable table, | |
246 | .table table | |
247 | { | |
248 | width: 92%; | |
249 | margin-left: 4%; | |
250 | margin-right: 4%; | |
251 | } | |
252 | ||
253 | div.informaltable table, | |
254 | div.table table | |
255 | { | |
256 | padding: 4px; | |
257 | } | |
258 | ||
259 | /* Table Cells */ | |
260 | div.informaltable table tr td, | |
261 | div.table table tr td | |
262 | { | |
263 | padding: 0.5em; | |
264 | text-align: left; | |
265 | font-size: 9pt; | |
266 | } | |
267 | ||
268 | div.informaltable table tr th, | |
269 | div.table table tr th | |
270 | { | |
271 | padding: 0.5em 0.5em 0.5em 0.5em; | |
272 | border: 1pt solid white; | |
273 | font-size: 80%; | |
274 | } | |
275 | ||
276 | table.simplelist | |
277 | { | |
278 | width: auto !important; | |
279 | margin: 0em !important; | |
280 | padding: 0em !important; | |
281 | border: none !important; | |
282 | } | |
283 | table.simplelist td | |
284 | { | |
285 | margin: 0em !important; | |
286 | padding: 0em !important; | |
287 | text-align: left !important; | |
288 | font-size: 9pt !important; | |
289 | border: none !important; | |
290 | } | |
291 | ||
292 | /*============================================================================= | |
293 | Blurbs | |
294 | =============================================================================*/ | |
295 | ||
296 | div.note, | |
297 | div.tip, | |
298 | div.important, | |
299 | div.caution, | |
300 | div.warning, | |
301 | p.blurb | |
302 | { | |
303 | font-size: 9pt; /* A little bit smaller than the main text */ | |
304 | line-height: 1.2; | |
305 | display: block; | |
306 | margin: 1pc 4% 0pc 4%; | |
307 | padding: 0.5pc 0.5pc 0.5pc 0.5pc; | |
308 | } | |
309 | ||
310 | p.blurb img | |
311 | { | |
312 | padding: 1pt; | |
313 | } | |
314 | ||
315 | /*============================================================================= | |
316 | Variable Lists | |
317 | =============================================================================*/ | |
318 | ||
319 | div.variablelist | |
320 | { | |
321 | margin: 1em 0; | |
322 | } | |
323 | ||
324 | /* Make the terms in definition lists bold */ | |
325 | div.variablelist dl dt, | |
326 | span.term | |
327 | { | |
328 | font-weight: bold; | |
329 | font-size: 10pt; | |
330 | } | |
331 | ||
332 | div.variablelist table tbody tr td | |
333 | { | |
334 | text-align: left; | |
335 | vertical-align: top; | |
336 | padding: 0em 2em 0em 0em; | |
337 | font-size: 10pt; | |
338 | margin: 0em 0em 0.5em 0em; | |
339 | line-height: 1; | |
340 | } | |
341 | ||
342 | div.variablelist dl dt | |
343 | { | |
344 | margin-bottom: 0.2em; | |
345 | } | |
346 | ||
347 | div.variablelist dl dd | |
348 | { | |
349 | margin: 0em 0em 0.5em 2em; | |
350 | font-size: 10pt; | |
351 | } | |
352 | ||
353 | div.variablelist table tbody tr td p, | |
354 | div.variablelist dl dd p | |
355 | { | |
356 | margin: 0em 0em 0.5em 0em; | |
357 | line-height: 1; | |
358 | } | |
359 | ||
360 | /*============================================================================= | |
361 | Misc | |
362 | =============================================================================*/ | |
363 | ||
364 | /* Title of books and articles in bibliographies */ | |
365 | span.title | |
366 | { | |
367 | font-style: italic; | |
368 | } | |
369 | ||
370 | span.underline | |
371 | { | |
372 | text-decoration: underline; | |
373 | } | |
374 | ||
375 | span.strikethrough | |
376 | { | |
377 | text-decoration: line-through; | |
378 | } | |
379 | ||
380 | /* Copyright, Legal Notice */ | |
381 | div div.legalnotice p | |
382 | { | |
383 | text-align: left | |
384 | } | |
385 | ||
386 | /*============================================================================= | |
387 | Colors | |
388 | =============================================================================*/ | |
389 | ||
390 | @media screen | |
391 | { | |
392 | body { | |
393 | background-color: #FFFFFF; | |
394 | color: #000000; | |
395 | } | |
396 | ||
397 | /* Syntax Highlighting */ | |
398 | .keyword { color: #0000AA; } | |
399 | .identifier { color: #000000; } | |
400 | .special { color: #707070; } | |
401 | .preprocessor { color: #402080; } | |
402 | .char { color: teal; } | |
403 | .comment { color: #800000; } | |
404 | .string { color: teal; } | |
405 | .number { color: teal; } | |
406 | .white_bkd { background-color: #FFFFFF; } | |
407 | .dk_grey_bkd { background-color: #999999; } | |
408 | ||
409 | /* Links */ | |
410 | a, a .keyword, a .identifier, a .special, a .preprocessor | |
411 | a .char, a .comment, a .string, a .number | |
412 | { | |
413 | color: #005a9c; | |
414 | } | |
415 | ||
416 | a:visited, a:visited .keyword, a:visited .identifier, | |
417 | a:visited .special, a:visited .preprocessor a:visited .char, | |
418 | a:visited .comment, a:visited .string, a:visited .number | |
419 | { | |
420 | color: #9c5a9c; | |
421 | } | |
422 | ||
423 | h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, | |
424 | h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover, | |
425 | h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited | |
426 | { | |
427 | text-decoration: none; /* no underline */ | |
428 | color: #000000; | |
429 | } | |
430 | ||
431 | /* Copyright, Legal Notice */ | |
432 | .copyright | |
433 | { | |
434 | color: #666666; | |
435 | font-size: small; | |
436 | } | |
437 | ||
438 | div div.legalnotice p | |
439 | { | |
440 | color: #666666; | |
441 | } | |
442 | ||
443 | /* Program listing */ | |
444 | pre.synopsis | |
445 | { | |
446 | border: 1px solid #DCDCDC; | |
447 | } | |
448 | ||
449 | .programlisting, | |
450 | .screen | |
451 | { | |
452 | border: 1px solid #DCDCDC; | |
453 | } | |
454 | ||
455 | td .programlisting, | |
456 | td .screen | |
457 | { | |
458 | border: 0px solid #DCDCDC; | |
459 | } | |
460 | ||
461 | /* Blurbs */ | |
462 | div.note, | |
463 | div.tip, | |
464 | div.important, | |
465 | div.caution, | |
466 | div.warning, | |
467 | p.blurb | |
468 | { | |
469 | border: 1px solid #DCDCDC; | |
470 | } | |
471 | ||
472 | /* Table of contents */ | |
473 | div.toc | |
474 | { | |
475 | border: 1px solid #DCDCDC; | |
476 | } | |
477 | ||
478 | /* Tables */ | |
479 | div.informaltable table tr td, | |
480 | div.table table tr td | |
481 | { | |
482 | border: 1px solid #DCDCDC; | |
483 | } | |
484 | ||
485 | div.informaltable table tr th, | |
486 | div.table table tr th | |
487 | { | |
488 | background-color: #F0F0F0; | |
489 | border: 1px solid #DCDCDC; | |
490 | } | |
491 | ||
492 | .copyright-footer | |
493 | { | |
494 | color: #8F8F8F; | |
495 | } | |
496 | ||
497 | /* Misc */ | |
498 | span.highlight | |
499 | { | |
500 | color: #00A000; | |
501 | } | |
502 | } | |
503 | ||
504 | @media print | |
505 | { | |
506 | /* Links */ | |
507 | a | |
508 | { | |
509 | color: black; | |
510 | } | |
511 | ||
512 | a:visited | |
513 | { | |
514 | color: black; | |
515 | } | |
516 | ||
517 | .spirit-nav | |
518 | { | |
519 | display: none; | |
520 | } | |
521 | ||
522 | /* Program listing */ | |
523 | pre.synopsis | |
524 | { | |
525 | border: 1px solid gray; | |
526 | } | |
527 | ||
528 | .programlisting, | |
529 | .screen | |
530 | { | |
531 | border: 1px solid gray; | |
532 | } | |
533 | ||
534 | td .programlisting, | |
535 | td .screen | |
536 | { | |
537 | border: 0px solid #DCDCDC; | |
538 | } | |
539 | ||
540 | /* Table of contents */ | |
541 | div.toc | |
542 | { | |
543 | border: 1px solid gray; | |
544 | } | |
545 | ||
546 | .informaltable table, | |
547 | .table table | |
548 | { | |
549 | border: 1px solid gray; | |
550 | border-collapse: collapse; | |
551 | } | |
552 | ||
553 | /* Tables */ | |
554 | div.informaltable table tr td, | |
555 | div.table table tr td | |
556 | { | |
557 | border: 1px solid gray; | |
558 | } | |
559 | ||
560 | div.informaltable table tr th, | |
561 | div.table table tr th | |
562 | { | |
563 | border: 1px solid gray; | |
564 | } | |
565 | ||
566 | table.simplelist tr td | |
567 | { | |
568 | border: none !important; | |
569 | } | |
570 | ||
571 | /* Misc */ | |
572 | span.highlight | |
573 | { | |
574 | font-weight: bold; | |
575 | } | |
576 | } | |
577 | ||
578 | /*============================================================================= | |
579 | Images | |
580 | =============================================================================*/ | |
581 | ||
582 | span.inlinemediaobject img | |
583 | { | |
584 | vertical-align: middle; | |
585 | } | |
586 | ||
587 | /*============================================================================== | |
588 | Super and Subscript: style so that line spacing isn't effected, see | |
589 | http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=1&postId=5341 | |
590 | ==============================================================================*/ | |
591 | ||
592 | sup, | |
593 | sub { | |
594 | height: 0; | |
595 | line-height: 1; | |
596 | vertical-align: baseline; | |
597 | position: relative; | |
598 | ||
599 | } | |
600 | ||
601 | /* For internet explorer: */ | |
602 | ||
603 | * html sup, | |
604 | * html sub { | |
605 | vertical-align: bottom; | |
606 | } | |
607 | ||
608 | sup { | |
609 | bottom: 1ex; | |
610 | } | |
611 | ||
612 | sub { | |
613 | top: .5ex; | |
614 | } | |
615 | ||
616 | /*============================================================================== | |
617 | Indexes: pretty much the same as the TOC. | |
618 | ==============================================================================*/ | |
619 | ||
620 | .index | |
621 | { | |
622 | font-size: 80%; | |
623 | padding-top: 0px; | |
624 | padding-bottom: 0px; | |
625 | margin-top: 0px; | |
626 | margin-bottom: 0px; | |
627 | margin-left: 0px; | |
628 | } | |
629 | ||
630 | .index ul | |
631 | { | |
632 | padding-left: 3em; | |
633 | } | |
634 | ||
635 | .index p | |
636 | { | |
637 | padding: 2px; | |
638 | margin: 2px; | |
639 | } | |
640 | ||
641 | .index-entry-level-0 | |
642 | { | |
643 | font-weight: bold; | |
644 | } | |
645 | ||
646 | .index em | |
647 | { | |
648 | font-weight: bold; | |
649 | } | |
650 | ||
651 | ||
652 | /*============================================================================== | |
653 | Alignment and coloring use 'role' feature, available from Quickbook 1.6 up. | |
654 | Added from Niall Douglas for role color and alignment. | |
655 | http://article.gmane.org/gmane.comp.lib.boost.devel/243318 | |
656 | */ | |
657 | ||
658 | /* Add text alignment (see http://www.w3schools.com/cssref/pr_text_text-align.asp) */ | |
659 | span.aligncenter | |
660 | { | |
661 | display: inline-block; width: 100%; text-align: center; | |
662 | } | |
663 | span.alignright | |
664 | { | |
665 | display: inline-block; width: 100%; text-align: right; | |
666 | } | |
667 | /* alignleft is the default. */ | |
668 | span.alignleft | |
669 | { | |
670 | display: inline-block; width: 100%; text-align: left; | |
671 | } | |
672 | ||
673 | /* alignjustify stretches the word spacing so that each line has equal width | |
674 | within a chosen fraction of page width (here arbitrarily 20%). | |
675 | *Not* useful inside table items as the column width remains the total string width. | |
676 | Nor very useful, except to temporarily restrict the width. | |
677 | */ | |
678 | span.alignjustify | |
679 | { | |
680 | display: inline-block; width: 20%; text-align: justify; | |
681 | } | |
682 | ||
683 | /* Text colors. | |
684 | Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords. | |
685 | Quickbook Usage: [role red Some red text] | |
686 | ||
687 | */ | |
688 | span.red { inline-block; color: red; } | |
689 | span.green { color: green; } | |
690 | span.lime { color: #00FF00; } | |
691 | span.blue { color: blue; } | |
692 | span.navy { color: navy; } | |
693 | span.yellow { color: yellow; } | |
694 | span.magenta { color: magenta; } | |
695 | span.indigo { color: #4B0082; } | |
696 | span.cyan { color: cyan; } | |
697 | span.purple { color: purple; } | |
698 | span.gold { color: gold; } | |
699 | span.silver { color: silver; } /* lighter gray */ | |
700 | span.gray { color: #808080; } /* light gray */ |