[gtk-doc] Dim the | separators in the navigation bar



commit 1018ca5bca687b6e0142b9b7b756415eb69706b8
Author: William Jon McCann <william jon mccann gmail com>
Date:   Tue Feb 11 11:15:00 2014 -0500

    Dim the | separators in the navigation bar
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724099

 gtk-doc-single.xsl |   32 ++++++++++++++++----------------
 gtk-doc.xsl        |   38 +++++++++++++++++++-------------------
 style/style.css    |    4 ++++
 3 files changed, 39 insertions(+), 35 deletions(-)
---
diff --git a/gtk-doc-single.xsl b/gtk-doc-single.xsl
index 552ff94..ff58ea9 100644
--- a/gtk-doc-single.xsl
+++ b/gtk-doc-single.xsl
@@ -235,66 +235,66 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
       <table class="navigation" id="top" width="100%"
              summary = "Navigation header" cellpadding="2" cellspacing="10">
         <tr valign="middle">
-          <td width="100%" align="left">
+          <td width="100%" align="left" class="shortcuts">
             <!--<xsl:if test="name()='refentry'"-->
             <a href="#" class="shortcut">Top</a>
             <xsl:if test="count($sections) > 0">
               <xsl:if test="count($sect_desc) > 0">
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
                 <a href="#{$section_id}.description" class="shortcut">
                   <xsl:value-of select="./refsect1[ role='desc']/title"/>
                 </a>
               </xsl:if>
               <xsl:if test="count($sect_object_hierarchy) > 0">
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
                 <a href="#{$section_id}.object-hierarchy" class="shortcut">
                   <xsl:value-of select="./refsect1[ role='object_hierarchy']/title"/>
                 </a>
               </xsl:if>
               <xsl:if test="count($sect_impl_interfaces) > 0">
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
                 <a href="#{$section_id}.implemented-interfaces" class="shortcut">
                   <xsl:value-of select="./refsect1[ role='impl_interfaces']/title"/>
                 </a>
               </xsl:if>
               <xsl:if test="count($sect_prerequisites) > 0">
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
                 <a href="#{$section_id}.prerequisites" class="shortcut">
                   <xsl:value-of select="./refsect1[ role='prerequisites']/title"/>
                 </a>
               </xsl:if>
               <xsl:if test="count($sect_derived_interfaces) > 0">
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
                 <a href="#{$section_id}.derived-interfaces" class="shortcut">
                   <xsl:value-of select="./refsect1[ role='derived_interfaces']/title"/>
                 </a>
               </xsl:if>
               <xsl:if test="count($sect_implementations) > 0">
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
                 <a href="#{$section_id}.implementations" class="shortcut">
                   <xsl:value-of select="./refsect1[ role='implementations']/title"/>
                 </a>
               </xsl:if>
               <xsl:if test="count($sect_properties) > 0">
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
                 <a href="#{$section_id}.properties" class="shortcut">
                   <xsl:value-of select="./refsect1[ role='properties']/title"/>
                 </a>
               </xsl:if>
               <xsl:if test="count($sect_child_properties) > 0">
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
                 <a href="#{$section_id}.child-properties" class="shortcut">
                   <xsl:value-of select="./refsect1[ role='child_properties']/title"/>
                 </a>
               </xsl:if>
               <xsl:if test="count($sect_style_properties) > 0">
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
                 <a href="#{$section_id}.style-properties" class="shortcut">
                   <xsl:value-of select="./refsect1[ role='style_properties']/title"/>
                 </a>
               </xsl:if>
               <xsl:if test="count($sect_signal_proto) > 0">
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
                 <a href="#{$section_id}.signals" class="shortcut">
                   <xsl:value-of select="./refsect1[ role='signal_proto']/title"/>
                 </a>
