source: stylesheets/lfs-nochunks.xsl@ 83698f8

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 83698f8 was b711e1d, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Added a CSS to can print the HTMLs.
Hardoded a CSS code into the nuchunk output to make it full stand alone.
Updated the Makefile.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3729 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.9 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.65.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-navigational.xsl"/>
18 <xsl:include href="xhtml/lfs-toc.xsl"/>
19
20 <!-- Dropping some unwanted style attributes -->
21 <xsl:param name="ulink.target" select="''"></xsl:param>
22 <xsl:param name="css.decoration" select="0"></xsl:param>
23
24 <!-- The CSS Stylesheet -->
25 <xsl:template name='user.head.content'>
26 <style type="text/css">
27 <xsl:text>
28/* Global settings */
29body {
30 font-family: sans-serif;
31 text-align: left;
32 background: #fff;
33 color: #333;
34 margin: 1em;
35 padding: 0;
36 font-size: 1em;
37 line-height: 1.2em
38}
39
40a:link { color: #22b; }
41a:visited { color: #7e4988; }
42a:hover, a:focus { color: #d30e08; }
43a:active { color: #6b77b1;}
44
45/* Headers */
46h1, h2, b, strong {
47 color: #000;
48 font-weight: bold;
49}
50
51h3, h4, h5, h6 {
52 color: #222;
53}
54
55h1 { font-size: 173%; text-align: center; }
56h2 { font-size: 144%; }
57h2.subtitle { text-align: center; }
58h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; }
59h4 { font-size: 110%;}
60h5, h6 { font-size: 110%; font-style: italic; }
61
62/* TOC and Index*/
63
64div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
65 list-style: none;
66}
67
68div.toc, div.dedication {
69 padding-left: 1em;
70}
71
72li.preface {
73 margin-left: 1em;
74}
75
76div.toc ul li h3, div.toc ul li h4 {
77 margin: .4em;
78}
79
80.item {
81 width: 15em;
82 float: left;
83}
84
85.secitem {
86 font-weight: normal;
87 width: 14em;
88 float: left;
89}
90
91/* Admonitions */
92div.note, div.tip {
93 background-color: #fffff6;
94 border: 2px solid #dbddec;
95 width: 90%;
96 margin: .5em auto;
97}
98
99div.important, div.warning, div.caution {
100 background-color: #fffff6;
101 border: medium solid #400;
102 width: 90%;
103 margin: 1.5em auto;
104 color: #600;
105 font-size: larger;
106}
107
108div.important h3, div.warning h3, div.caution h3 {
109 color: #900;
110}
111
112div.admonhead img {
113 display: none;
114}
115
116h3.admontitle {
117 padding-left: 2.5em;
118 padding-top: 1em;
119}
120
121div.admonbody {
122 margin: .5em;
123}
124
125div.important em, div.warning em, div.caution em {
126 color: #000;
127 font-weight: bold;
128}
129
130div.important tt, div.warning tt, div.caution tt {
131 font-weight: bold;
132}
133
134/* variablelist and segmentedlist */
135dl {
136 margin: 0;
137 padding: 0;
138}
139
140dt {
141 display: list-item;
142 font-weight: bold;
143 margin: .33em 0 0 1em;
144 padding: 0;
145}
146
147div.content dt {
148 list-style: none;
149}
150
151dd {
152 margin: 0 0 1em 3em;
153 padding: 0;
154}
155
156div.variablelist dd {
157 margin-bottom: 1em;
158}
159
160div.variablelist dd p {
161 margin-top: 0px;
162}
163
164dl.materials dd {
165 margin-left: 0px;
166}
167
168div.segmentedlist {
169 margin-top: 1em;
170}
171
172div.segmentedlist p {
173 margin: 0px auto;
174}
175
176/* Indented blocks */
177p, ul, dl, code, blockquote {
178 padding-left: 1em;
179}
180
181/* Monospaced elements */
182tt, code, kbd, pre, .command {
183 font-family: monospace;
184}
185
186pre.userinput {
187 color: #101310;
188 background-color: #e5e5e5;
189 border: 1px solid #050505;
190 padding: .5em 1em;
191 margin: 0 2em;
192 font-weight: bold;
193}
194
195pre.screen {
196 background-color: #e9e9e9;
197 border: 1px solid #050505;
198 padding: .5em 1em;
199 margin: 0 2em;
200}
201
202/* Sections */
203div.package {
204 background: #f5f6f7;
205 border-bottom: 0.2em solid #dbddec;
206 padding: 0.5em 0.5em 0.3em 0.5em;
207 margin: 0px auto;
208}
209
210div.installation {
211 padding: 0 0.5em 0.3em 0.5em;
212 margin: 0.5em 0 0.5em 0;
213}
214
215div.configuration {
216 background: #fefefe;
217 border-top: 0.2em solid #dbddec;
218 padding: 0.5em;
219 margin: 0.5em 0 .5em 0;
220}
221
222div.content {
223 background: #f5f6f7;
224 border-top: 0.2em solid #dbddec;
225 border-bottom: 0.2em solid #dbddec;
226 padding: 0.5em 0.5em 1em 0.5em;
227 margin: 0.5em 0 .5em 0;
228}
229
230div.installation h3.title, div.content h3.title {
231 padding-top: 0.3em;
232 margin: 0;
233}
234
235div.book, div.preface, div.part, div.chapter, div.sect1, div.index {
236 padding-bottom: 0.5em;
237}
238
239div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.index h1 {
240 background: #f5f6f7;
241 border-bottom: .2em solid #dbddec;
242 border-top: .2em solid #dbddec;
243 margin-top 1em;
244 padding: .5em;
245 text-align: center;
246}
247
248div.book h1 {
249 background: #f5f6f7;
250 margin: 0px auto;
251 padding: 0.5em;
252}
253
254div.book h2.subtitle {
255 background: #dbddec;
256 margin: 0px auto;
257 padding: 0.2em;
258}
259div.authorgroup, div p.copyright, div.abstract {
260 background: #f5f6f7;
261 margin: 0px auto;
262 padding: 1em 0.5em;
263}
264
265hr {
266 background: #dbddec;
267 height: .3em;
268 border: 0px;
269 margin: 0px auto;
270 padding: 0;
271}
272 </xsl:text>
273 </style>
274 </xsl:template>
275
276</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.