source: BOOK/stylesheets/lfs-nochunks.xsl@ c5d783f

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since c5d783f was 3f8be484, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 6.7 KB
RevLine 
[3f8be484]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/profile-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('lfs-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 <xsl:template name="sect2.titlepage">
46 <xsl:choose>
47 <xsl:when test="string-length(title) = 0"/>
48 <xsl:otherwise>
49 <div class="titlepage">
50 <xsl:if test="@id">
51 <a id="{@id}" name="{@id}"/>
52 </xsl:if>
53 <h3 class="{name(.)}">
54 <xsl:apply-templates select="." mode="label.markup"/>
55 <xsl:text>. </xsl:text>
56 <xsl:value-of select="title"/>
57 </h3>
58 </div>
59 </xsl:otherwise>
60 </xsl:choose>
61 </xsl:template>
62
63 <!-- Added the role param for proper punctuation in xref calls
64 (from lfs-titles.xsl). -->
65 <xsl:template match="*" mode="insert.title.markup">
66 <xsl:param name="purpose"/>
67 <xsl:param name="xrefstyle"/>
68 <xsl:param name="title"/>
69 <xsl:param name="role"/>
70 <xsl:choose>
71 <xsl:when test="$purpose = 'xref' and titleabbrev">
72 <xsl:apply-templates select="." mode="titleabbrev.markup"/>
73 </xsl:when>
74 <xsl:otherwise>
75 <xsl:copy-of select="$title"/>
76 <xsl:value-of select="$role"/>
77 </xsl:otherwise>
78 </xsl:choose>
79 </xsl:template>
80
81 <!-- The CSS Stylesheet -->
82 <xsl:template name='user.head.content'>
83 <style type="text/css">
84 <xsl:text>
85/* Global settings */
86body {
87 font-family: sans-serif;
88 text-align: left;
89 background: #fff;
90 color: #333;
91 margin: 1em;
92 padding: 0;
93 font-size: 1em;
94 line-height: 1.2em
95}
96
97a:link { color: #22b; }
98a:visited { color: #7e4988; }
99a:hover, a:focus { color: #d30e08; }
100a:active { color: #6b77b1;}
101
102/* Headers */
103h1, h2, b, strong {
104 color: #000;
105 font-weight: bold;
106}
107
108h3, h4, h5, h6 {
109 color: #222;
110}
111
112h1 { font-size: 173%; text-align: center; }
113h2 { font-size: 144%; }
114h2.subtitle { text-align: center; }
115h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; }
116h4 { font-size: 110%;}
117h5, h6 { font-size: 110%; font-style: italic; }
118
119/* TOC and Index*/
120
121div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
122 list-style: none;
123}
124
125div.toc, div.dedication {
126 padding-left: 1em;
127}
128
129li.preface {
130 margin-left: 1em;
131}
132
133div.toc ul li h3, div.toc ul li h4 {
134 margin: .4em;
135}
136
137.item {
138 width: 15em;
139 float: left;
140}
141
142.secitem {
143 font-weight: normal;
144 width: 14em;
145 float: left;
146}
147
148/* Admonitions */
149div.note, div.tip {
150 background-color: #fffff6;
151 border: 2px solid #dbddec;
152 width: 90%;
153 margin: .5em auto;
154}
155
156div.important, div.warning, div.caution {
157 background-color: #fffff6;
158 border: medium solid #400;
159 width: 90%;
160 margin: 1.5em auto;
161 color: #600;
162 font-size: larger;
163}
164
165div.important h3, div.warning h3, div.caution h3 {
166 color: #900;
167}
168
169h3.admontitle {
170 padding-left: 2.5em;
171 padding-top: 1em;
172}
173
174div.admonbody {
175 margin: .5em;
176}
177
178div.important em, div.warning em, div.caution em {
179 color: #000;
180 font-weight: bold;
181}
182
183div.important tt, div.warning tt, div.caution tt {
184 font-weight: bold;
185}
186
187/* variablelist and segmentedlist */
188dl {
189 margin: 0;
190 padding: 0;
191}
192
193dt {
194 display: list-item;
195 font-weight: bold;
196 margin: .33em 0 0 1em;
197 padding: 0;
198}
199
200div.content dt {
201 list-style: none;
202}
203
204dd {
205 margin: 0 0 1em 3em;
206 padding: 0;
207}
208
209div.variablelist dd {
210 margin-bottom: 1em;
211}
212
213div.variablelist dd p {
214 margin-top: 0px;
215}
216
217dl.materials dd {
218 margin-left: 0px;
219}
220
221div.segmentedlist {
222 margin-top: 1em;
223}
224
225div.segmentedlist p {
226 margin: 0px auto;
227}
228
229/* itemizedlist */
230
231div.itemizedlist {
232 margin-left: 1em;
233}
234
235/* Indented blocks */
236p, ul, dl, code, blockquote {
237 padding-left: 1em;
238}
239
240/* Monospaced elements */
241tt, code, kbd, pre, .command {
242 font-family: monospace;
243}
244
245pre.userinput {
246 color: #101310;
247 background-color: #e5e5e5;
248 border: 1px solid #050505;
249 padding: .5em 1em;
250 margin: 0 2em;
251 font-weight: bold;
252}
253
254pre.screen {
255 background-color: #e9e9e9;
256 border: 1px solid #050505;
257 padding: .5em 1em;
258 margin: 0 2em;
259}
260
261/* Sections */
262div.package {
263 background: #f5f6f7;
264 border-bottom: 0.2em solid #dbddec;
265 padding: 0.5em 0.5em 0.3em 0.5em;
266 margin: 0px auto;
267}
268
269div.installation {
270 padding: 0 0.5em 0.3em 0.5em;
271 margin: 0.5em 0 0.5em 0;
272}
273
274div.configuration {
275 background: #fefefe;
276 border-top: 0.2em solid #dbddec;
277 padding: 0.5em;
278 margin: 0.5em 0 .5em 0;
279}
280
281div.content {
282 background: #f5f6f7;
283 border-top: 0.2em solid #dbddec;
284 border-bottom: 0.2em solid #dbddec;
285 padding: 0.5em 0.5em 1em 0.5em;
286 margin: 0.5em 0 .5em 0;
287}
288
289div.installation h3.title, div.content h3.title {
290 padding-top: 0.3em;
291 margin: 0;
292}
293
294div.book, div.preface, div.part, div.chapter, div.sect1, div.index {
295 padding-bottom: 0.5em;
296}
297
298div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.index h1 {
299 background: #f5f6f7;
300 border-bottom: .2em solid #dbddec;
301 border-top: .2em solid #dbddec;
302 margin-top 1em;
303 padding: .5em;
304 text-align: center;
305}
306
307div.book h1 {
308 background: #f5f6f7;
309 margin: 0px auto;
310 padding: 0.5em;
311}
312
313div.book h2.subtitle {
314 background: #dbddec;
315 margin: 0px auto;
316 padding: 0.2em;
317}
318div.authorgroup, div p.copyright, div.abstract {
319 background: #f5f6f7;
320 margin: 0px auto;
321 padding: 1em 0.5em;
322}
323
324hr {
325 background: #dbddec;
326 height: .3em;
327 border: 0px;
328 margin: 0px auto;
329 padding: 0;
330}
331 </xsl:text>
332 </style>
333 </xsl:template>
334
335</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.