@@ -304,31 +304,31 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
                 <a href="#details" class="shortcut">
                   <xsl:value-of select="./refsect1[ id='details']/title"/>
                 </a>
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
               </xsl:if>
               <xsl:if test="count($sect_property_details) > 0">
                 <a href="#property_details" class="shortcut">
                   <xsl:value-of select="./refsect1[ id='property_details']/title"/>
                 </a>
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
               </xsl:if>
               <xsl:if test="count($sect_child_property_details) > 0">
                 <a href="#child_property_details" class="shortcut">
                   <xsl:value-of select="./refsect1[ id='property_child_details']/title"/>
                 </a>
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
               </xsl:if>
               <xsl:if test="count($sect_style_property_details) > 0">
                 <a href="#style_property_details" class="shortcut">
                   <xsl:value-of select="./refsect1[ id='style_property_details']/title"/>
                 </a>
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
               </xsl:if>
               <xsl:if test="count($sect_signals) > 0">
                 <a href="#signals" class="shortcut">
                   <xsl:value-of select="./refsect1[ id='signals']/title"/>
                 </a>
-                &#160;|&#160;
+                &#160;<span class="dim">|</span>&#160;
               </xsl:if>
               -->
             </xsl:if>
diff --git a/gtk-doc.xsl b/gtk-doc.xsl
index d70d525..033172b 100644
--- a/gtk-doc.xsl
+++ b/gtk-doc.xsl
@@ -469,67 +469,67 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
       <table class="navigation" id="top" width="100%"
              summary = "Navigation header" cellpadding="2" cellspacing="10">
         <tr valign="middle">
-          <td width="100%" align="left">
+          <td width="100%" align="left" class="shortcuts">
             <!--<xsl:if test="name()='refentry'"-->
             <xsl:choose>
               <xsl:when test="count($refsections) > 0">
                 <a href="#" class="shortcut">Top</a>
                 <xsl:if test="count($sect_desc) > 0">
-                  &#160;|&#160;
+                  &#160;<span class="dim">|</span>&#160;
                   <a href="#{$section_id}.description" class="shortcut">
                     <xsl:value-of select="./refsect1[ role='desc']/title"/>
                   </a>
                 </xsl:if>
                 <xsl:if test="count($sect_object_hierarchy) > 0">
-                  &#160;|&#160;
+                  &#160;<span class="dim">|</span>&#160;
                   <a href="#{$section_id}.object-hierarchy" class="shortcut">
                     <xsl:value-of select="./refsect1[ role='object_hierarchy']/title"/>
                   </a>
                 </xsl:if>
                 <xsl:if test="count($sect_impl_interfaces) > 0">
-                  &#160;|&#160;
+                  &#160;<span class="dim">|</span>&#160;
                   <a href="#{$section_id}.implemented-interfaces" class="shortcut">
                     <xsl:value-of select="./refsect1[ role='impl_interfaces']/title"/>
                   </a>
                 </xsl:if>
                 <xsl:if test="count($sect_prerequisites) > 0">
-                  &#160;|&#160;
+                  &#160;<span class="dim">|</span>&#160;
                   <a href="#{$section_id}.prerequisites" class="shortcut">
                     <xsl:value-of select="./refsect1[ role='prerequisites']/title"/>
                   </a>
                 </xsl:if>
                 <xsl:if test="count($sect_derived_interfaces) > 0">
-                  &#160;|&#160;
+                  &#160;<span class="dim">|</span>&#160;
                   <a href="#{$section_id}.derived-interfaces" class="shortcut">
                     <xsl:value-of select="./refsect1[ role='derived_interfaces']/title"/>
                   </a>
                 </xsl:if>
                 <xsl:if test="count($sect_implementations) > 0">
-                  &#160;|&#160;
+                  &#160;<span class="dim">|</span>&#160;
                   <a href="#{$section_id}.implementations" class="shortcut">
                     <xsl:value-of select="./refsect1[ role='implementations']/title"/>
                   </a>
                 </xsl:if>
                 <xsl:if test="count($sect_properties) > 0">
-                  &#160;|&#160;
+                  &#160;<span class="dim">|</span>&#160;
                   <a href="#{$section_id}.properties" class="shortcut">
                     <xsl:value-of select="./refsect1[ role='properties']/title"/>
                   </a>
                 </xsl:if>
                 <xsl:if test="count($sect_child_properties) > 0">
