r1181 - trunk/BOOK/stylesheets

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sun Jul 8 04:01:34 PDT 2007


Author: manuel
Date: 2007-07-08 05:01:34 -0600 (Sun, 08 Jul 2007)
New Revision: 1181

Modified:
   trunk/BOOK/stylesheets/top-index.xsl
Log:
Revised top-index.xsl to mach the new stylesheets look.

Modified: trunk/BOOK/stylesheets/top-index.xsl
===================================================================
--- trunk/BOOK/stylesheets/top-index.xsl	2007-07-08 09:48:07 UTC (rev 1180)
+++ trunk/BOOK/stylesheets/top-index.xsl	2007-07-08 11:01:34 UTC (rev 1181)
@@ -18,11 +18,12 @@
         </title>
         <style type="text/css">
           <xsl:text>
+/* Global settings */
 body {
-  font-family: sans-serif;
+  font-family: verdana, tahoma, helvetica, arial, sans-serif;
   text-align: left;
   background: #fff;
-  color: #333;
+  color: #222;
   margin: 1em;
   padding: 0;
   font-size: 1em;
@@ -30,49 +31,42 @@
 }
 
 a:link { color: #22b; }
-a:visited { color: #7e4988; }
-a:hover, a:focus { color: #d30e08; }
-a:active { color: #6b77b1;}
+a.ulink:link { font-weight: bold; color: #55f; }
+a:visited { color: #7e4988 ! important; }
+a:hover, a:focus { color: #d30e08 ! important; }
+a:active { color: #6b77b1 ! important;}
 
-h1, h2 {
+h1, h2 h3, h4 {
   color: #000;
   font-weight: bold;
+  line-height: 1em;
 }
 
-h3, h4, h5, h6 {
-  color: #222;
-}
-
 h1 { font-size: 173%; text-align: center; }
-h2 { font-size: 144%;  text-align: center; }
-h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; }
-h4 { font-size: 110%;}
+h2 { font-size: 144%; text-align: center; }
+h3 { font-size: 120%; }
+h4 { font-size: 110%; }
 
-div.toc {
+.toc {
   padding-left: 1em;
-  margin-top: 1em;
 }
 
-div.toc ul li h3, div.toc ul li h4 {
+.toc ul li h3, .toc ul li h4 {
   margin: .4em;
 }
 
-div.book {
-  padding-bottom: 0.5em;
-}
-
-div.book h1 {
+.book h1 {
   background: #f5f6f7;
   margin: 0px auto;
   padding: 0.5em;
 }
 
-div.book h2 {
+.book h2 {
   background: #dbddec;
   margin: 0px auto;
   padding: 0.2em;
 }
-div.authorgroup, div p.copyright {
+.authorgroup, .copyright {
   background: #f5f6f7;
   margin: 0px auto;
   padding:  1em 0.5em;
@@ -86,12 +80,29 @@
   padding: 0;
 }
 
-div.intro {
+.intro {
   background:   #fefefe;
   padding: 0.5em;
   margin: 0.5em 0 .5em 0;
 }
 
+div.admon img {
+  padding: .3em;
+}
+
+div.admon h3 {
+  display: inline;
+  margin-left: 2em;
+}
+
+div.admon p {
+  margin-left: .5em;
+}
+
+div.admon pre {
+  margin: 0.5em 3em;
+}
+
 div.note, div.tip {
   background-color: #fffff6;
   border: 2px solid #dbddec;
@@ -103,23 +114,18 @@
   background-color: #fffff6;
   border: medium solid #400;
   width: 90%;
-  margin: 1.5em auto;
+  margin: .5em auto;
   color: #600;
-  font-size: larger;
 }
 
-div.admonhead img {
-  padding: .3em;
+div.important h3, div.warning h3, div.caution h3 {
+  color: #900;
 }
 
-div.admonhead h3 {
-  display: inline;
-  margin-left: 1.5em;
+div.important em, div.warning em, div.caution em {
+  color: #000;
+  font-weight: bold;
 }
-
-div.admonbody {
-  margin: .5em;
-}
           </xsl:text>
         </style>
       </head>
@@ -131,10 +137,8 @@
 
   <xsl:template match="bookinfo">
     <div class="book">
-      <div class="titlepage">
-        <xsl:apply-templates/>
-        <hr/>
-      </div>
+      <xsl:apply-templates/>
+      <hr/>
       <div class="toc">
         <h3>
           <xsl:text>Choose your preferred Libc implementation and Linux kernel
@@ -206,7 +210,7 @@
 document.write("   </tr>");
 document.write("  </table>");
 document.write(" </fieldset>");
-/*
+/* Disabled for now
 document.write(" <fieldset style=\"margin-bottom: 2em; line-height: 1.5em\">");
 document.write("  <legend style=\"font-size: 1.3em; margin-left: 5em;\">Build features</legend>");
 document.write("  <p style=\"margin: 0; text-align: center;\">Click on links for descriptions</p>");
@@ -261,7 +265,6 @@
 document.write("  </div>");
 document.write(" </fieldset>");
 */
-
 document.write(" <input type=\"submit\" value=\"Go to the book\" style=\"font-size: 1.3em; margin-left: 4em;\"/>");
 document.write("</form>");
 
@@ -274,36 +277,28 @@
   </xsl:template>
 
   <xsl:template match="title">
-    <div>
-      <h1 class="title">
-        <xsl:value-of select="."/>
-      </h1>
-    </div>
+    <h1 class="title">
+      <xsl:value-of select="."/>
+    </h1>
   </xsl:template>
 
   <xsl:template match="subtitle">
-    <div>
-      <h2 class="subtitle">
-        <xsl:value-of select="."/>
-      </h2>
-    </div>
+    <h2 class="subtitle">
+      <xsl:value-of select="."/>
+    </h2>
   </xsl:template>
 
   <xsl:template match="authorgroup">
-    <div class="authorgroup">
-      <h3 class="corpauthor">
-        <xsl:value-of select="corpauthor"/>
-      </h3>
-    </div>
+    <h3 class="authorgroup">
+      <xsl:value-of select="corpauthor"/>
+    </h3>
   </xsl:template>
 
   <xsl:template match="copyright">
-    <div>
-      <p class="copyright">
-        <xsl:text>Copyright (c)</xsl:text>
-        <xsl:apply-templates/>
-      </p>
-    </div>
+    <p class="copyright">
+      <xsl:text>Copyright (c)</xsl:text>
+      <xsl:apply-templates/>
+    </p>
   </xsl:template>
 
   <xsl:template match="year">
@@ -379,26 +374,18 @@
   </xsl:template>
 
   <xsl:template match="note">
-    <div class="note">
-      <div class ="admonhead">
-        <img alt="note" src="images/note.png"/>
-        <h3 class="admontitle">Note:</h3>
-      </div>
-      <div class="admonbody">
-        <xsl:apply-templates/>
-      </div>
+    <div class="admon note">
+      <img alt="note" src="images/note.png"/>
+      <h3 class="admontitle">Note:</h3>
+      <xsl:apply-templates/>
     </div>
   </xsl:template>
 
   <xsl:template match="warning">
-    <div class="warning">
-      <div class ="admonhead">
-        <img alt="note" src="images/warning.png"/>
-        <h3 class="admontitle">Warning:</h3>
-      </div>
-      <div class="admonbody">
-        <xsl:apply-templates/>
-      </div>
+    <div class="admon warning">
+      <img alt="note" src="images/warning.png"/>
+      <h3 class="admontitle">Warning:</h3>
+      <xsl:apply-templates/>
     </div>
   </xsl:template>
 




More information about the hlfs-book mailing list