source: stylesheets/blfs-nochunks.xsl@ c5b9704

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 c5b9704 was c5b9704, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Full removed graphics from nochunks output.

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

  • Property mode set to 100644
File size: 7.0 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-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 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; }
114h2 { font-size: 144%; }
115h2.subtitle { text-align: center; }
116h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; }
117h4 { font-size: 110%;}
118h5, h6 { font-size: 110%; font-style: italic; }
119
120/* TOC and Index*/
121
122div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
123 list-style: none;
124}
125
126div.toc, div.dedication {
127 padding-left: 1em;
128}
129
130li.preface {
131 margin-left: 1em;
132}
133
134div.toc ul li h3, div.toc ul li h4 {
135 margin: .4em;
136}
137
138.item {
139 width: 15em;
140 float: left;
141}
142
143.secitem {
144 font-weight: normal;
145 width: 14em;
146 float: left;
147}
148
149/* Admonitions */
150div.note, div.tip {
151 background-color: #fffff6;
152 border: 2px solid #dbddec;
153 width: 90%;
154 margin: .5em auto;
155}
156
157div.important, div.warning, div.caution {
158 background-color: #fffff6;
159 border: medium solid #400;
160 width: 90%;
161 margin: 1.5em auto;
162 color: #600;
163 font-size: larger;
164}
165
166div.important h3, div.warning h3, div.caution h3 {
167 color: #900;
168}
169
170h3.admontitle {
171 padding-left: 2.5em;
172 padding-top: 1em;
173}
174
175div.admonbody {
176 margin: .5em;
177}
178
179div.important em, div.warning em, div.caution em {
180 color: #000;
181 font-weight: bold;
182}
183
184div.important tt, div.warning tt, div.caution tt {
185 font-weight: bold;
186}
187
188/* variablelist and segmentedlist */
189dl {
190 margin: 0;
191 padding: 0;
192}
193
194dt {
195 display: list-item;
196 font-weight: bold;
197 margin: .33em 0 0 1em;
198 padding: 0;
199}
200
201div.content dt {
202 list-style: none;
203}
204
205dd {
206 margin: 0 0 1em 3em;
207 padding: 0;
208}
209
210div.variablelist dd {
211 margin-bottom: 1em;
212}
213
214div.variablelist dd p {
215 margin-top: 0px;
216}
217
218dl.materials dd {
219 margin-left: 0px;
220}
221
222div.segmentedlist {
223 margin-top: 1em;
224}
225
226div.segmentedlist p {
227 margin: 0px auto;
228}
229
230/* itemizedlist */
231
232div.itemizedlist {
233 margin-left: 1em;
234}
235
236div.sect3 li p {
237 padding: 0.3em;
238 margin: 0em;
239 background-color: #f0fff0;
240}
241
242/* Indented blocks */
243p, ul, dl, code, blockquote {
244 padding-left: 1em;
245}
246
247/* Monospaced elements */
248tt, code, kbd, pre, .command {
249 font-family: monospace;
250}
251
252pre.userinput {
253 color: #101310;
254 background-color: #e5e5e5;
255 border: 1px solid #050505;
256 padding: .5em 1em;
257 margin: 0 2em;
258 font-weight: bold;
259}
260
261pre.screen {
262 background-color: #e9e9e9;
263 border: 1px solid #050505;
264 padding: .5em 1em;
265 margin: 0 2em;
266}
267
268/* Sections */
269div.package {
270 background: #f5f6f7;
271 border-bottom: 0.2em solid #dbddec;
272 padding: 0.5em 0.5em 0.3em 0.5em;
273 margin: 0px auto;
274}
275
276div.installation {
277 padding: 0 0.5em 0.3em 0.5em;
278 margin: 0.5em 0 0.5em 0;
279}
280
281div.configuration {
282 background: #fefefe;
283 border-top: 0.2em solid #dbddec;
284 padding: 0.5em;
285 margin: 0.5em 0 .5em 0;
286}
287
288div.content {
289 background: #f5f6f7;
290 border-top: 0.2em solid #dbddec;
291 border-bottom: 0.2em solid #dbddec;
292 padding: 0.5em 0.5em 1em 0.5em;
293 margin: 0.5em 0 .5em 0;
294}
295
296div.installation h3.title, div.content h3.title {
297 padding-top: 0.3em;
298 margin: 0;
299}
300
301div.book, div.preface, div.part, div.chapter, div.sect1, div.appendix, div.index {
302 padding-bottom: 0.5em;
303}
304
305div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.appendix h1, div.index h1 {
306 background: #f5f6f7;
307 border-bottom: .2em solid #dbddec;
308 border-top: .2em solid #dbddec;
309 margin-top 1em;
310 padding: .5em;
311 text-align: center;
312}
313
314div.book h1 {
315 background: #f5f6f7;
316 margin: 0px auto;
317 padding: 0.5em;
318}
319
320div.book h2.subtitle {
321 background: #dbddec;
322 margin: 0px auto;
323 padding: 0.2em;
324}
325div.authorgroup, div p.copyright, div.abstract div p.pubdate, div.revhistory {
326 background: #f5f6f7;
327 margin: 0px auto;
328 padding: 1em 0.5em;
329}
330
331hr {
332 background: #dbddec;
333 height: .3em;
334 border: 0px;
335 margin: 0px auto;
336 padding: 0;
337}
338 </xsl:text>
339 </style>
340 </xsl:template>
341
342</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.