source: stylesheets/lfs-xsl/lfs.css@ 35dc049b

12.1 ken/TL2024 lazarus plabs/newcss rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since 35dc049b was 35dc049b, checked in by Pierre Labastie <pierre.labastie@…>, 5 months ago

Fix slight dissymmetry of Up/home positioning

The padding for the containing box was not right/left symmetric because
the order of padding values is not trivial in css (top right bottom
left). Making right and left equal allows to center the Up/Home box more
precisely. Then some tweaks for Next and Prev boxes have to be removed.

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