source: stylesheets/blfs-nochunks.xsl@ 276015d2

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 276015d2 was 276015d2, checked in by Randy McMurchy <randy@…>, 17 years ago

Added the LastChangedBy and Date keywords then set the corresponding keyword property on each file in the repo

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

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