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

12.1 12.2 gimp3 ken/TL2024 lazarus plabs/newcss rahul/power-profiles-daemon trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128
Last change on this file since a38df1e was a38df1e, checked in by Pierre Labastie <pierre.labastie@…>, 8 months ago

nitpicking: make all length units relative

Use only em values.

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