Author: manuel
Date: 2007-04-19 15:49:42 -0600 (Thu, 19 Apr 2007)
New Revision: 8085
Modified:
branches/new-xsl/lfs.css
branches/new-xsl/pdf/lfs-mixed.xsl
Log:
Revising CSS code and small PDF fix.
Modified: branches/new-xsl/lfs.css
===================================================================
--- branches/new-xsl/lfs.css 2007-04-19 20:00:02 UTC (rev 8084)
+++ branches/new-xsl/lfs.css 2007-04-19 21:49:42 UTC (rev 8085)
@@ -106,7 +106,7 @@
color: #dbddec;
}
-/* TOC & Index*/
+/* TOC */
div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
list-style: none;
@@ -134,6 +134,8 @@
margin: .6em 0 .2em 0;
}
+/* Index */
+
.item {
float: left;
}
@@ -193,51 +195,25 @@
font-weight: bold;
}
-/* table and variablelist as table */
+/* table */
-.variablelist table {
- width: auto;
- margin: 0 1em 0 1em;
-}
-
-.variablelist td {
- vertical-align: top;
-}
-
-.variablelist td span, td p {
- margin: 0.25em;
-}
-/* ---- Revised up to here (first round) ------ */
-div.table {
+.table p.title {
text-align: center;
+ margin-top: 0;
+ margin-bottom: .3em;
}
-div.table table {
+.table table {
margin-left: auto;
margin-right: auto;
- text-align: center;
}
-div.table table th, div.table table td {
+.table table th, .table table td {
padding: 0.2em 2em 0.2em 2em;
-}
-
-div.table table {
- border-collapse: collapse;
- }
-
-div.table td, div.table th {
- padding: 0.3em;
- text-align: right;
- vertical-align: baseline;
-}
-
-div.table tr > td:first-child, div.table tr > th:first-child {
text-align: left;
}
div.revhistory th {
- text-align: left;
line-height: 2em;
}
@@ -245,40 +221,51 @@
padding-right: 1em;
}
-/* variablelist as list and segmentedlist */
-dl {
- margin: 0;
- padding: 0;
- list-style-type: none;
+/* variablelist as table */
+
+.variablelist table {
+ width: auto;
+ margin: 0 1em 0 1em;
}
+.variablelist td {
+ vertical-align: top;
+}
+
+.variablelist td span, td p {
+ margin: 0.25em;
+}
+
+/* variablelist as list */
+
dt {
- display: list-item;
font-weight: bold;
- margin: .33em 0 0 1em;
- padding: 0;
+ margin-left: 1em;
}
-dd {
- margin: 0 0 1em 3em;
- padding: 0;
+dd {
+ margin-bottom: .6em;
+ margin-left: 1em;
}
-div.variablelist dd {
- margin-bottom: 1em;
+dd p {
+ margin-top: 0;
+ margin-bottom: 0;
+ padding-top: 0;
+ padding-bottom: 0;
}
-div.variablelist dd p {
- margin-top: 0px;
- margin-bottom: 0px;
- padding-top: 0px;
- padding-bottom: 0px;
+div.materials dt {
+ display: list-item;
}
div.materials dd {
- margin-left: 0px;
+ margin-left: 0;
}
+/* --- Revised up to here (first round, checking LFS look only) --- */
+/* segmentedlist */
+
div.package div.seg {
margin-bottom: 0em;
margin-top: 0em;
Modified: branches/new-xsl/pdf/lfs-mixed.xsl
===================================================================
--- branches/new-xsl/pdf/lfs-mixed.xsl 2007-04-19 20:00:02 UTC (rev 8084)
+++ branches/new-xsl/pdf/lfs-mixed.xsl 2007-04-19 21:49:42 UTC (rev 8085)
@@ -242,12 +242,12 @@
<xsl:choose>
<xsl:when test="ancestor::variablelist/@role = 'materials'">
<fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing"
- keep-together.within-column="always"
+ keep-together.within-column="always" font-weight="bold"
keep-with-next.within-column="always" text-align="left">
<xsl:text>• </xsl:text>
<xsl:apply-templates select="term"/>
</fo:block>
- <fo:block margin-left="1.4pc" text-align="left"
+ <fo:block text-align="left"
keep-together.within-column="always"
keep-with-previous.within-column="always">
<xsl:apply-templates select="listitem"/>
@@ -256,10 +256,10 @@
<xsl:otherwise>
<fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing"
keep-together.within-column="always"
- keep-with-next.within-column="always">
+ keep-with-next.within-column="always" margin-left="1em">
<xsl:apply-templates select="term"/>
</fo:block>
- <fo:block margin-left="0.25in">
+ <fo:block margin-left="2em">
<xsl:apply-templates select="listitem"/>
</fo:block>
</xsl:otherwise>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page