source: stylesheets/blfs-nochunks.xsl@ 3fe8b51

10.0 10.1 11.0 11.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/test-20220226
Last change on this file since 3fe8b51 was 3fe8b51, checked in by Bruce Dubbs <bdubbs@…>, 17 years ago

Update stylesheets and fix Python references

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3217 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 13.0 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns="http://www.w3.org/1999/xhtml"
5 version="1.0">
6
7 <!-- We use XHTML -->
8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/docbook.xsl"/>
9
10 <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
11 <xsl:output method="html" encoding="ISO-8859-1" indent="no" />
12
13 <!-- Including our others customized templates -->
14 <xsl:include href="xhtml/lfs-admon.xsl"/>
15 <xsl:include href="xhtml/lfs-index.xsl"/>
16 <xsl:include href="xhtml/lfs-mixed.xsl"/>
17 <xsl:include href="xhtml/lfs-sections.xsl"/>
18 <xsl:include href="xhtml/lfs-toc.xsl"/>
19 <xsl:include href="xhtml/lfs-xref.xsl"/>
20
21 <!-- This file contains our localization strings (for internationalization) -->
22 <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/>
23
24 <!-- Dropping some unwanted style attributes -->
25 <xsl:param name="ulink.target" select="''"></xsl:param>
26 <xsl:param name="css.decoration" select="0"></xsl:param>
27
28 <!-- To drop the remainig dot when title is empty (from lfs-titles.xsl)-->
29 <xsl:template name="sect2.titlepage">
30 <xsl:choose>
31 <xsl:when test="string-length(title) = 0"/>
32 <xsl:otherwise>
33 <div class="titlepage">
34 <xsl:if test="@id">
35 <a id="{@id}" name="{@id}"/>
36 </xsl:if>
37 <h3 class="{name(.)}">
38 <xsl:apply-templates select="." mode="label.markup"/>
39 <xsl:text>. </xsl:text>
40 <xsl:value-of select="title"/>
41 </h3>
42 </div>
43 </xsl:otherwise>
44 </xsl:choose>
45 </xsl:template>
46
47 <!-- Added the role param for proper punctuation in xref calls
48 (from lfs-titles.xsl). -->
49 <xsl:template match="*" mode="insert.title.markup">
50 <xsl:param name="purpose"/>
51 <xsl:param name="xrefstyle"/>
52 <xsl:param name="title"/>
53 <xsl:param name="role"/>
54 <xsl:choose>
55 <xsl:when test="$purpose = 'xref' and titleabbrev">
56 <xsl:apply-templates select="." mode="titleabbrev.markup"/>
57 </xsl:when>
58 <xsl:otherwise>
59 <xsl:copy-of select="$title"/>
60 <xsl:value-of select="$role"/>
61 </xsl:otherwise>
62 </xsl:choose>
63 </xsl:template>
64
65 <!-- The CSS Stylesheet -->
66 <xsl:template name='user.head.content'>
67 <style type="text/css">
68 <xsl:text>
69/* Global settings */
70body {
71 font-family: verdana, tahoma, helvetica, arial, sans-serif;
72 text-align: left;
73 background: #fff;
74 color: #333;
75 margin: 1em;
76 padding: 0;
77 font-size: 1em;
78 line-height: 1.2em
79}
80
81a:link { color: #22b; }
82a:visited { color: #7e4988; }
83a:hover, a:focus { color: #d30e08; }
84a:active { color: #6b77b1;}
85
86/* Headers */
87h1, h2, b, strong {
88 color: #000;
89 font-weight: bold;
90}
91
92h3, h4, h5, h6 {
93 color: #222;
94}
95
96h1 { font-size: 173%; text-align: center; }
97h2 { font-size: 144%; }
98h2.subtitle { text-align: center; }
99h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; }
100h4 { font-size: 110%;}
101h5, h6 { font-size: 110%; font-style: italic; }
102
103/* TOC and Index*/
104
105div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
106 list-style: none;
107}
108
109div.toc, div.dedication {
110 padding-left: 1em;
111}
112
113li.preface {
114 margin-left: 1em;
115}
116
117div.toc ul li h3, div.toc ul li h4 {
118 margin: .4em;
119}
120
121.item {
122 width: 15em;
123 float: left;
124}
125
126.secitem {
127 font-weight: normal;
128 width: 14em;
129 float: left;
130}
131
132/* Admonitions */
133div.note, div.tip {
134 background-color: #fffff6;
135 border: 2px solid #dbddec;
136 width: 90%;
137 margin: .5em auto;
138}
139
140div.important, div.warning, div.caution {
141 background-color: #fffff6;
142 border: medium solid #400;
143 width: 90%;
144 margin: 1.5em auto;
145 color: #600;
146 font-size: larger;
147}
148
149div.important h3, div.warning h3, div.caution h3 {
150 color: #900;
151}
152
153div.admonhead img {
154 display: none;
155}
156
157h3.admontitle {
158 padding-left: 2.5em;
159 padding-top: 1em;
160}
161
162div.admonbody {
163 margin: .5em;
164}
165
166div.important em, div.warning em, div.caution em {
167 color: #000;
168 font-weight: bold;
169}
170
171div.important tt, div.warning tt, div.caution tt {
172 font-weight: bold;
173}
174
175/* variablelist and segmentedlist */
176dl {
177 margin: 0;
178 padding: 0;
179}
180
181dt {
182 display: list-item;
183 font-weight: bold;
184 margin: .33em 0 0 1em;
185 padding: 0;
186}
187
188div.content dt {
189 list-style: none;
190}
191
192dd {
193 margin: 0 0 1em 3em;
194 padding: 0;
195}
196
197div.variablelist dd {
198 margin-bottom: 1em;
199}
200
201div.variablelist dd p {
202 margin-top: 0px;
203}
204
205dl.materials dd {
206 margin-left: 0px;
207}
208
209div.segmentedlist {
210 margin-top: 1em;
211}
212
213div.segmentedlist p {
214 margin: 0px auto;
215}
216
217/* itemizedlist */
218
219div.itemizedlist {
220 margin-left: 1em;
221}
222
223div.sect3 li p {
224 padding: 0.3em;
225 margin: 0em;
226 background-color: #f0fff0;
227}
228
229/* Indented blocks */
230p, ul, dl, code, blockquote {
231 padding-left: 1em;
232}
233
234/* Monospaced elements */
235tt, code, kbd, pre, .command {
236 font-family: monospace;
237}
238
239pre.userinput {
240 color: #101310;
241 background-color: #e5e5e5;
242 border: 1px solid #050505;
243 padding: .5em 1em;
244 margin: 0 2em;
245 font-weight: bold;
246}
247
248pre.screen {
249 background-color: #e9e9e9;
250 border: 1px solid #050505;
251 padding: .5em 1em;
252 margin: 0 2em;
253}
254
255/* Sections */
256div.package {
257 background: #f5f6f7;
258 border-bottom: 0.2em solid #dbddec;
259 padding: 0.5em 0.5em 0.3em 0.5em;
260 margin: 0px auto;
261}
262
263div.installation {
264 padding: 0 0.5em 0.3em 0.5em;
265 margin: 0.5em 0 0.5em 0;
266}
267
268div.configuration {
269 background: #fefefe;
270 border-top: 0.2em solid #dbddec;
271 padding: 0.5em;
272 margin: 0.5em 0 .5em 0;
273}
274
275div.content {
276 background: #f5f6f7;
277 border-top: 0.2em solid #dbddec;
278 border-bottom: 0.2em solid #dbddec;
279 padding: 0.5em 0.5em 1em 0.5em;
280 margin: 0.5em 0 .5em 0;
281}
282
283div.installation h3.title, div.content h3.title {
284 padding-top: 0.3em;
285 margin: 0;
286}
287
288div.book, div.preface, div.part, div.chapter, div.sect1, div.appendix, div.index {
289 padding-bottom: 0.5em;
290}
291
292div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.appendix h1, div.index h1 {
293 background: #f5f6f7;
294 border-bottom: .2em solid #dbddec;
295 border-top: .2em solid #dbddec;
296 margin-top 1em;
297 padding: .5em;
298 text-align: center;
299}
300
301div.book h1 {
302 background: #f5f6f7;
303 margin: 0px auto;
304 padding: 0.5em;
305}
306
307div.book h2.subtitle {
308 background: #dbddec;
309 margin: 0px auto;
310 padding: 0.2em;
311}
312div.authorgroup, div p.copyright, div.abstract div p.pubdate, div.revhistory {
313 background: #f5f6f7;
314 margin: 0px auto;
315 padding: 1em 0.5em;
316}
317
318hr {
319 background: #dbddec;
320 height: .3em;
321 border: 0px;
322 margin: 0px auto;
323 padding: 0;
324}
325 </xsl:text>
326 </style>
327 </xsl:template>
328
329</xsl:stylesheet>
330<?xml version='1.0' encoding='ISO-8859-1'?>
331
332<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
333 xmlns="http://www.w3.org/1999/xhtml"
334 version="1.0">
335
336 <!-- We use XHTML -->
337 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/docbook.xsl"/>
338
339 <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
340 <xsl:output method="html" encoding="ISO-8859-1" indent="no" />
341
342 <!-- Including our others customized templates -->
343 <xsl:include href="xhtml/lfs-admon.xsl"/>
344 <xsl:include href="xhtml/lfs-index.xsl"/>
345 <xsl:include href="xhtml/lfs-mixed.xsl"/>
346 <xsl:include href="xhtml/lfs-sections.xsl"/>
347 <xsl:include href="xhtml/lfs-toc.xsl"/>
348 <xsl:include href="xhtml/lfs-xref.xsl"/>
349
350 <!-- This file contains our localization strings (for internationalization) -->
351 <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/>
352
353 <!-- Dropping some unwanted style attributes -->
354 <xsl:param name="ulink.target" select="''"></xsl:param>
355 <xsl:param name="css.decoration" select="0"></xsl:param>
356
357 <!-- To drop the remainig dot when title is empty (from lfs-titles.xsl)-->
358 <xsl:template name="sect2.titlepage">
359 <xsl:choose>
360 <xsl:when test="string-length(title) = 0"/>
361 <xsl:otherwise>
362 <div class="titlepage">
363 <xsl:if test="@id">
364 <a id="{@id}" name="{@id}"/>
365 </xsl:if>
366 <h3 class="{name(.)}">
367 <xsl:apply-templates select="." mode="label.markup"/>
368 <xsl:text>. </xsl:text>
369 <xsl:value-of select="title"/>
370 </h3>
371 </div>
372 </xsl:otherwise>
373 </xsl:choose>
374 </xsl:template>
375
376 <!-- Added the role param for proper punctuation in xref calls
377 (from lfs-titles.xsl). -->
378 <xsl:template match="*" mode="insert.title.markup">
379 <xsl:param name="purpose"/>
380 <xsl:param name="xrefstyle"/>
381 <xsl:param name="title"/>
382 <xsl:param name="role"/>
383 <xsl:choose>
384 <xsl:when test="$purpose = 'xref' and titleabbrev">
385 <xsl:apply-templates select="." mode="titleabbrev.markup"/>
386 </xsl:when>
387 <xsl:otherwise>
388 <xsl:copy-of select="$title"/>
389 <xsl:value-of select="$role"/>
390 </xsl:otherwise>
391 </xsl:choose>
392 </xsl:template>
393
394 <!-- The CSS Stylesheet -->
395 <xsl:template name='user.head.content'>
396 <style type="text/css">
397 <xsl:text>
398/* Global settings */
399body {
400 font-family: verdana, tahoma, helvetica, arial, sans-serif;
401 text-align: left;
402 background: #fff;
403 color: #333;
404 margin: 1em;
405 padding: 0;
406 font-size: 1em;
407 line-height: 1.2em
408}
409
410a:link { color: #22b; }
411a:visited { color: #7e4988; }
412a:hover, a:focus { color: #d30e08; }
413a:active { color: #6b77b1;}
414
415/* Headers */
416h1, h2, b, strong {
417 color: #000;
418 font-weight: bold;
419}
420
421h3, h4, h5, h6 {
422 color: #222;
423}
424
425h1 { font-size: 173%; text-align: center; }
426h2 { font-size: 144%; }
427h2.subtitle { text-align: center; }
428h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; }
429h4 { font-size: 110%;}
430h5, h6 { font-size: 110%; font-style: italic; }
431
432/* TOC and Index*/
433
434div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
435 list-style: none;
436}
437
438div.toc, div.dedication {
439 padding-left: 1em;
440}
441
442li.preface {
443 margin-left: 1em;
444}
445
446div.toc ul li h3, div.toc ul li h4 {
447 margin: .4em;
448}
449
450.item {
451 width: 15em;
452 float: left;
453}
454
455.secitem {
456 font-weight: normal;
457 width: 14em;
458 float: left;
459}
460
461/* Admonitions */
462div.note, div.tip {
463 background-color: #fffff6;
464 border: 2px solid #dbddec;
465 width: 90%;
466 margin: .5em auto;
467}
468
469div.important, div.warning, div.caution {
470 background-color: #fffff6;
471 border: medium solid #400;
472 width: 90%;
473 margin: 1.5em auto;
474 color: #600;
475 font-size: larger;
476}
477
478div.important h3, div.warning h3, div.caution h3 {
479 color: #900;
480}
481
482div.admonhead img {
483 display: none;
484}
485
486h3.admontitle {
487 padding-left: 2.5em;
488 padding-top: 1em;
489}
490
491div.admonbody {
492 margin: .5em;
493}
494
495div.important em, div.warning em, div.caution em {
496 color: #000;
497 font-weight: bold;
498}
499
500div.important tt, div.warning tt, div.caution tt {
501 font-weight: bold;
502}
503
504/* variablelist and segmentedlist */
505dl {
506 margin: 0;
507 padding: 0;
508}
509
510dt {
511 display: list-item;
512 font-weight: bold;
513 margin: .33em 0 0 1em;
514 padding: 0;
515}
516
517div.content dt {
518 list-style: none;
519}
520
521dd {
522 margin: 0 0 1em 3em;
523 padding: 0;
524}
525
526div.variablelist dd {
527 margin-bottom: 1em;
528}
529
530div.variablelist dd p {
531 margin-top: 0px;
532}
533
534dl.materials dd {
535 margin-left: 0px;
536}
537
538div.segmentedlist {
539 margin-top: 1em;
540}
541
542div.segmentedlist p {
543 margin: 0px auto;
544}
545
546/* itemizedlist */
547
548div.itemizedlist {
549 margin-left: 1em;
550}
551
552div.sect3 li p {
553 padding: 0.3em;
554 margin: 0em;
555 background-color: #f0fff0;
556}
557
558/* Indented blocks */
559p, ul, dl, code, blockquote {
560 padding-left: 1em;
561}
562
563/* Monospaced elements */
564tt, code, kbd, pre, .command {
565 font-family: monospace;
566}
567
568pre.userinput {
569 color: #101310;
570 background-color: #e5e5e5;
571 border: 1px solid #050505;
572 padding: .5em 1em;
573 margin: 0 2em;
574 font-weight: bold;
575}
576
577pre.screen {
578 background-color: #e9e9e9;
579 border: 1px solid #050505;
580 padding: .5em 1em;
581 margin: 0 2em;
582}
583
584/* Sections */
585div.package {
586 background: #f5f6f7;
587 border-bottom: 0.2em solid #dbddec;
588 padding: 0.5em 0.5em 0.3em 0.5em;
589 margin: 0px auto;
590}
591
592div.installation {
593 padding: 0 0.5em 0.3em 0.5em;
594 margin: 0.5em 0 0.5em 0;
595}
596
597div.configuration {
598 background: #fefefe;
599 border-top: 0.2em solid #dbddec;
600 padding: 0.5em;
601 margin: 0.5em 0 .5em 0;
602}
603
604div.content {
605 background: #f5f6f7;
606 border-top: 0.2em solid #dbddec;
607 border-bottom: 0.2em solid #dbddec;
608 padding: 0.5em 0.5em 1em 0.5em;
609 margin: 0.5em 0 .5em 0;
610}
611
612div.installation h3.title, div.content h3.title {
613 padding-top: 0.3em;
614 margin: 0;
615}
616
617div.book, div.preface, div.part, div.chapter, div.sect1, div.appendix, div.index {
618 padding-bottom: 0.5em;
619}
620
621div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.appendix h1, div.index h1 {
622 background: #f5f6f7;
623 border-bottom: .2em solid #dbddec;
624 border-top: .2em solid #dbddec;
625 margin-top 1em;
626 padding: .5em;
627 text-align: center;
628}
629
630div.book h1 {
631 background: #f5f6f7;
632 margin: 0px auto;
633 padding: 0.5em;
634}
635
636div.book h2.subtitle {
637 background: #dbddec;
638 margin: 0px auto;
639 padding: 0.2em;
640}
641div.authorgroup, div p.copyright, div.abstract div p.pubdate, div.revhistory {
642 background: #f5f6f7;
643 margin: 0px auto;
644 padding: 1em 0.5em;
645}
646
647hr {
648 background: #dbddec;
649 height: .3em;
650 border: 0px;
651 margin: 0px auto;
652 padding: 0;
653}
654 </xsl:text>
655 </style>
656 </xsl:template>
657
658</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.