source: stylesheets/lfs-xsl/lfs.css@ ba0723a

trunk
Last change on this file since ba0723a was 44850bb, checked in by Pierre Labastie <pierre.labastie@…>, 5 months ago

Fix some defects of lfs book formatting

  • have title of section stay visible when scrolling
  • when clicking on an internal link, make it fully visible instead of hidden behind the header
  • Property mode set to 100644
File size: 9.2 KB
Line 
1/* Global settings */
2body {
3 font-family: verdana, tahoma, arial, sans-serif;
4 text-align: left;
5 background: #fff;
6 color: #222;
7 margin: 1em;
8 padding: 0;
9 font-size: 1em;
10 line-height: 1.2em;
11}
12
13
14/* Links */
15a:link { color: #22b; }
16a.ulink:link { font-weight: bold; color: #55f; }
17a:visited { color: #7e4988 ! important; }
18a:hover, a:focus { color: #d30e08 ! important; }
19a:active { color: #6b77b1 ! important;}
20
21
22/* Book titlepage */
23.book .titlepage {
24 background: #f5f6f7;
25 margin: 0px auto;
26 padding: 0 1em;
27}
28
29.book hr {
30 background: #dbddec;
31 height: .3em;
32 border: 0px;
33 margin: 0 -1em;
34 padding: 0;
35}
36
37div.dedication {
38 padding-left: 1em;
39}
40
41/* Section titles */
42h1.sect1, h1.preface, h1.part, h1.chapter, h1.appendix, .glossary h1, .index h1
43 {
44 background: #f5f6f7;
45 border-bottom: .1em solid #dbddec;
46 margin-bottom:1em;
47 margin-top: 0;
48 padding: .4em;
49}
50
51/* Scrolling parts
52 The header is taller for sect1 and chapter pages than on the
53 other pages. Since we want fixed boxes, their top has to be calculated
54 by trial and errors to fit below the static header box.*/
55
56div.sect1, div.chapter, div.appendix, div.wrap {
57 top: 11.55em;
58}
59div.preface, div.part, .index div.index {
60 top: 10.15em;
61}
62div.sect1, div.appendix, div.preface, div.part, div.chapter, div.wrap, .index div.index {
63/* padding-left: .3em;*/
64 overflow:auto;
65 height: auto;
66 position: fixed;
67 left:1em;
68 right:1em;
69 bottom: 1em;
70 border-bottom: 1em solid #dbddec;
71}
72
73div.important ul {
74 padding-left: 1.5em;
75 list-style-type: disc;
76}
77
78div.important ul li p {
79 margin: 0px;
80 padding: 0px 0.6em;
81}
82
83.package, .kernel, .installation, .commands, .testing, .configuration, .content {
84 padding: 0 .5em .2em 0;
85 margin: 0;
86}
87
88.lfs .package {
89 background: #f5f6f7;
90 border-bottom: 0.2em solid #dbddec;
91 padding-top: .1em;
92/* margin-top: 0;*/
93}
94/*
95.lfs .package p:first-child {
96 margin-top: 0;
97}*/
98
99.lfs .configuration {
100 background: #fefefe;
101 border-top: 0.2em solid #dbddec;
102}
103
104.lfs .content {
105 background: #f5f6f7;
106 border-top: 0.2em solid #dbddec;
107 border-bottom: 0.2em solid #dbddec;
108 padding-bottom: .1em;
109 margin-bottom: .5em;
110}
111
112/* Headers */
113h1, h2, h3, h4, h5, h6, b, .strong {
114 color: #000;
115 font-weight: bold;
116 line-height: 1em;
117}
118
119h1 {
120 font-size: 173%;
121 text-align: center;
122}
123
124.book h1 {
125 margin: 0;
126 padding: 0.4em;
127}
128
129.wrap h1 {
130 background: #f5f6f7;
131 margin: 0;
132 padding: .4em;
133}
134
135h1.title sup {
136 font-size: small;
137}
138
139h2 {
140 font-size: 144%;
141}
142
143.book h2.subtitle {
144 text-align: center;
145 background: #dbddec;
146 margin: 0;
147 padding: 0.2em;
148}
149
150.appendix h2 {
151 font-size: 133%;
152 margin-top: .8em;
153 margin-bottom: 0.2em;
154}
155
156h3 {
157 font-size: 120%;
158}
159
160h4 {
161 font-size: 110%;
162}
163
164.package h4, h5, h6 {
165 font-size: 100%;
166 font-style: italic;
167}
168
169
170/* Navigation */
171div.navheader, div.navfooter {
172 background: #ecedef;
173 margin: 0;
174 padding: 0.1em .5em;
175}
176
177div.navheader {
178 border-bottom: .1em solid #dbddec;
179}
180
181/* no need for a footer now that the header is always visible */
182div.navfooter {
183 display:none;
184}
185
186/* Except for the first page (TOC), where the bottom is the only
187 place where navigation is displayed. */
188
189div.book + div.navfooter {
190 display:block
191}
192
193div.navheader h4 {
194 margin-top: .4em;
195 margin-bottom: 0;
196 text-align: center;
197}
198
199div.navheader h3 {
200 margin-top: .2em;
201 margin-bottom: 0;
202 text-align: center;
203}
204
205div.navheader ul, div.navfooter ul {
206 padding: .2em .5em .5em .5em; /*top right bottom left*/
207 margin: .5em 0;
208 position: relative;
209 background: #dbddec;
210}
211
212div.navheader ul li, div.navfooter ul li {
213 display: inline;
214 width: 40%;
215}
216
217div.navheader ul li.prev, div.navfooter ul li.prev {
218 position: absolute;
219 display: block;
220 left: 0;
221 text-align: left;
222 padding: 0.2em 1em;
223 margin-left: .4em;
224}
225
226div.navheader ul li.next, div.navfooter ul li.next {
227 position: absolute;
228 display: block;
229 text-align: right;
230 right: 0;
231 padding: 0.2em 1em;
232 margin-right: .4em;
233}
234
235div.navheader ul li.prev p, div.navfooter ul li.prev p,
236div.navheader ul li.next p, div.navfooter ul li.next p {
237 padding: 0;
238 margin: .1em 0;
239}
240
241div.navheader ul li.home, div.navheader ul li.up,
242div.navfooter ul li.home, div.navfooter ul li.up {
243 text-align: center;
244 padding: 0;
245 margin: 0 auto;
246 display: block;
247 color: #dbddec;
248}
249
250
251/* TOC */
252div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
253 list-style: none;
254}
255
256div.toc {
257 padding-left: 1em;
258}
259
260.book li.preface, .part li.appendix {
261 margin-left: 1em;
262}
263
264.part li.preface {
265 margin-left: 0em;
266}
267
268div.toc h3 {
269 margin: 1em 0 .3em 0;
270}
271
272li.appendix h3, li.glossary h3, li.index h3 {
273 margin: .5em
274}
275
276div.toc h4 {
277 margin: .6em 0 .2em 0;
278}
279
280li.chapter h4 a {
281 display: block;
282 margin-bottom: .4em
283}
284
285.dummy {
286 display: block;
287 font-weight: bold;
288 font-size: 110%;
289 margin: .6em 0 .2em 0;
290}
291
292span.blue {
293 color: #2ac;
294}
295
296/* Index */
297.item {
298 float: left;
299 margin-right: 1em
300}
301
302.secitem {
303 font-weight: normal;
304 float: left;
305 margin-right: 1em
306}
307
308.indexref {
309 display: block;
310}
311
312.item + .indexref {
313 margin-left: 20em;
314}
315
316.secitem + .indexref {
317 margin-left: 19em;
318}
319
320
321/* Admonitions */
322div.admon img {
323 padding: .3em;
324}
325
326div.admon h3 {
327 display: inline;
328 margin-left: 2em;
329}
330
331div.admon p {
332 margin-left: .5em;
333 padding-bottom: .4em;
334}
335
336div.admon pre {
337 margin: 0.5em 3em;
338}
339
340div.note, div.tip {
341 background-color: #fffff6;
342 border: 2px solid #dbddec;
343 width: 90%;
344 margin: .5em auto;
345}
346
347div.important, div.warning, div.caution {
348 background-color: #fffff6;
349 border: medium solid #400;
350 width: 90%;
351 margin: .5em auto;
352 color: #600;
353}
354
355div.important h3, div.warning h3, div.caution h3 {
356 color: #900;
357}
358
359div.important em, div.warning em, div.caution em {
360 color: #000;
361 font-weight: bold;
362}
363
364
365/* table */
366.table p.title {
367 text-align: center;
368 margin-top: 0;
369 margin-bottom: .3em;
370}
371
372.table table, .informaltable {
373 margin-left: auto;
374 margin-right: auto;
375}
376
377.table table th, .table table td {
378 padding: 0.2em 2em 0.2em 2em;
379 text-align: left;
380}
381
382.revhistory {
383 padding-left: 1em;
384}
385
386.revhistory th {
387 line-height: 2em;
388 text-align: left;
389}
390
391.revhistory td {
392 padding-right: 1em;
393}
394
395
396/* variablelist as table */
397.variablelist table {
398 width: auto;
399 margin: 0 1em 0 1em;
400}
401
402.variablelist td {
403 vertical-align: top;
404}
405
406.variablelist td span, td p {
407 margin: 0.25em;
408}
409
410
411/* variablelist as list */
412dl {
413 padding-left: 1em
414}
415
416dt {
417 font-weight: bold;
418 margin-left: 1em;
419}
420
421dd {
422 margin-bottom: .6em;
423 margin-left: 1em;
424}
425
426dd p {
427 margin-top: 0;
428 margin-bottom: 0;
429 padding-top: 0;
430 padding-bottom: 0;
431}
432
433div.materials dt {
434 display: list-item;
435}
436
437div.materials dd {
438 margin-left: 0;
439 padding-left: 0;
440}
441
442
443/* segmentedlist */
444.appendix .segmentedlist {
445 padding-left: 1em;
446}
447
448.package .seg {
449 margin-bottom: 0em;
450 margin-top: 0em;
451 clear: left;
452}
453
454.content .seg {
455 margin-bottom: .4em;
456 margin-top: .4em;
457 clear: left;
458}
459
460.segtitle {
461 float: left;
462 padding-left: 1em;
463 width: 14.5em;
464}
465
466.content .segtitle {
467 width: 12em;
468}
469
470.package .segbody {
471 display: block;
472 padding-left: 14em;
473}
474
475.appendix .segbody{
476 display: block;
477 padding-left: 16em;
478}
479
480.content .segbody {
481 display: block;
482 padding-left: 13em;
483}
484
485.content table tr td:first-child
486{
487 width: 9em;
488 padding-right: 0px;
489}
490
491.content table tr td:first-child p
492{
493 padding-right: 0px;
494}
495
496/* itemizedlist */
497ul {
498 padding-left: 1em
499}
500
501.itemizedlist ul {
502 margin-left: 1em
503}
504
505.itemizedlist li ul {
506 margin-bottom: 1.2em;
507}
508
509.itemizedlist li ul li p {
510 margin-top: .5em;
511 margin-bottom: .5em;
512}
513
514.itemizedlist li ul li:first-child p:first-child {
515 margin-top: -.6em;
516}
517
518ul.compact {
519 list-style: none;
520}
521
522.blfs ul.compact {
523 list-style: disc;
524}
525
526ul.compact li {
527 margin: 0em;
528 padding: 0em;
529}
530
531ul.compact li p {
532 padding: 0.3em;
533 margin: 0em;
534}
535
536.blfs ul.compact li p {
537 background-color: #f0fff0;
538}
539
540/* orderedlist */
541ol {
542 list-style: decimal;
543}
544
545ol ol {
546 list-style: lower-alpha;
547}
548
549ol ol ol {
550 list-style: lower-roman;
551}
552
553ol.compact li {
554 margin: 0em;
555 padding: 0em;
556}
557
558ol.compact li p {
559 padding: 0.3em;
560 margin: 0em;
561}
562
563
564/* Indented blocks */
565p, blockquote {
566 padding-left: 1em;
567 padding-right: 1em;
568}
569
570
571/* Monospaced elements */
572tt, code, kbd, pre, .command {
573 font-family: monospace;
574}
575
576.systemitem {
577 font-style: italic;
578}
579
580pre {
581 background-color: #e5e5e5;
582 border: 1px solid #050505;
583 padding: .5em 1em;
584 margin: 0 2em .5em 2em;
585 font-weight: bold;
586}
587
588pre.userinput {
589 color: #101310;
590}
591
592pre.root {
593 color: #101310;
594 border: 1px solid #11a;
595}
596
597pre.screen {
598 color: #000;
599 background-color: #e9e9e9;
600 font-weight: normal;
601}
602
603.literal, .prompt {
604 font-weight: normal;
605}
606
607
608/* Mixed tags */
609p.usernotes {
610 margin-left: -1em;
611 font-size: small;
612 font-weight: bold;
613 font-style: italic;
614}
615
616.underlined {
617 text-decoration: underline;
618}
619
620
621/* Last edited info */
622p.updated {
623 font-size: small;
624 font-weight: bold;
625 font-style: italic;
626}
627
628
629/* Special colored blocks */
630 /* OrangeRed4 */
631.feature-ssp {
632 color: #8B2500;
633}
634
635 /* RoyalBlue3 */
636.feature-aslr {
637 color: #3A5FCD;
638}
639
640 /* NavyBlue */
641.feature-pax {
642 color: #000080;
643}
644
645 /* VioletRed */
646.feature-hardened_tmp {
647 color: #d02090;
648}
649
650 /* PaleTurquoise4 */
651.feature-warnings {
652 color: #668b8b;
653}
654
655 /* RosyBrown */
656.feature-misc {
657 color: #bc8f8f;
658}
659
660 /* Sienna*/
661.feature-blowfish {
662 color: #8E6B23
663}
Note: See TracBrowser for help on using the repository browser.