source: stylesheets/blfs-nochunks.xsl@ d8dc77a

10.0 10.1 11.0 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since d8dc77a was d8dc77a, checked in by Bruce Dubbs <bdubbs@…>, 17 years ago

Update to make th enochunks version of the book

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

  • Property mode set to 100644
File size: 6.5 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>
Note: See TracBrowser for help on using the repository browser.