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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 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 78768d2 was 1423d58f, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Updated the stylesheets to use DocBook-XSL 168.1

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

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