-                  &#160;|&#160;
+                  &#160;<span class="dim">|</span>&#160;
                   <a href="#{$section_id}.child-properties" class="shortcut">
                     <xsl:value-of select="./refsect1[ role='child_properties']/title"/>
                   </a>
                 </xsl:if>
                 <xsl:if test="count($sect_style_properties) > 0">
-                  &#160;|&#160;
+                  &#160;<span class="dim">|</span>&#160;
                   <a href="#{$section_id}.style-properties" class="shortcut">
                     <xsl:value-of select="./refsect1[ role='style_properties']/title"/>
                   </a>
                 </xsl:if>
                 <xsl:if test="count($sect_signal_proto) > 0">
-                  &#160;|&#160;
+                  &#160;<span class="dim">|</span>&#160;
                   <a href="#{$section_id}.signals" class="shortcut">
                     <xsl:value-of select="./refsect1[ role='signal_proto']/title"/>
                   </a>
@@ -539,31 +539,31 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
                     <a href="#details" class="shortcut">
                     <xsl:value-of select="./refsect1[ id='details']/title"/>
                     </a>
-                    &#160;|&#160;
+                    &#160;<span class="dim">|</span>&#160;
                     </xsl:if>
                     <xsl:if test="count($sect_property_details) > 0">
                     <a href="#property_details" class="shortcut">
                     <xsl:value-of select="./refsect1[ id='property_details']/title"/>
                     </a>
-                    &#160;|&#160;
+                    &#160;<span class="dim">|</span>&#160;
                     </xsl:if>
                     <xsl:if test="count($sect_child_property_details) > 0">
                     <a href="#child_property_details" class="shortcut">
                     <xsl:value-of select="./refsect1[ id='property_child_details']/title"/>
                     </a>
-                    &#160;|&#160;
+                    &#160;<span class="dim">|</span>&#160;
                     </xsl:if>
                     <xsl:if test="count($sect_style_property_details) > 0">
                     <a href="#style_property_details" class="shortcut">
                     <xsl:value-of select="./refsect1[ id='style_property_details']/title"/>
                     </a>
-                    &#160;|&#160;
+                    &#160;<span class="dim">|</span>&#160;
                     </xsl:if>
                     <xsl:if test="count($sect_signals) > 0">
                     <a href="#signals" class="shortcut">
                     <xsl:value-of select="./refsect1[ id='signals']/title"/>
                     </a>
-                    &#160;|&#160;
+                    &#160;<span class="dim">|</span>&#160;
                     </xsl:if>
                 -->
               </xsl:when>
@@ -574,7 +574,7 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
               <xsl:when test="count($glssections) > 0">
                 <xsl:for-each select="./glossdiv">
                   <xsl:if test="position() > 1">
-                    &#160;|&#160;
+                    &#160;<span class="dim">|</span>&#160;
                   </xsl:if>
                   <a class="shortcut">
                     <xsl:attribute name="href">#gls<xsl:value-of select="./title"/></xsl:attribute>
@@ -585,7 +585,7 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
               <xsl:when test="count($idxsections) > 0">
                 <xsl:for-each select="./indexdiv/indexdiv">
                   <xsl:if test="position() > 1">
-                    &#160;|&#160;
+                    &#160;<span class="dim">|</span>&#160;
                   </xsl:if>
                   <a class="shortcut">
                     <xsl:attribute name="href">#idx<xsl:value-of select="./title"/></xsl:attribute>
@@ -826,7 +826,7 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
       <span class="extralinks">
         <xsl:for-each select="../ulink[ role='extralinks']">
           <xsl:if test="position() = 1">[&#160;</xsl:if>
-          <xsl:if test="position() > 1">&#160;|&#160;</xsl:if>
+          <xsl:if test="position() > 1">&#160;<span class="dim">|</span>&#160;</xsl:if>
           <a>
             <xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
             <xsl:copy-of select="text()" />
diff --git a/style/style.css b/style/style.css
index 9704d38..202855b 100644
--- a/style/style.css
+++ b/style/style.css
@@ -89,6 +89,10 @@ body
     font-size: 80%;
     white-space: nowrap;
   }
+  td.shortcuts .dim
+  {
+    color: #babdb6;
+  }
 }
 @media print {
   table.navigation {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]