]>
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 | Suppress margins in tables | |
294 | =============================================================================*/ | |
295 | ||
296 | table th > *:first-child, | |
297 | table td > *:first-child | |
298 | { | |
299 | margin-top: 0; | |
300 | } | |
301 | ||
302 | table th > *:last-child, | |
303 | table td > *:last-child | |
304 | { | |
305 | margin-bottom: 0; | |
306 | } | |
307 | ||
308 | /*============================================================================= | |
309 | Blurbs | |
310 | =============================================================================*/ | |
311 | ||
312 | div.note, | |
313 | div.tip, | |
314 | div.important, | |
315 | div.caution, | |
316 | div.warning, | |
317 | p.blurb | |
318 | { | |
319 | font-size: 9pt; /* A little bit smaller than the main text */ | |
320 | line-height: 1.2; | |
321 | display: block; | |
322 | margin: 1pc 4% 0pc 4%; | |
323 | padding: 0.5pc 0.5pc 0.5pc 0.5pc; | |
324 | } | |
325 | ||
326 | p.blurb img | |
327 | { | |
328 | padding: 1pt; | |
329 | } | |
330 | ||
331 | /*============================================================================= | |
332 | Variable Lists | |
333 | =============================================================================*/ | |
334 | ||
335 | div.variablelist | |
336 | { | |
337 | margin: 1em 0; | |
338 | } | |
339 | ||
340 | /* Make the terms in definition lists bold */ | |
341 | div.variablelist dl dt, | |
342 | span.term | |
343 | { | |
344 | font-weight: bold; | |
345 | font-size: 10pt; | |
346 | } | |
347 | ||
348 | div.variablelist table tbody tr td | |
349 | { | |
350 | text-align: left; | |
351 | vertical-align: top; | |
352 | padding: 0em 2em 0em 0em; | |
353 | font-size: 10pt; | |
354 | margin: 0em 0em 0.5em 0em; | |
355 | line-height: 1; | |
356 | } | |
357 | ||
358 | div.variablelist dl dt | |
359 | { | |
360 | margin-bottom: 0.2em; | |
361 | } | |
362 | ||
363 | div.variablelist dl dd | |
364 | { | |
365 | margin: 0em 0em 0.5em 2em; | |
366 | font-size: 10pt; | |
367 | } | |
368 | ||
369 | div.variablelist table tbody tr td p, | |
370 | div.variablelist dl dd p | |
371 | { | |
372 | margin: 0em 0em 0.5em 0em; | |
373 | line-height: 1; | |
374 | } | |
375 | ||
376 | /*============================================================================= | |
377 | Misc | |
378 | =============================================================================*/ | |
379 | ||
380 | /* Title of books and articles in bibliographies */ | |
381 | span.title | |
382 | { | |
383 | font-style: italic; | |
384 | } | |
385 | ||
386 | span.underline | |
387 | { | |
388 | text-decoration: underline; | |
389 | } | |
390 | ||
391 | span.strikethrough | |
392 | { | |
393 | text-decoration: line-through; | |
394 | } | |
395 | ||
396 | /* Copyright, Legal Notice */ | |
397 | div div.legalnotice p | |
398 | { | |
399 | text-align: left | |
400 | } | |
401 | ||
402 | /*============================================================================= | |
403 | Colors | |
404 | =============================================================================*/ | |
405 | ||
406 | @media screen | |
407 | { | |
408 | body { | |
409 | background-color: #FFFFFF; | |
410 | color: #000000; | |
411 | } | |
412 | ||
413 | /* Syntax Highlighting */ | |
414 | .keyword { color: #0000AA; } | |
415 | .identifier { color: #000000; } | |
416 | .special { color: #707070; } | |
417 | .preprocessor { color: #402080; } | |
418 | .char { color: teal; } | |
419 | .comment { color: #800000; } | |
420 | .string { color: teal; } | |
421 | .number { color: teal; } | |
422 | .white_bkd { background-color: #FFFFFF; } | |
423 | .dk_grey_bkd { background-color: #999999; } | |
424 | ||
425 | /* Links */ | |
426 | a, a .keyword, a .identifier, a .special, a .preprocessor | |
427 | a .char, a .comment, a .string, a .number | |
428 | { | |
429 | color: #005a9c; | |
430 | } | |
431 | ||
432 | a:visited, a:visited .keyword, a:visited .identifier, | |
433 | a:visited .special, a:visited .preprocessor a:visited .char, | |
434 | a:visited .comment, a:visited .string, a:visited .number | |
435 | { | |
436 | color: #9c5a9c; | |
437 | } | |
438 | ||
439 | h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, | |
440 | h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover, | |
441 | h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited | |
442 | { | |
443 | text-decoration: none; /* no underline */ | |
444 | color: #000000; | |
445 | } | |
446 | ||
447 | /* Copyright, Legal Notice */ | |
448 | .copyright | |
449 | { | |
450 | color: #666666; | |
451 | font-size: small; | |
452 | } | |
453 | ||
454 | div div.legalnotice p | |
455 | { | |
456 | color: #666666; | |
457 | } | |
458 | ||
459 | /* Program listing */ | |
460 | pre.synopsis | |
461 | { | |
462 | border: 1px solid #DCDCDC; | |
463 | } | |
464 | ||
465 | .programlisting, | |
466 | .screen | |
467 | { | |
468 | border: 1px solid #DCDCDC; | |
469 | } | |
470 | ||
471 | td .programlisting, | |
472 | td .screen | |
473 | { | |
474 | border: 0px solid #DCDCDC; | |
475 | } | |
476 | ||
477 | /* Blurbs */ | |
478 | div.note, | |
479 | div.tip, | |
480 | div.important, | |
481 | div.caution, | |
482 | div.warning, | |
483 | p.blurb | |
484 | { | |
485 | border: 1px solid #DCDCDC; | |
486 | } | |
487 | ||
488 | /* Table of contents */ | |
489 | div.toc | |
490 | { | |
491 | border: 1px solid #DCDCDC; | |
492 | } | |
493 | ||
494 | /* Tables */ | |
495 | div.informaltable table tr td, | |
496 | div.table table tr td | |
497 | { | |
498 | border: 1px solid #DCDCDC; | |
499 | } | |
500 | ||
501 | div.informaltable table tr th, | |
502 | div.table table tr th | |
503 | { | |
504 | background-color: #F0F0F0; | |
505 | border: 1px solid #DCDCDC; | |
506 | } | |
507 | ||
508 | .copyright-footer | |
509 | { | |
510 | color: #8F8F8F; | |
511 | } | |
512 | ||
513 | /* Misc */ | |
514 | span.highlight | |
515 | { | |
516 | color: #00A000; | |
517 | } | |
518 | } | |
519 | ||
520 | @media print | |
521 | { | |
522 | /* Links */ | |
523 | a | |
524 | { | |
525 | color: black; | |
526 | } | |
527 | ||
528 | a:visited | |
529 | { | |
530 | color: black; | |
531 | } | |
532 | ||
533 | .spirit-nav | |
534 | { | |
535 | display: none; | |
536 | } | |
537 | ||
538 | /* Program listing */ | |
539 | pre.synopsis | |
540 | { | |
541 | border: 1px solid gray; | |
542 | } | |
543 | ||
544 | .programlisting, | |
545 | .screen | |
546 | { | |
547 | border: 1px solid gray; | |
548 | } | |
549 | ||
550 | td .programlisting, | |
551 | td .screen | |
552 | { | |
553 | border: 0px solid #DCDCDC; | |
554 | } | |
555 | ||
556 | /* Table of contents */ | |
557 | div.toc | |
558 | { | |
559 | border: 1px solid gray; | |
560 | } | |
561 | ||
562 | .informaltable table, | |
563 | .table table | |
564 | { | |
565 | border: 1px solid gray; | |
566 | border-collapse: collapse; | |
567 | } | |
568 | ||
569 | /* Tables */ | |
570 | div.informaltable table tr td, | |
571 | div.table table tr td | |
572 | { | |
573 | border: 1px solid gray; | |
574 | } | |
575 | ||
576 | div.informaltable table tr th, | |
577 | div.table table tr th | |
578 | { | |
579 | border: 1px solid gray; | |
580 | } | |
581 | ||
582 | table.simplelist tr td | |
583 | { | |
584 | border: none !important; | |
585 | } | |
586 | ||
587 | /* Misc */ | |
588 | span.highlight | |
589 | { | |
590 | font-weight: bold; | |
591 | } | |
592 | } | |
593 | ||
594 | /*============================================================================= | |
595 | Images | |
596 | =============================================================================*/ | |
597 | ||
598 | span.inlinemediaobject img | |
599 | { | |
600 | vertical-align: middle; | |
601 | } | |
602 | ||
603 | /*============================================================================== | |
604 | Super and Subscript: style so that line spacing isn't effected, see | |
605 | http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=1&postId=5341 | |
606 | ==============================================================================*/ | |
607 | ||
608 | sup, | |
609 | sub { | |
610 | height: 0; | |
611 | line-height: 1; | |
612 | vertical-align: baseline; | |
613 | position: relative; | |
614 | ||
615 | } | |
616 | ||
617 | /* For internet explorer: */ | |
618 | ||
619 | * html sup, | |
620 | * html sub { | |
621 | vertical-align: bottom; | |
622 | } | |
623 | ||
624 | sup { | |
625 | bottom: 1ex; | |
626 | } | |
627 | ||
628 | sub { | |
629 | top: .5ex; | |
630 | } | |
631 | ||
632 | /*============================================================================== | |
633 | Indexes: pretty much the same as the TOC. | |
634 | ==============================================================================*/ | |
635 | ||
636 | .index | |
637 | { | |
638 | font-size: 80%; | |
639 | padding-top: 0px; | |
640 | padding-bottom: 0px; | |
641 | margin-top: 0px; | |
642 | margin-bottom: 0px; | |
643 | margin-left: 0px; | |
644 | } | |
645 | ||
646 | .index ul | |
647 | { | |
648 | padding-left: 3em; | |
649 | } | |
650 | ||
651 | .index p | |
652 | { | |
653 | padding: 2px; | |
654 | margin: 2px; | |
655 | } | |
656 | ||
657 | .index-entry-level-0 | |
658 | { | |
659 | font-weight: bold; | |
660 | } | |
661 | ||
662 | .index em | |
663 | { | |
664 | font-weight: bold; | |
665 | } | |
666 | ||
667 | ||
668 | /*============================================================================== | |
669 | Alignment and coloring use 'role' feature, available from Quickbook 1.6 up. | |
670 | Added from Niall Douglas for role color and alignment. | |
671 | http://article.gmane.org/gmane.comp.lib.boost.devel/243318 | |
672 | */ | |
673 | ||
674 | /* Add text alignment (see http://www.w3schools.com/cssref/pr_text_text-align.asp) */ | |
675 | span.aligncenter | |
676 | { | |
677 | display: inline-block; width: 100%; text-align: center; | |
678 | } | |
679 | span.alignright | |
680 | { | |
681 | display: inline-block; width: 100%; text-align: right; | |
682 | } | |
683 | /* alignleft is the default. */ | |
684 | span.alignleft | |
685 | { | |
686 | display: inline-block; width: 100%; text-align: left; | |
687 | } | |
688 | ||
689 | /* alignjustify stretches the word spacing so that each line has equal width | |
690 | within a chosen fraction of page width (here arbitrarily 20%). | |
691 | *Not* useful inside table items as the column width remains the total string width. | |
692 | Nor very useful, except to temporarily restrict the width. | |
693 | */ | |
694 | span.alignjustify | |
695 | { | |
696 | display: inline-block; width: 20%; text-align: justify; | |
697 | } | |
698 | ||
699 | /* Text colors. | |
700 | Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords. | |
701 | Quickbook Usage: [role red Some red text] | |
702 | ||
703 | */ | |
704 | span.red { inline-block; color: red; } | |
705 | span.green { color: green; } | |
706 | span.lime { color: #00FF00; } | |
707 | span.blue { color: blue; } | |
708 | span.navy { color: navy; } | |
709 | span.yellow { color: yellow; } | |
710 | span.magenta { color: magenta; } | |
711 | span.indigo { color: #4B0082; } | |
712 | span.cyan { color: cyan; } | |
713 | span.purple { color: purple; } | |
714 | span.gold { color: gold; } | |
715 | span.silver { color: silver; } /* lighter gray */ | |
716 | span.gray { color: #808080; } /* light gray */ |