Debian Codegraph @

contrib/mom/momdoc/stylesheet.css

raw
1 /* Copyright (C) 2004-2020 Free Software Foundation, Inc. */
2 /* This file is part of mom, which is part of groff, a free software */
3 /* project. */
4
5 /* You can redistribute it and/or modify it under the terms of the */
6 /* "GNU General Public License" as published by the "Free Software */
7 /* Foundation", version 2.
8
9 /* The license text is available in the internet at */
10 /* <http://www.gnu.org/licenses/gpl-2.0.html> */
11
12 /* stylesheet for the mom macros documentation */
13
14 a:link { color: blue; text-decoration: none; }
15 a:hover { color: red; text-decoration: underline; }
16 a:visited { color: purple; text-decoration: none; }
17 a:visited:hover { color: purple; text-decoration: underline; }
18 a.header-link:visited { color: #6e70cc ; }
19 a.header-link:visited:hover { color: #6e70cc ; }
20
21 a:link.quick { text-decoration: underline; }
22 .version /* version number for top of toc.html */
23 {
24 font-size: 90% ;
25 text-align: center ;
26 }
27
28 .page /* Page setup: page color, size and border */
29 {
30 width: 67% ;
31 position: relative ;
32 top: 12px ;
33 bottom: 12px ;
34 margin: auto ;
35 padding: 12px ;
36 border: solid 1px #ceac8d ;
37 color: #302419 ;
38 background-color: #ffffeb ;
39 font: 1em/1.5em arial,sans-serif ;
40 font-variant-ligatures: none;
41 }
42
43 .nobr /* Make <nobr> a class property */
44 {
45 white-space: nowrap ;
46 hyphens: none ;
47 }
48
49 /* Heads */
50
51 h1.docs
52 {
53 font-family: arial,sans-serif ;
54 font-size: 125% ;
55 text-align: center ;
56 color: #002b56 ;
57 background-color: #e2f1ff ;
58 outline: solid 1px #99cccc ;
59 padding: 6px ;
60 }
61 h2.docs
62 {
63 margin-bottom: -.25em ;
64 font-size: 105% ;
65 color: #000056 ;
66 }
67 h2.macro-group /* ie "Page setup" or "Indents" or "Multi-columns" */
68 {
69 margin-top: 1em ;
70 font-size: 120% ;
71 color: #000056 ;
72 background-color: #dfccad ;
73 padding: 6px ;
74 }
75 h3.docs
76 {
77 margin-bottom: -.5em ;
78 font-size: 95% ;
79 color: #000056 ;
80 text-transform: uppercase ;
81 }
82 h3.appendices
83 {
84 font-size: 100% ;
85 text-transform: none ;
86 }
87 h3.notes
88 {
89 display: inline-block ;
90 margin-top: .5em ;
91 }
92 h3.control
93 {
94 padding-top: .5em ;
95 font-size: 100% ;
96 text-transform: none ;
97 }
98 h3.numbered
99 {
100 font-size: 100% ;
101 margin-bottom: -.5em ;
102 }
103 h3.macro-id
104 {
105 font-size: 105% ;
106 color: #000056 ;
107 text-transform: uppercase ;
108 margin-top: 3px ;
109 margin-bottom: 0px ;
110 }
111 h4.docs
112 {
113 font-size: 95% ;
114 margin-bottom: -.5em ;
115 color: #000056 ;
116 }
117 h4.doc-param-macros
118 {
119 margin-top: -.5em ;
120 }
121 h4.arg-list
122 {
123 margin-top: -.5em ;
124 }
125 h4.fields
126 {
127 color: #302419 ;
128 }
129 h5.docs
130 {
131 margin-bottom: -.5em ;
132 font-size: 95% ;
133 color: #000056 ;
134 text-transform: uppercase ;
135 }
136 ul.doc-param-macros
137 {
138 margin-top: .75em ;
139 margin-left: -.5em ;
140 }
141 .control-macros-header
142 {
143 display: inline-block ;
144 margin-bottom: -.25em ;
145 padding: 2px 6px 0 6px ;
146 outline: 1px solid #000058 ;
147 font-size: 100% ;
148 background-color: #e2f1ff ;
149 }
150 .control-macro
151 {
152 font-size: 100% ;
153 margin-bottom: -.75em ;
154 color: #2f2f71 ;
155 }
156 .macro-id-overline
157 {
158 display: inline-block ;
159 border-top: solid 2px #8d8775 ;
160 margin-bottom: .5em ;
161 }
162
163 /* Paragraphs */
164
165 p.no-indent
166 {
167 text-indent: 0px ;
168 }
169 p.requires
170 {
171 font-family: arial,sans-serif ;
172 font-style: italic ;
173 text-indent: 0px ;
174 margin-top: .25em ;
175 }
176 p.alias
177 {
178 font-family: arial,sans-serif ;
179 font-style: normal ;
180 text-indent: 0px ;
181 margin-top: .25em ;
182 }
183
184 /* Horizontal rules */
185
186 hr /* horizontal rules need a border to be colorized) */
187 {
188 border: solid 1px #8d8775 ;
189 }
190 div.rule-short /* for section breaks; top/bottom margins set manually */
191 {
192 display: block ;
193 width: 25% ;
194 margin: auto;
195 clear: both ;
196 }
197 div.rule-medium /* underneath mini-tocs; top/bottom margins set manually */
198 {
199 display: block ;
200 width: 40% ;
201 margin: auto;
202 clear: both ;
203 }
204 div.rule-long /* precedes nav bar at bottom of page */
205 {
206 display: block ;
207 width: 90% ;
208 margin: auto;
209 }
210
211 /* Boxed text */
212
213 .box-macro-args /* Macro name+args */
214 {
215 display: block ;
216 border: solid 1px #302419 ;
217 padding-top: 5px ;
218 padding-bottom: 3px ;
219 padding-left: 15px ;
220 padding-right: 15px ;
221 background-color: #ffffff ;
222 white-space: nowrap ;
223 overflow: auto ;
224 }
225 .box-code
226 {
227 display: block ;
228 width: 100% ;
229 border: solid 1px #302419 ;
230 padding-top: 5px ;
231 padding-bottom: 18px ;
232 padding-left: 15px ;
233 padding-right: 15px ;
234 color: #6f614a ;
235 background-color: #ffffff ;
236 white-space: nowrap ;
237 }
238 .box-tip
239 {
240 outline: solid 1px #ceac8d ;
241 padding-left: 15px ;
242 padding-right: 15px ;
243 text-align: left ;
244 background-color: #f9f9d9 ;
245 margin-bottom: 1.5em ;
246 }
247 .box-example-layout
248 {
249 outline: solid 1px #ceac8d ;
250 padding-left: 15px ;
251 padding-right: 15px ;
252 text-align: justify ;
253 background-color: #f9f9d9 ;
254 margin-bottom: 2.5em ;
255 }
256 .box-notes
257 {
258 outline: solid 1px #ceac8d ;
259 padding-left: 15px ;
260 padding-right: 15px ;
261 text-align: justify ;
262 background-color: #f9f9d9 ;
263 margin-bottom: 1.5em ;
264 }
265 .box-important
266 {
267 outline: solid 1px #ce7a65 ;
268 padding-left: 15px ;
269 padding-right: 15px ;
270 text-align: justify ;
271 background-color: #f9f9d9 ;
272 margin-bottom: 1.5em ;
273 }
274 p.tip
275 {
276 padding-top: 9px ;
277 padding-bottom: 9px ;
278 text-indent: 0px ;
279 }
280 p.tip-top
281 {
282 padding-top: 9px ;
283 text-indent: 0px ;
284 }
285 p.tip-bottom
286 {
287 padding-bottom: 9px ;
288 text-indent: 0px ;
289 }
290
291 /* Pre-formatted code */
292
293 span.pre /* pre-formatted multi-line blocks; indent must be exactly 2 spaces */
294 {
295 display: block ;
296 position: relative ;
297 top: -1em ;
298 margin-bottom: -1.5em ;
299 font-family: "Lucida Console",monospace ;
300 font-weight: bolder ;
301 font-size: 95% ;
302 white-space: pre ;
303 overflow: auto ;
304 }
305 span.defaults
306 {
307 margin-left: 6px ;
308 padding-bottom: 1em ;
309 font-size: 95% ;
310 }
311 span.pre-in-pp
312 {
313 display: block ;
314 position: relative ;
315 top: -1em ;
316 margin-bottom: -.5em ;
317 font-family: "Lucida Console",monospace ;
318 font-weight: bolder ;
319 font-size: 95% ;
320 white-space: pre ;
321 overflow: auto ;
322 }
323 span.important
324 {
325 font-family: arial,sans-serif ;
326 font-weight: bolder ;
327 color: #8b0000 ;
328 }
329 span.note
330 {
331 font-family: arial,sans-serif ;
332 font-weight: bolder ;
333 color: #443526 ;
334 }
335 span.additional-note
336 {
337 font-family: arial,sans-serif ;
338 font-weight: bolder ;
339 font-style: italic ;
340 color: #443526 ;
341 }
342 span.tip
343 {
344 font-family: arial,sans-serif ;
345 font-weight: bolder ;
346 color: #443526 ;
347 }
348 span.experts
349 {
350 font-family: arial,sans-serif ;
351 font-weight: bolder ;
352 color: #443526 ;
353 }
354 /* Mini-tocs (usually at top of page) */
355
356 /* 1-column, centered mini-toc */
357 ul.mini-toc-centered
358 {
359 text-align: center ;
360 list-style-type: none ;
361 margin-left: -40px ;
362 }
363
364 /* 2-column mini-toc column defs*/
365 .mini-toc-col-1
366 {
367 float: left ;
368 width: 49% ;
369 margin-left: -10px ;
370 }
371 .mini-toc-col-2
372 {
373 float: left ;
374 width: 51% ;
375 clear: right ;
376 }
377
378 /* 3-column mini-toc column defs */
379 .col-1-definitions
380 {
381 float: left ;
382 width: 32% ;
383 height: 55em ;
384 padding-bottom: 9px;
385 background-color: #ded4bd ;
386 margin-right: 2% ;
387 }
388 .col-2-definitions
389 {
390 float: left ;
391 width: 32% ;
392 height: 55em ;
393 padding-bottom: 9px;
394 background-color: #ded4bd ;
395 margin-right: 2% ;
396 }
397 .col-3-definitions
398 {
399 float: left ;
400 width: 32% ;
401 height: 55em ;
402 padding-bottom: 9px;
403 background-color: #ded4bd ;
404 margin-bottom: 24px ;
405 }
406
407 /* List styles */
408
409 ul.toc
410 {
411 margin-top: .5em ;
412 }
413 ul.no-enumerator
414 {
415 list-style-type: none ;
416 }
417 .list-head
418 {
419 font-family: arial,sans-serif ;
420 font-weight: bolder ;
421 font-size: 110% ;
422 color: #000056 ;
423 }
424 .list-head-goodies
425 {
426 font-family: arial,sans-serif ;
427 font-weight: normal ;
428 font-size: 110% ;
429 color: #000056 ;
430 }
431 .no-anchor
432 {
433 color: #302419 ;
434 font-weight: bold ;
435 }
436 .text-color
437 {
438 color: #302419 ;
439 }
440 li.item
441 {
442 font-family: arial,sans-serif ;
443 font-weight: normal ;
444 font-size: 100% ;
445 margin-left: -10px ;
446 list-style-type: disc ;
447 }
448 .mini-toc
449 {
450 margin-top: -1em ;
451 font-size: 90% ;
452 }
453 .sublist
454 {
455 margin-left: -1em ;
456 font-size: 90% ;
457 color: #302419 ;
458 list-style-type: disc ;
459 }
460 .sub
461 {
462 list-style-type: circle ;
463 }
464 .normal
465 {
466 font-style: normal ;
467 font-size: 100% ;
468 }
469 .normal-smaller
470 {
471 font-weight: normal ;
472 color: #302419 ;
473 font-size: 90% ;
474 }
475 .normal-sub-sub
476 {
477 font-weight: normal ;
478 color: #302419 ;
479 font-size: 90% ;
480 }
481
482 /* Macro lists / defaults */
483
484 div.macro-list-container
485 {
486 background-color: #ded4bd ;
487 margin-bottom: 1.5em ;
488 }
489 h3.macro-list
490 {
491 font-size: 100% ;
492 color: #000056 ;
493 text-transform: uppercase ;
494 padding: 9px ;
495 }
496 ul.macro-list
497 {
498 margin-left: -21px ;
499 padding-right: 12px ;
500 list-style-type: none ;
501 font-family: arial,sans-serif ;
502 margin-top: -1.25em ;
503 padding-bottom: 6px ;
504 }
505 ol.macro-list
506 {
507 font-family: arial,sans-serif ;
508 margin-top: -1.25em ;
509 padding-bottom: 6px ;
510 }
511
512 .defaults-container
513 {
514 background-color: #e3d2b1 ;
515 border: 1px solid #3f2c00 ;
516 margin-bottom: 2.5em ;
517 }
518 h3.defaults
519 {
520 font-size: 100% ;
521 color: #000056 ;
522 text-transform: uppercase ;
523 padding: 9px ;
524 }
525 p.defaults
526 {
527 margin-top: .25em ;
528 margin-left: 6px ;
529 margin-right: 12px ;
530 margin-bottom: 0 ;
531 }
532 #toc-title, #toc-head, #toc-subhead, #toc-parahead
533 {
534 display: block ;
535 margin-top: -1em ;
536 margin-bottom: -1em ;
537 }
538
539 /* Bottom of page spacer */
540
541 div.bottom-spacer
542 {
543 display: block ;
544 height: 24px ;
545 }
546
547 /* General markup */
548
549 kbd
550 {
551 font-family: "Lucida Console",monospace ;
552 font-weight: bold ;
553 font-size: 98% ;
554 }
555 kbd.macro-args
556 {
557 margin-right: .5em ;
558 color: #6f614a ;
559 white-space: nowrap ;
560 overflow: auto ;
561 }
562
563 /* tocs */
564
565 h1.toc
566 {
567 font-family: arial,sans-serif ;
568 font-size: 175% ;
569 text-align: center ;
570 color: #002b56 ;
571 background-color: #e2f1ff ;
572 outline: solid 1px #99cccc ;
573 padding: 6px ;
574 }
575 h2.toc
576 {
577 font-size: 120% ;
578 color: #000056 ;
579 }
580 h3.toc
581 {
582 margin-top: -.5em ;
583 margin-bottom: -.5em ;
584 font-size: 100% ;
585 color: #6e70cc ;
586 }
587 .highlight
588 {
589 font-weight: bold ;
590 }
591 .fourth-level
592 {
593 margin-left: -1.25em ;
594 list-style-type: none ;
595 }
596 ul.toc-docproc
597 {
598 margin-left: -1em ;
599 }
600 .toc-docproc-header
601 {
602 margin-top: -.5em ;
603 text-transform: uppercase ;
604 }
605 a.header-link
606 {
607 color: #6e70cc ;
608 font-size: 95% ;
609 }
610
611 /* Examples */
612
613 .examples-container
614 {
615 border: solid 1px #917963 ;
616 background-color: #f9f9d9 ;
617 padding-left: 24px ;
618 padding-right: 24px ;
619 padding-top: 3px ;
620 padding-bottom: 3px ;
621 }
622
623 .examples
624 {
625 font-weight: bolder ;
626 font-size: 98% ;
627 color: #524b3f ;
628 margin-top: 12px ;
629 margin-bottom: 3px ;
630 }
631
632 /* definitions.html */
633
634 table.definitions /* mini-toc is set up as a table */
635 {
636 margin-top: 12px ;
637 text-align: left ;
638 margin-left: 12px ;
639 }
640 th.definitions
641 {
642 padding-bottom: 6px ;
643 font-size: 120% ;
644 color: #000056 ;
645 }
646 dt /* definition terms in italic*/
647 {
648 font-style: italic ;
649 }
650 dt.no-italic
651 {
652 font-style: normal ;
653 }
654
655 /* Tables */
656 table.quick-ref
657 {
658 margin-top: .25em ;
659 }
660 table.quick-ref, th.quick-ref
661 {
662 padding-bottom: .25em ;
663 font-family: "Lucida Console",monospace ;
664 font-weight: bold ;
665 text-align: left ;
666 }
667
668 td
669 {
670 padding: 0 ;
671 padding-left: .5em ;
672 }
673
674 /* Misc */
675
676 span.book-title
677 {
678 font-style: italic ;
679 }
680
681 dt.params
682 {
683 font-style: normal ;
684 font-weight: bold ;
685 }
686
687 dd.cover-args
688 {
689 margin-bottom: .25em;
690 margin-left: 1.25em ;
691 }