Преглед изворни кода

more CSS code revised.
Removed some now uneeded XSL templates.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/new-xsl@8088 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Manuel Canales Esparcia пре 18 година
родитељ
комит
be3334e624
2 измењених фајлова са 48 додато и 116 уклоњено
  1. 46 28
      lfs.css
  2. 2 88
      xhtml/lfs-mixed.xsl

+ 46 - 28
lfs.css

@@ -12,9 +12,9 @@ body {
 
 a:link { color: #22b; }
 a.ulink:link { font-weight: bold; color: #55f; }
-a:visited { color: #7e4988; }
-a:hover, a:focus { color: #d30e08; }
-a:active { color: #6b77b1;}
+a:visited { color: #7e4988 ! important; }
+a:hover, a:focus { color: #d30e08 ! important; }
+a:active { color: #6b77b1 ! important;}
 
 /* Headers */
 h1, h2, b, .strong {
@@ -30,9 +30,10 @@ h1 { font-size: 173%; text-align: center; line-height: 1em; }
 h1.title sup { font-size: small; }
 h2 { font-size: 144%; line-height: 1em; }
 h2.subtitle { text-align: center; line-height: 1em; }
+.appendix h2 { font-size: 133%; margin-top: .8em; margin-bottom: 0.2em; }
 h3 { font-size: 120%; line-height: 1em; }
 h4 { font-size: 110%; line-height: 1em; }
-div.package h4, h5, h6 { font-size: 100%; font-style: italic; }
+.package h4, h5, h6 { font-size: 100%; font-style: italic; }
 
 /* Navigation */
 div.navheader, div.navfooter {
@@ -237,6 +238,9 @@ div.revhistory td {
 }
 
 /* variablelist as list */
+dl {
+  padding-left: 1em
+}
 
 dt {
   font-weight: bold;
@@ -261,61 +265,70 @@ div.materials dt {
 
 div.materials dd {
   margin-left: 0;
+  padding-left: 0;
 }
-/* --- Revised up to here (first round, checking LFS look only) --- */
 
 /* segmentedlist */
+.appendix .segmentedlist {
+  padding-left: 1em;
+}
 
-div.package div.seg {
+.package .seg {
   margin-bottom: 0em;
   margin-top: 0em;
   clear: left;
 }
 
-div.package span.segtitle, div.appendix span.segtitle {
+.content .seg {
+  margin-bottom: 1em;
+  margin-top: 1em;
+  clear: left;
+}
+
+.segtitle {
   float: left;
 }
 
-div.package span.seg, div.appendix span.seg {
+.package .segbody, .appendix .segbody {
   display: block;
   padding-left: 14em;
 }
 
-div.appendix div.segmentedlist {
-  padding-left: 1em;
+.content .segbody {
+  display: block;
+  padding-left: 12em;
 }
 
-div.appendix h2 {
-  font-size: 133%;
-  margin-top: 1em;
-  margin-bottom: 0.2em;
+/* itemizedlist */
+ul {
+  padding-left: 1em
 }
 
-div.content div.seg {
-  margin-bottom: 1em;
-  margin-top: 1em;
-  clear: left;
+.itemizedlist ul {
+  margin-left: 1em
 }
 
-div.content span.segtitle {
-  float: left;
+li ul {
+  margin-bottom: 1.2em;
 }
 
-div.content span.seg {
-  display: block;
-  padding-left: 12em;
+li ul li p {
+  margin-top: .2em;
+  margin-bottom: .2em;
 }
 
-/* itemizedlist */
-
-div.itemizedlist {
-  margin-left: 1em;
+li ul li:first-child p {
+  margin-top: -.6em;
 }
 
 ul[compact="compact"] {
   list-style: none;
 }
 
+.blfs ul[compact="compact"] {
+  list-style: disc;
+}
+
 ul[compact="compact"] li {
   margin: 0em;
   padding: 0em;
@@ -326,8 +339,13 @@ ul[compact="compact"] li p {
   margin: 0em;
 }
 
+.blfs ul[compact="compact"] li p {
+  background-color: #f0fff0;
+}
+/* --- Revised up to here (first round, checking LFS look only) --- */
+
 /* Indented blocks */
-p, ul, dl, code, blockquote {
+p, blockquote {
   padding-left: 1em;
 }
 

+ 2 - 88
xhtml/lfs-mixed.xsl

@@ -98,7 +98,7 @@
           <xsl:text>: </xsl:text>
         </span>
       </strong>
-      <span class="seg">
+      <span class="segbody">
         <xsl:apply-templates/>
       </span>
     </div>
@@ -127,7 +127,7 @@
 
     <!-- Body attributes:
            Add to the body XHTML output tag a class attribute with the book type
-           and a id atribute with the book ty and version. -->
+           and a id atribute with the book type and version. -->
     <!-- The original template is in {docbook-xsl}/xhtml/docbook.xsl -->
   <xsl:template name="body.attributes">
     <xsl:attribute name="class">
@@ -140,92 +140,6 @@
     </xsl:attribute>
   </xsl:template>
 
-    <!-- inline.monoseq:
-           The code xhtml tag have look issues in some browsers.
-           We will use tt instead. -->
-    <!-- The original template is in {docbook-xsl}/xhtml/inline.xsl -->
-  <xsl:template name="inline.monoseq">
-    <xsl:param name="content">
-      <xsl:call-template name="anchor"/>
-      <xsl:call-template name="simple.xlink">
-        <xsl:with-param name="content">
-          <xsl:apply-templates/>
-        </xsl:with-param>
-      </xsl:call-template>
-    </xsl:param>
-    <tt>
-      <xsl:apply-templates select="." mode="class.attribute"/>
-      <xsl:call-template name="dir"/>
-      <xsl:call-template name="generate.html.title"/>
-      <xsl:copy-of select="$content"/>
-      <xsl:call-template name="apply-annotations"/>
-    </tt>
-  </xsl:template>
-
-    <!-- inline.boldmonoseq:
-           The code xhtml tag have look issues in some browsers.
-           We will use tt instead. -->
-    <!-- The original template is in {docbook-xsl}/xhtml/inline.xsl -->
-  <xsl:template name="inline.boldmonoseq">
-    <xsl:param name="content">
-      <xsl:call-template name="anchor"/>
-      <xsl:call-template name="simple.xlink">
-        <xsl:with-param name="content">
-          <xsl:apply-templates/>
-        </xsl:with-param>
-      </xsl:call-template>
-    </xsl:param>
-    <!-- don't put <strong> inside figure, example, or table titles
-         or other titles that may already be represented with <strong>'s. -->
-    <xsl:choose>
-      <xsl:when test="local-name(..)='title' and (local-name(../..)='figure'
-                      or local-name(../..)='example' or local-name(../..)='table'
-                      or local-name(../..)='formalpara')">
-        <tt>
-          <xsl:apply-templates select="." mode="class.attribute"/>
-          <xsl:call-template name="generate.html.title"/>
-          <xsl:call-template name="dir"/>
-          <xsl:copy-of select="$content"/>
-          <xsl:call-template name="apply-annotations"/>
-        </tt>
-      </xsl:when>
-      <xsl:otherwise>
-        <strong>
-          <xsl:apply-templates select="." mode="class.attribute"/>
-          <tt>
-            <xsl:call-template name="generate.html.title"/>
-            <xsl:call-template name="dir"/>
-            <xsl:copy-of select="$content"/>
-          </tt>
-        </strong>
-      </xsl:otherwise>
-    </xsl:choose>
-  </xsl:template>
-
-    <!-- inline.italicmonoseq:
-           The code xhtml tag have look issues in some browsers.
-           We will use tt instead. -->
-    <!-- The original template is in {docbook-xsl}/xhtml/inline.xsl -->
-  <xsl:template name="inline.italicmonoseq">
-    <xsl:param name="content">
-      <xsl:call-template name="anchor"/>
-      <xsl:call-template name="simple.xlink">
-        <xsl:with-param name="content">
-          <xsl:apply-templates/>
-        </xsl:with-param>
-      </xsl:call-template>
-    </xsl:param>
-    <em>
-      <xsl:apply-templates select="." mode="class.attribute"/>
-      <tt>
-        <xsl:call-template name="generate.html.title"/>
-        <xsl:call-template name="dir"/>
-        <xsl:copy-of select="$content"/>
-        <xsl:call-template name="apply-annotations"/>
-      </tt>
-    </em>
-  </xsl:template>
-
   <!-- Revision History -->
 
     <!-- revhistory mode titlepage.mode: