blob: 7077e4b70d9bbe29e94aa4a8fc93e453097b7ced [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001/*
2 Generic XHTML / DocBook XHTML CSS Stylesheet.
3
4 Browser wrangling and typographic design by
5 Oyvind Kolas / pippin@gimp.org
6
7 Customised for Poky by
8 Matthew Allum / mallum@o-hand.com
9
10 Thanks to:
11 Liam R. E. Quin
12 William Skaggs
13 Jakub Steiner
14
15 Structure
16 ---------
17
18 The stylesheet is divided into the following sections:
19
20 Positioning
21 Margins, paddings, width, font-size, clearing.
22 Decorations
23 Borders, style
24 Colors
25 Colors
26 Graphics
27 Graphical backgrounds
28 Nasty IE tweaks
29 Workarounds needed to make it work in internet explorer,
30 currently makes the stylesheet non validating, but up until
31 this point it is validating.
32 Mozilla extensions
33 Transparency for footer
34 Rounded corners on boxes
35
36*/
37
38
39 /*************** /
40 / Positioning /
41/ ***************/
42
43body {
44 font-family: Verdana, Sans, sans-serif;
45
46 min-width: 640px;
47 width: 80%;
48 margin: 0em auto;
49 padding: 2em 5em 5em 5em;
50 color: #333;
51}
52
53h1,h2,h3,h4,h5,h6,h7 {
54 font-family: Arial, Sans;
55 color: #00557D;
56 clear: both;
57}
58
59h1 {
60 font-size: 2em;
61 text-align: left;
62 padding: 0em 0em 0em 0em;
63 margin: 2em 0em 0em 0em;
64}
65
66h2.subtitle {
67 margin: 0.10em 0em 3.0em 0em;
68 padding: 0em 0em 0em 0em;
69 font-size: 1.8em;
70 padding-left: 20%;
71 font-weight: normal;
72 font-style: italic;
73}
74
75h2 {
76 margin: 2em 0em 0.66em 0em;
77 padding: 0.5em 0em 0em 0em;
78 font-size: 1.5em;
79 font-weight: bold;
80}
81
82h3.subtitle {
83 margin: 0em 0em 1em 0em;
84 padding: 0em 0em 0em 0em;
85 font-size: 142.14%;
86 text-align: right;
87}
88
89h3 {
90 margin: 1em 0em 0.5em 0em;
91 padding: 1em 0em 0em 0em;
92 font-size: 140%;
93 font-weight: bold;
94}
95
96h4 {
97 margin: 1em 0em 0.5em 0em;
98 padding: 1em 0em 0em 0em;
99 font-size: 120%;
100 font-weight: bold;
101}
102
103h5 {
104 margin: 1em 0em 0.5em 0em;
105 padding: 1em 0em 0em 0em;
106 font-size: 110%;
107 font-weight: bold;
108}
109
110h6 {
111 margin: 1em 0em 0em 0em;
112 padding: 1em 0em 0em 0em;
113 font-size: 110%;
114 font-weight: bold;
115}
116
117.authorgroup {
118 background-color: transparent;
119 background-repeat: no-repeat;
120 padding-top: 256px;
121 background-image: url("figures/poky-title.png");
122 background-position: left top;
123 margin-top: -256px;
124 padding-right: 50px;
125 margin-left: 0px;
126 text-align: right;
127 width: 740px;
128}
129
130h3.author {
131 margin: 0em 0me 0em 0em;
132 padding: 0em 0em 0em 0em;
133 font-weight: normal;
134 font-size: 100%;
135 color: #333;
136 clear: both;
137}
138
139.author tt.email {
140 font-size: 66%;
141}
142
143.titlepage hr {
144 width: 0em;
145 clear: both;
146}
147
148.revhistory {
149 padding-top: 2em;
150 clear: both;
151}
152
153.toc,
154.list-of-tables,
155.list-of-examples,
156.list-of-figures {
157 padding: 1.33em 0em 2.5em 0em;
158 color: #00557D;
159}
160
161.toc p,
162.list-of-tables p,
163.list-of-figures p,
164.list-of-examples p {
165 padding: 0em 0em 0em 0em;
166 padding: 0em 0em 0.3em;
167 margin: 1.5em 0em 0em 0em;
168}
169
170.toc p b,
171.list-of-tables p b,
172.list-of-figures p b,
173.list-of-examples p b{
174 font-size: 100.0%;
175 font-weight: bold;
176}
177
178.toc dl,
179.list-of-tables dl,
180.list-of-figures dl,
181.list-of-examples dl {
182 margin: 0em 0em 0.5em 0em;
183 padding: 0em 0em 0em 0em;
184}
185
186.toc dt {
187 margin: 0em 0em 0em 0em;
188 padding: 0em 0em 0em 0em;
189}
190
191.toc dd {
192 margin: 0em 0em 0em 2.6em;
193 padding: 0em 0em 0em 0em;
194}
195
196/* Use this set when you decide to get the images in for variables.
197
198div.glossary dl,
199div.variablelist dl {
200}
201
202.glossary dl dt,
203.variablelist dl dt,
204.variablelist dl dt span.term {
205 font-weight: normal;
206 width: 0em;
207 text-align: right;
208}
209
210.variablelist dl dt {
211 margin-top: 0.5em;
212}
213
214.glossary dl dd,
215.variablelist dl dd {
216 margin-top: 0em;
217 margin-left: 15.5em;
218 margin-bottom: 2em;
219}
220
221.glossary dd p,
222.variablelist dd p {
223 margin-top: 0em;
224 margin-bottom: 1em;
225}
226
227.glossdeffirst {
228 text-indent: -70px;
229}
230*/
231
232/* Start of non-image set */
233
234div.glossary dl,
235div.variablelist dl {
236}
237
238.glossary dl dt,
239.variablelist dl dt,
240.variablelist dl dt span.term {
241 font-weight: normal;
242 width: 20em;
243 text-align: right;
244}
245
246.variablelist dl dt {
247 margin-top: 0.5em;
248}
249
250.glossary dl dd,
251.variablelist dl dd {
252 margin-top: 0em;
253 margin-left: 25.5em;
254}
255
256.glossary dd p,
257.variablelist dd p {
258 margin-top: 0em;
259 margin-bottom: 1em;
260}
261
262.glossdeffirst {
263 text-indent: 0px;
264}
265
266/* End of non-image set */
267
268div.calloutlist table td {
269 padding: 0em 0em 0em 0em;
270 margin: 0em 0em 0em 0em;
271}
272
273div.calloutlist table td p {
274 margin-top: 0em;
275 margin-bottom: 1em;
276}
277
278div p.copyright {
279 text-align: left;
280}
281
282div.legalnotice p.legalnotice-title {
283 margin-bottom: 0em;
284}
285
286p {
287 line-height: 1.5em;
288 margin-top: 0em;
289
290}
291
292dl {
293 padding-top: 0em;
294}
295
296hr {
297 border: solid 1px;
298}
299
300
301.mediaobject,
302.mediaobjectco {
303 text-align: center;
304}
305
306img {
307 border: none;
308}
309
310ul {
311 padding: 0em 0em 0em 1.5em;
312}
313
314ul li {
315 padding: 0em 0em 0em 0em;
316}
317
318ul li p {
319 text-align: left;
320}
321
322table {
323 width :100%;
324}
325
326th {
327 padding: 0.25em;
328 text-align: left;
329 font-weight: normal;
330 vertical-align: top;
331}
332
333td {
334 padding: 0.25em;
335 vertical-align: top;
336}
337
338p a[id] {
339 margin: 0px;
340 padding: 0px;
341 display: inline;
342 background-image: none;
343}
344
345a {
346 text-decoration: underline;
347 color: #444;
348}
349
350pre {
351 overflow: auto;
352}
353
354a:hover {
355 text-decoration: underline;
356 /*font-weight: bold;*/
357}
358
359/* This style defines how the permalink character
360 appears by itself and when hovered over with
361 the mouse. */
362
363[alt='Permalink'] { color: #eee; }
364[alt='Permalink']:hover { color: black; }
365
366
367div.informalfigure,
368div.informalexample,
369div.informaltable,
370div.figure,
371div.table,
372div.example {
373 margin: 1em 0em;
374 padding: 1em;
375 page-break-inside: avoid;
376}
377
378
379div.informalfigure p.title b,
380div.informalexample p.title b,
381div.informaltable p.title b,
382div.figure p.title b,
383div.example p.title b,
384div.table p.title b{
385 padding-top: 0em;
386 margin-top: 0em;
387 font-size: 100%;
388 font-weight: normal;
389}
390
391.mediaobject .caption,
392.mediaobject .caption p {
393 text-align: center;
394 font-size: 80%;
395 padding-top: 0.5em;
396 padding-bottom: 0.5em;
397}
398
399.epigraph {
400 padding-left: 55%;
401 margin-bottom: 1em;
402}
403
404.epigraph p {
405 text-align: left;
406}
407
408.epigraph .quote {
409 font-style: italic;
410}
411.epigraph .attribution {
412 font-style: normal;
413 text-align: right;
414}
415
416span.application {
417 font-style: italic;
418}
419
420.programlisting {
421 font-family: monospace;
422 font-size: 80%;
423 white-space: pre;
424 margin: 1.33em 0em;
425 padding: 1.33em;
426}
427
428.tip,
429.warning,
430.caution,
431.note {
432 margin-top: 1em;
433 margin-bottom: 1em;
434
435}
436
437/* force full width of table within div */
438.tip table,
439.warning table,
440.caution table,
441.note table {
442 border: none;
443 width: 100%;
444}
445
446
447.tip table th,
448.warning table th,
449.caution table th,
450.note table th {
451 padding: 0.8em 0.0em 0.0em 0.0em;
452 margin : 0em 0em 0em 0em;
453}
454
455.tip p,
456.warning p,
457.caution p,
458.note p {
459 margin-top: 0.5em;
460 margin-bottom: 0.5em;
461 padding-right: 1em;
462 text-align: left;
463}
464
465.acronym {
466 text-transform: uppercase;
467}
468
469b.keycap,
470.keycap {
471 padding: 0.09em 0.3em;
472 margin: 0em;
473}
474
475.itemizedlist li {
476 clear: none;
477}
478
479.filename {
480 font-size: medium;
481 font-family: Courier, monospace;
482}
483
484
485div.navheader, div.heading{
486 position: absolute;
487 left: 0em;
488 top: 0em;
489 width: 100%;
490 background-color: #cdf;
491 width: 100%;
492}
493
494div.navfooter, div.footing{
495 position: fixed;
496 left: 0em;
497 bottom: 0em;
498 background-color: #eee;
499 width: 100%;
500}
501
502
503div.navheader td,
504div.navfooter td {
505 font-size: 66%;
506}
507
508div.navheader table th {
509 /*font-family: Georgia, Times, serif;*/
510 /*font-size: x-large;*/
511 font-size: 80%;
512}
513
514div.navheader table {
515 border-left: 0em;
516 border-right: 0em;
517 border-top: 0em;
518 width: 100%;
519}
520
521div.navfooter table {
522 border-left: 0em;
523 border-right: 0em;
524 border-bottom: 0em;
525 width: 100%;
526}
527
528div.navheader table td a,
529div.navfooter table td a {
530 color: #777;
531 text-decoration: none;
532}
533
534/* normal text in the footer */
535div.navfooter table td {
536 color: black;
537}
538
539div.navheader table td a:visited,
540div.navfooter table td a:visited {
541 color: #444;
542}
543
544
545/* links in header and footer */
546div.navheader table td a:hover,
547div.navfooter table td a:hover {
548 text-decoration: underline;
549 background-color: transparent;
550 color: #33a;
551}
552
553div.navheader hr,
554div.navfooter hr {
555 display: none;
556}
557
558
559.qandaset tr.question td p {
560 margin: 0em 0em 1em 0em;
561 padding: 0em 0em 0em 0em;
562}
563
564.qandaset tr.answer td p {
565 margin: 0em 0em 1em 0em;
566 padding: 0em 0em 0em 0em;
567}
568.answer td {
569 padding-bottom: 1.5em;
570}
571
572.emphasis {
573 font-weight: bold;
574}
575
576
577 /************* /
578 / decorations /
579/ *************/
580
581.titlepage {
582}
583
584.part .title {
585}
586
587.subtitle {
588 border: none;
589}
590
591/*
592h1 {
593 border: none;
594}
595
596h2 {
597 border-top: solid 0.2em;
598 border-bottom: solid 0.06em;
599}
600
601h3 {
602 border-top: 0em;
603 border-bottom: solid 0.06em;
604}
605
606h4 {
607 border: 0em;
608 border-bottom: solid 0.06em;
609}
610
611h5 {
612 border: 0em;
613}
614*/
615
616.programlisting {
617 border: solid 1px;
618}
619
620div.figure,
621div.table,
622div.informalfigure,
623div.informaltable,
624div.informalexample,
625div.example {
626 border: 1px solid;
627}
628
629
630
631.tip,
632.warning,
633.caution,
634.note {
635 border: 1px solid;
636}
637
638.tip table th,
639.warning table th,
640.caution table th,
641.note table th {
642 border-bottom: 1px solid;
643}
644
645.question td {
646 border-top: 1px solid black;
647}
648
649.answer {
650}
651
652
653b.keycap,
654.keycap {
655 border: 1px solid;
656}
657
658
659div.navheader, div.heading{
660 border-bottom: 1px solid;
661}
662
663
664div.navfooter, div.footing{
665 border-top: 1px solid;
666}
667
668 /********* /
669 / colors /
670/ *********/
671
672body {
673 color: #333;
674 background: white;
675}
676
677a {
678 background: transparent;
679}
680
681a:hover {
682 background-color: #dedede;
683}
684
685
686h1,
687h2,
688h3,
689h4,
690h5,
691h6,
692h7,
693h8 {
694 background-color: transparent;
695}
696
697hr {
698 border-color: #aaa;
699}
700
701
702.tip, .warning, .caution, .note {
703 border-color: #fff;
704}
705
706
707.tip table th,
708.warning table th,
709.caution table th,
710.note table th {
711 border-bottom-color: #fff;
712}
713
714
715.warning {
716 background-color: #f0f0f2;
717}
718
719.caution {
720 background-color: #f0f0f2;
721}
722
723.tip {
724 background-color: #f0f0f2;
725}
726
727.note {
728 background-color: #f0f0f2;
729}
730
731.glossary dl dt,
732.variablelist dl dt,
733.variablelist dl dt span.term {
734 color: #044;
735}
736
737div.figure,
738div.table,
739div.example,
740div.informalfigure,
741div.informaltable,
742div.informalexample {
743 border-color: #aaa;
744}
745
746pre.programlisting {
747 color: black;
748 background-color: #fff;
749 border-color: #aaa;
750 border-width: 2px;
751}
752
753.guimenu,
754.guilabel,
755.guimenuitem {
756 background-color: #eee;
757}
758
759
760b.keycap,
761.keycap {
762 background-color: #eee;
763 border-color: #999;
764}
765
766
767div.navheader {
768 border-color: black;
769}
770
771
772div.navfooter {
773 border-color: black;
774}
775
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500776.writernotes {
777 color: red;
778}
779
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500780
781 /*********** /
782 / graphics /
783/ ***********/
784
785/*
786body {
787 background-image: url("images/body_bg.jpg");
788 background-attachment: fixed;
789}
790
791.navheader,
792.note,
793.tip {
794 background-image: url("images/note_bg.jpg");
795 background-attachment: fixed;
796}
797
798.warning,
799.caution {
800 background-image: url("images/warning_bg.jpg");
801 background-attachment: fixed;
802}
803
804.figure,
805.informalfigure,
806.example,
807.informalexample,
808.table,
809.informaltable {
810 background-image: url("images/figure_bg.jpg");
811 background-attachment: fixed;
812}
813
814*/
815h1,
816h2,
817h3,
818h4,
819h5,
820h6,
821h7{
822}
823
824/*
825Example of how to stick an image as part of the title.
826
827div.article .titlepage .title
828{
829 background-image: url("figures/white-on-black.png");
830 background-position: center;
831 background-repeat: repeat-x;
832}
833*/
834
835div.preface .titlepage .title,
836div.colophon .title,
837div.chapter .titlepage .title,
838div.article .titlepage .title
839{
840}
841
842div.section div.section .titlepage .title,
843div.sect2 .titlepage .title {
844 background: none;
845}
846
847
848h1.title {
849 background-color: transparent;
850 background-image: url("figures/poky-title.png");
851 background-repeat: no-repeat;
852 height: 256px;
853 text-indent: -9000px;
854 overflow:hidden;
855}
856
857h2.subtitle {
858 background-color: transparent;
859 text-indent: -9000px;
860 overflow:hidden;
861 width: 0px;
862 display: none;
863}
864
865 /*************************************** /
866 / pippin.gimp.org specific alterations /
867/ ***************************************/
868
869/*
870div.heading, div.navheader {
871 color: #777;
872 font-size: 80%;
873 padding: 0;
874 margin: 0;
875 text-align: left;
876 position: absolute;
877 top: 0px;
878 left: 0px;
879 width: 100%;
880 height: 50px;
881 background: url('/gfx/heading_bg.png') transparent;
882 background-repeat: repeat-x;
883 background-attachment: fixed;
884 border: none;
885}
886
887div.heading a {
888 color: #444;
889}
890
891div.footing, div.navfooter {
892 border: none;
893 color: #ddd;
894 font-size: 80%;
895 text-align:right;
896
897 width: 100%;
898 padding-top: 10px;
899 position: absolute;
900 bottom: 0px;
901 left: 0px;
902
903 background: url('/gfx/footing_bg.png') transparent;
904}
905*/
906
907
908
909 /****************** /
910 / nasty ie tweaks /
911/ ******************/
912
913/*
914div.heading, div.navheader {
915 width:expression(document.body.clientWidth + "px");
916}
917
918div.footing, div.navfooter {
919 width:expression(document.body.clientWidth + "px");
920 margin-left:expression("-5em");
921}
922body {
923 padding:expression("4em 5em 0em 5em");
924}
925*/
926
927 /**************************************** /
928 / mozilla vendor specific css extensions /
929/ ****************************************/
930/*
931div.navfooter, div.footing{
932 -moz-opacity: 0.8em;
933}
934
935div.figure,
936div.table,
937div.informalfigure,
938div.informaltable,
939div.informalexample,
940div.example,
941.tip,
942.warning,
943.caution,
944.note {
945 -moz-border-radius: 0.5em;
946}
947
948b.keycap,
949.keycap {
950 -moz-border-radius: 0.3em;
951}
952*/
953
954table tr td table tr td {
955 display: none;
956}
957
958
959hr {
960 display: none;
961}
962
963table {
964 border: 0em;
965}
966
967 .photo {
968 float: right;
969 margin-left: 1.5em;
970 margin-bottom: 1.5em;
971 margin-top: 0em;
972 max-width: 17em;
973 border: 1px solid gray;
974 padding: 3px;
975 background: white;
976}
977 .seperator {
978 padding-top: 2em;
979 clear: both;
980 }
981
982 #validators {
983 margin-top: 5em;
984 text-align: right;
985 color: #777;
986 }
987 @media print {
988 body {
989 font-size: 8pt;
990 }
991 .noprint {
992 display: none;
993 }
994 }
995
996
997.tip,
998.note {
999 background: #f0f0f2;
1000 color: #333;
1001 padding: 20px;
1002 margin: 20px;
1003}
1004
1005.tip h3,
1006.note h3 {
1007 padding: 0em;
1008 margin: 0em;
1009 font-size: 2em;
1010 font-weight: bold;
1011 color: #333;
1012}
1013
1014.tip a,
1015.note a {
1016 color: #333;
1017 text-decoration: underline;
1018}
1019
1020.footnote {
1021 font-size: small;
1022 color: #333;
1023}
1024
1025/* Changes the announcement text */
1026.tip h3,
1027.warning h3,
1028.caution h3,
1029.note h3 {
1030 font-size:large;
1031 color: #00557D;
1032}