source: stylesheets/blfs-nochunks.xsl@ ea5f366

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since ea5f366 was ea5f366, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Updated the stylesheets to use version 1.69.1

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

  • Property mode set to 100644
File size: 8.1 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.69.1/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-index.xsl"/>
15 <xsl:include href="xhtml/lfs-mixed.xsl"/>
16 <xsl:include href="xhtml/lfs-sections.xsl"/>
17 <xsl:include href="xhtml/lfs-toc.xsl"/>
18 <xsl:include href="xhtml/lfs-xref.xsl"/>
19
20 <!-- This file contains our localization strings (for internationalization) -->
21 <xsl:param name="local.l10n.xml" select="document('blfs-l10n.xml')"/>
22
23 <!-- Dropping some unwanted style attributes -->
24 <xsl:param name="ulink.target" select="''"></xsl:param>
25 <xsl:param name="css.decoration" select="0"></xsl:param>
26
27 <!-- Don't use graphics in admonitions -->
28 <xsl:param name="admon.graphics" select="0"/>
29
30 <!-- Changing the admonitions output tagging -->
31 <xsl:template name="nongraphical.admonition">
32 <div class="{name(.)}">
33 <div class ="admonhead">
34 <h3 class="admontitle">
35 <xsl:apply-templates select="." mode="object.title.markup"/>
36 </h3>
37 </div>
38 <div class="admonbody">
39 <xsl:apply-templates/>
40 </div>
41 </div>
42 </xsl:template>
43
44 <!-- To drop the remainig dot when title is empty (from lfs-titles.xsl)
45 Commented out until can do section numbering
46 <xsl:template name="sect2.titlepage">
47 <xsl:choose>
48 <xsl:when test="string-length(title) = 0"/>
49 <xsl:otherwise>
50 <div class="titlepage">
51 <xsl:if test="@id">
52 <a id="{@id}" name="{@id}"/>
53 </xsl:if>
54 <h3 class="{name(.)}">
55 <xsl:apply-templates select="." mode="label.markup"/>
56 <xsl:text>. </xsl:text>
57 <xsl:value-of select="title"/>
58 </h3>
59 </div>
60 </xsl:otherwise>
61 </xsl:choose>
62 </xsl:template>-->
63
64 <!-- Added the role param for proper punctuation in xref calls
65 (from lfs-titles.xsl). -->
66 <xsl:template match="*" mode="insert.title.markup">
67 <xsl:param name="purpose"/>
68 <xsl:param name="xrefstyle"/>
69 <xsl:param name="title"/>
70 <xsl:param name="role"/>
71 <xsl:choose>
72 <xsl:when test="$purpose = 'xref' and titleabbrev">
73 <xsl:apply-templates select="." mode="titleabbrev.markup"/>
74 </xsl:when>
75 <xsl:otherwise>
76 <xsl:copy-of select="$title"/>
77 <xsl:value-of select="$role"/>
78 </xsl:otherwise>
79 </xsl:choose>
80 </xsl:template>
81
82 <!-- The CSS Stylesheet -->
83 <xsl:template name='user.head.content'>
84 <style type="text/css">
85 <xsl:text>
86/* Global settings */
87body {
88 font-family: verdana, tahoma, helvetica, arial, sans-serif;
89 text-align: left;
90 background: #fff;
91 color: #333;
92 margin: 1em;
93 padding: 0;
94 font-size: 1em;
95 line-height: 1.2em
96}
97
98a:link { color: #22b; }
99a:visited { color: #7e4988; }
100a:hover, a:focus { color: #d30e08; }
101a:active { color: #6b77b1;}
102
103/* Headers */
104h1, h2, b, strong {
105 color: #000;
106 font-weight: bold;
107}
108
109h3, h4, h5, h6 {
110 color: #222;
111}
112
113h1 { font-size: 173%; text-align: center; line-height: 1.2em; }
114h1.title sup { font-size: small; }
115h2 { font-size: 144%; line-height: 1.2em; }
116h2.subtitle { text-align: center; line-height: 1.2em; }
117h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; line-height: 1.2em; }
118h4 { font-size: 110%;}
119div.package h4, h5, h6 { font-size: 110%; font-style: italic; }
120
121/* TOC and Index*/
122
123div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
124 list-style: none;
125}
126
127div.toc, div.dedication {
128 padding-left: 1em;
129}
130
131li.preface {
132 margin-left: 1em;
133}
134
135div.toc ul li h3, div.toc ul li h4 {
136 margin: .4em;
137}
138
139.item {
140 width: 18.5em;
141 float: left;
142}
143
144.indexref {
145 margin-left: 18.5em;
146}
147
148.secitem {
149 font-weight: normal;
150 width: 16em;
151 float: left;
152}
153
154/* Admonitions */
155div.note, div.tip {
156 background-color: #fffff6;
157 border: 2px solid #dbddec;
158 width: 90%;
159 margin: .5em auto;
160}
161
162div.important, div.warning, div.caution {
163 background-color: #fffff6;
164 border: medium solid #400;
165 width: 90%;
166 margin: 1.5em auto;
167 color: #600;
168 font-size: larger;
169}
170
171div.important h3, div.warning h3, div.caution h3 {
172 color: #900;
173}
174
175h3.admontitle {
176 padding-left: 2.5em;
177 padding-top: 1em;
178}
179
180div.admonbody {
181 margin: .5em;
182}
183
184div.important em, div.warning em, div.caution em {
185 color: #000;
186 font-weight: bold;
187}
188
189div.important tt, div.warning tt, div.caution tt {
190 font-weight: bold;
191}
192
193table {
194 width: auto;
195 margin-left: 1em;
196}
197
198td {
199 vertical-align: top;
200}
201
202td span, td p {
203 margin: 0.3em;
204}
205
206div.table table {
207 border-collapse: collapse;
208 }
209
210div.table td, div.table th {
211 padding: 0.3em;
212 text-align: right;
213 vertical-align: baseline;
214}
215
216div.table tr > td:first-child, div.table tr > th:first-child {
217 text-align: left;
218}
219
220span.term {
221 display: block;
222}
223
224/* variablelist and segmentedlist */
225dl {
226 margin: 0;
227 padding: 0;
228 list-style-type: none;
229}
230
231dt {
232 display: list-item;
233 font-weight: bold;
234 margin: .33em 0 0 1em;
235 padding: 0;
236}
237
238span.seg {
239 display: block;
240 padding-left: 12em;
241}
242
243div.content dt {
244 list-style: none;
245}
246
247dd {
248 margin: 0 0 1em 3em;
249 padding: 0;
250}
251
252div.variablelist dd {
253 margin-bottom: 1em;
254}
255
256div.variablelist dd p {
257 margin-top: 0px;
258}
259
260dl.materials dd {
261 margin-left: 0px;
262}
263
264div.segmentedlist {
265 margin-top: 1em;
266}
267
268div.segmentedlist p {
269 margin: 0px auto;
270}
271
272span.segtitle {
273 display: block;
274 float: left;
275 width: 12em;
276}
277
278div.seg {
279 clear: left;
280}
281
282/* itemizedlist */
283
284div.itemizedlist {
285 margin-left: 1em;
286}
287
288ul[compact="compact"] li p {
289 padding: 0.3em;
290 margin: 0em;
291 background-color: #f0fff0;
292}
293
294/* Indented blocks */
295p, ul, dl, code, blockquote {
296 padding-left: 1em;
297}
298
299/* Monospaced elements */
300tt, code, kbd, pre, .command {
301 font-family: monospace;
302}
303
304pre.userinput {
305 color: #101310;
306 background-color: #e5e5e5;
307 border: 1px solid #050505;
308 padding: .5em 1em;
309 margin: 0 2em;
310 font-weight: bold;
311}
312
313pre.root {
314 color: #101310;
315 background-color: #e5e5e5;
316 border: 1px solid #050505;
317 padding: .5em 1em;
318 margin: 0 2em;
319 font-weight: bold;
320}
321
322.literal, .prompt {
323 font-weight: normal;
324}
325
326pre.screen {
327 background-color: #e9e9e9;
328 border: 1px solid #050505;
329 padding: .5em 1em;
330 margin: 0 2em;
331}
332
333/* Sections */
334div h2 {
335 padding: 1em 0 0.5em 0;
336 margin: 0px auto;
337}
338
339div.glossary h2 {
340 text-align: center;
341 font-size: 173%;
342 padding-top: 0.4em;
343 border-bottom: .1em solid #dbddec;
344}
345
346div.package {
347 padding: 0 0.5em 0.3em 0.5em;
348 margin: 0.5em 0 0.5em 0;
349}
350
351div.kernel {
352 padding: 0 0.5em 0.3em 0.5em;
353 margin: 0.5em 0 0.5em 0;
354}
355
356div.installation {
357 padding: 0 0.5em 0.3em 0.5em;
358 margin: 0.5em 0 0.5em 0;
359}
360
361div.commands {
362 padding: 0 0.5em 0.3em 0.5em;
363 margin: 0.5em 0 0.5em 0;
364}
365
366div.testing {
367 padding: 0 0.5em 0.3em 0.5em;
368 margin: 0.5em 0 0.5em 0;
369}
370
371div.configuration {
372 padding: 0 0.5em 0.3em 0.5em;
373 margin: 0.5em 0 0.5em 0;
374}
375
376div.content {
377 padding: 0 0.5em 0.3em 0.5em;
378 margin: 0.5em 0 0.5em 0;
379}
380
381div.book, div.preface, div.part, div.chapter, div.sect1, div.appendix, div.index {
382 padding-bottom: 0.5em;
383}
384
385div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.appendix h1, div.index h1 {
386 background: #f5f6f7;
387 border-bottom: .1em solid #dbddec;
388 border-top: .1em solid #dbddec;
389 margin-top 1em;
390 padding: .5em;
391 text-align: center;
392}
393
394div.book h1 {
395 background: #f5f6f7;
396 margin: 0px auto;
397 padding: 0.5em;
398}
399
400div.book h2.subtitle {
401 background: #dbddec;
402 margin: 0px auto;
403 padding: 0.2em;
404}
405div.authorgroup, div p.copyright, div.abstract, div p.pubdate, div.revhistory {
406 background: #f5f6f7;
407 margin: 0px auto;
408 padding: 1em 0.5em;
409}
410
411hr {
412 background: #dbddec;
413 height: .3em;
414 border: 0px;
415 margin: 0px auto;
416 padding: 0;
417}
418
419/* Last edited info */
420p.updated {
421 font-size: small;
422 font-weight: bold;
423 font-style: italic;
424}
425
426/* Inline tags */
427
428tt.systemitem {
429 font-style: italic;
430}
431 </xsl:text>
432 </style>
433 </xsl:template>
434
435</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.