Additional index styling
authorNigel Metheringham <nigel.metheringham@dev.intechnology.co.uk>
Fri, 16 Jul 2010 14:09:17 +0000 (15:09 +0100)
committerNigel Metheringham <nigel.metheringham@dev.intechnology.co.uk>
Fri, 16 Jul 2010 14:09:17 +0000 (15:09 +0100)
templates/doc/chapter.xsl
templates/web/doc/chapter.css
templates/wrapper.xsl

index 5f13185f5907581fd233f23bd2709995f39bf4f2..81f012500a38d7a8793c1d417f07ed67e163165c 100644 (file)
       <xsl:template match="/chapter/section">
 
          <!-- Section Title -->
-            <h3 id="{@id}" class="{@class}">
-               <xsl:value-of select="concat(position(),'. ',title)"/>
-            </h3>
+         <xsl:choose>
+            <xsl:when test="@class='index'">
+               <h3 id="{@id}" class="{@class}">
+                  <xsl:value-of select="title"/>
+               </h3>
+            </xsl:when>
+            <xsl:otherwise>
+               <h3 id="{@id}" class="{@class}">
+                  <xsl:value-of select="concat(position(),'. ',title)"/>
+               </h3>
+            </xsl:otherwise>
+         </xsl:choose>
 
          <!-- Section Paragraphs -->
          <div class="section{@class}">
index b3799689a1bcb70e82715fee22a76b76c7775999..4b88550c194fe39a85193006adb9848fe136992c 100644 (file)
@@ -29,55 +29,86 @@ td .docbook_option, td .docbook_emphasis {
   font-size: 125%;
 }
 
+/* Index section styling */
 
-// Side Table of Contents
-
-  #outer > #toc {
-    position:     fixed;
-    top:        35%;
-    left:       0;
-    z-index:      3000;
-  }
-
-  #outer > #toc img {
-    position:     fixed;
-    top:        35%;
-    left:       0;
-    background-color:   #304b66;
-    padding:      0.5em;
-    z-index:      3000;
-    display:      none;
-  }
-
-  #outer > #toc img:hover {
-    cursor:       pointer;
-    background-color:   #000;
-  }
-
-  #outer > #toc > ul {
-    position:     fixed;
-    top:        30%;
-    background-color:   #fff;
-    min-height:     200px;
-    max-height:     65%;
-    overflow-y:     auto;
-    padding:      0.5em 0;
-    border-top:     1px solid #bbb;
-    border-bottom:      1px solid #bbb;
-    z-index:      3000;
-  }
-  #outer > #toc a {
-    font-size:      1.2em;
-    color:        #304b67;
-    text-decoration:    none;
-    padding:      0 0.5em;
-  }
-  #outer > #toc a:hover {
-    color:        #000;
-  }
-
-  @media all and ( max-width: 640px ){
-    #outer > #toc {
-      display:    none;
-    }
-  }
+h3.index {
+  padding-top: 10px;
+  border-bottom: medium solid #000;
+  margin-bottom: 10px;
+}
+
+dl dt
+{
+  clear: left;
+  float: left;
+  width: 220px;
+  margin: 0;
+  font-weight: bold;
+  padding-left: 2em;
+  line-height: 1.1;
+}
+
+dl dd
+{
+  margin-left: 230px;
+  line-height: 1.1;
+  white-space: normal;
+}
+
+dl dd dl
+{
+  margin-left: -180px;
+}
+
+
+/* Side Table of Contents */
+
+ #outer > #toc {
+   position:     fixed;
+   top:        35%;
+   left:       0;
+   z-index:      3000;
+ }
+
+ #outer > #toc img {
+   position:     fixed;
+   top:        35%;
+   left:       0;
+   background-color:   #304b66;
+   padding:      0.5em;
+   z-index:      3000;
+   display:      none;
+ }
+
+ #outer > #toc img:hover {
+   cursor:       pointer;
+   background-color:   #000;
+ }
+
+ #outer > #toc > ul {
+   position:     fixed;
+   top:        30%;
+   background-color:   #fff;
+   min-height:     200px;
+   max-height:     65%;
+   overflow-y:     auto;
+   padding:      0.5em 0;
+   border-top:     1px solid #bbb;
+   border-bottom:      1px solid #bbb;
+   z-index:      3000;
+ }
+ #outer > #toc a {
+   font-size:      1.2em;
+   color:        #304b67;
+   text-decoration:    none;
+   padding:      0 0.5em;
+ }
+ #outer > #toc a:hover {
+   color:        #000;
+ }
+
+ @media all and ( max-width: 640px ){
+   #outer > #toc {
+     display:    none;
+   }
+ }
index 313280c60fcab713264910f7f1b881a941817e56..bb1dee0851ec6ceaa45d1d902cc6215f2ca4f77c 100644 (file)
                <xsl:when test="@section_id">
                   <xsl:choose>
                      <xsl:when test="@longref">
-                        <xsl:value-of select="concat(@chapter_title,'[',@section_title,']')"/>
+                        <xsl:value-of select="@chapter_title"/>
+                        <small>
+                           <xsl:value-of select="concat(' [',@section_title,']')"/>
+                        </small>
                      </xsl:when>
                      <xsl:otherwise>
                         <xsl:value-of select="concat(@chapter_id,'.',@section_id)"/>