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