Author: manuel
Date: 2007-04-21 11:10:30 -0600 (Sat, 21 Apr 2007)
New Revision: 8091
Modified:
branches/new-xsl/blfs-chunked.xsl
branches/new-xsl/lfs.css
branches/new-xsl/xhtml/lfs-titles.xsl
Log:
Final adjusts to let BLFS to use the stock lfs.css code.
Modified: branches/new-xsl/blfs-chunked.xsl
===================================================================
--- branches/new-xsl/blfs-chunked.xsl 2007-04-21 12:08:48 UTC (rev 8090)
+++ branches/new-xsl/blfs-chunked.xsl 2007-04-21 17:10:30 UTC (rev 8091)
@@ -15,18 +15,6 @@
<!-- The LFS book type to be processed (lfs, blfs, clfs, or hlfs) -->
<xsl:param name="book-type">blfs</xsl:param>
- <!-- The CSS Stylesheets. We set here relative path from sub-dirs HTML
files.
- The path from top-level HTML files (index.html, partX.html, etc) MUST be
- fixed via a sed in the Makefile-->
- <!-- Master CSS Stylesheet -->
- <xsl:param name="html.stylesheet" select="'../stylesheets/blfs.css'"/>
- <!-- Print CSS Stylesheet -->
- <!-- The original template is in {docbook-xsl}/xhtml/docbook.xsl -->
- <xsl:template name='user.head.content'>
- <link rel="stylesheet" href="../stylesheets/blfs-print.css"
type="text/css"
- media="print"/>
- </xsl:template>
-
<!-- Are sections enumerated? 1 = yes, 0 = no
Note: Activating this will increase a lot rendering time. -->
<xsl:param name="section.autolabel" select="0"/>
Modified: branches/new-xsl/lfs.css
===================================================================
--- branches/new-xsl/lfs.css 2007-04-21 12:08:48 UTC (rev 8090)
+++ branches/new-xsl/lfs.css 2007-04-21 17:10:30 UTC (rev 8091)
@@ -34,15 +34,23 @@
padding: 0;
}
+div.dedication .titlepage {
+ background: #fff;
+}
+div.dedication p {
+ padding-left: 2em;
+}
+
+
/* Sections */
-div.sect1, .appendix {
+div.sect1, div.appendix {
padding-left: .3em;
}
.package, .kernel, .installation, .commands, .testing, .configuration,
.content {
- padding: 0 .5em .3em .5em;
- margin: 0.5em 0 0.5em 0;
+ padding: 0 .5em .2em 0;
+ margin: 0;
}
.lfs .package {
@@ -52,7 +60,7 @@
margin-top: 0;
}
-div.configuration {
+.lfs .configuration {
background: #fefefe;
border-top: 0.2em solid #dbddec;
}
@@ -66,15 +74,15 @@
/* Headers */
-h1, h2, b, .strong {
+h1, h2, h3, h4, h5, h6, b, .strong {
color: #000;
font-weight: bold;
+ line-height: 1em;
}
h1 {
font-size: 173%;
text-align: center;
- line-height: 1em;
}
.book h1 {
@@ -106,7 +114,6 @@
h2 {
font-size: 144%;
- line-height: 1em;
}
.book h2.subtitle {
@@ -124,12 +131,10 @@
h3 {
font-size: 120%;
- line-height: 1em;
}
h4 {
-font-size: 110%;
-line-height: 1em;
+ font-size: 110%;
}
.package h4, h5, h6 {
@@ -216,23 +221,33 @@
list-style: none;
}
-div.toc, div.dedication {
+div.toc {
padding-left: 1em;
}
-li.preface, li.appendix {
+li.preface, .part li.appendix {
margin-left: 1em;
}
-div.toc ul li h3 {
+div.toc h3 {
margin: 1em 0 .3em 0;
}
-div.toc ul li h4 {
+li.appendix h3, li.glossary h3, li.index h3 {
+ margin: .5em
+}
+
+div.toc h4 {
margin: .6em 0 .2em 0;
}
+li.chapter h4 a {
+ display: block;
+ margin-bottom: .4em
+}
+
.dummy {
+ display: block;
font-weight: bold;
font-size: 110%;
margin: .6em 0 .2em 0;
@@ -318,8 +333,13 @@
text-align: left;
}
+div.revhistory {
+ padding-left: 1em;
+}
+
div.revhistory th {
line-height: 2em;
+ text-align: left;
}
div.revhistory td {
@@ -390,8 +410,8 @@
}
.content .seg {
- margin-bottom: 1em;
- margin-top: 1em;
+ margin-bottom: .4em;
+ margin-top: .4em;
clear: left;
}
Modified: branches/new-xsl/xhtml/lfs-titles.xsl
===================================================================
--- branches/new-xsl/xhtml/lfs-titles.xsl 2007-04-21 12:08:48 UTC (rev
8090)
+++ branches/new-xsl/xhtml/lfs-titles.xsl 2007-04-21 17:10:30 UTC (rev
8091)
@@ -140,6 +140,24 @@
</xsl:choose>
</xsl:template>
+ <!-- sect3.titlepage:
+ Uses h3 and removed a lot of unneeded code. -->
+ <!-- The original template is in
{docbook-xsl}/xhtml/titlepage.templates.xsl -->
+ <xsl:template name="sect3.titlepage">
+ <div class="titlepage">
+ <xsl:if test="@id">
+ <a id="[EMAIL PROTECTED]" name="[EMAIL PROTECTED]"/>
+ </xsl:if>
+ <h3 class="{name(.)}">
+ <xsl:if test="$section.autolabel != 0">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ <xsl:text>. </xsl:text>
+ </xsl:if>
+ <xsl:value-of select="title"/>
+ </h3>
+ </div>
+ </xsl:template>
+
<!-- dedication.titlepage:
Uses h2 and removed a lot of unneeded code. -->
<!-- The original template is in
{docbook-xsl}/xhtml/titlepage.templates.xsl -->
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page