[jboss-cvs] JBossAS SVN: r107878 - projects/docs/docbook-support/jbossorg-docbook-xslt-ns/src/main/resources/xslt/org/jboss.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Aug 29 19:46:56 EDT 2010


Author: SeanRogers
Date: 2010-08-29 19:46:55 -0400 (Sun, 29 Aug 2010)
New Revision: 107878

Modified:
   projects/docs/docbook-support/jbossorg-docbook-xslt-ns/src/main/resources/xslt/org/jboss/pdf.xsl
Log:
Edited PDF colors to be more in line with HTML

Modified: projects/docs/docbook-support/jbossorg-docbook-xslt-ns/src/main/resources/xslt/org/jboss/pdf.xsl
===================================================================
--- projects/docs/docbook-support/jbossorg-docbook-xslt-ns/src/main/resources/xslt/org/jboss/pdf.xsl	2010-08-28 18:57:22 UTC (rev 107877)
+++ projects/docs/docbook-support/jbossorg-docbook-xslt-ns/src/main/resources/xslt/org/jboss/pdf.xsl	2010-08-29 23:46:55 UTC (rev 107878)
@@ -103,14 +103,15 @@
     <xsl:value-of select="$title.margin.left"/>
   </xsl:attribute>
 </xsl:attribute-set>
-
-   <xsl:param name="programlisting.font" select="'verdana,helvetica,sans-serif'" />
-   <xsl:param name="programlisting.font.size" select="'100%'" />
    
+   <!-- Old non-monospace fonts for programlisting -->
+   <!-- <xsl:param name="programlisting.font" select="'verdana,helvetica,sans-serif'" /> -->
+   <!-- <xsl:param name="programlisting.font.size" select="'100%'" /> -->
+   
    <!-- Change to monospace font for programlisting, needed to workaround crappy callouts -->
-   <!-- <xsl:param name="programlisting.font" select="$monospace.font.family" /> -->
+   <xsl:param name="programlisting.font" select="$monospace.font.family" />
    <!-- Make the font for programlisting slightly smaller -->
-   <!-- <xsl:param name="programlisting.font.size" select="'75%'" /> -->
+   <xsl:param name="programlisting.font.size" select="'90%'" />
 
   <!-- Make the section depth in the TOC 2, same as html -->
   <xsl:param name="toc.section.depth">2</xsl:param>
@@ -257,25 +258,25 @@
   <xsl:attribute name="wrap-option">wrap</xsl:attribute>
   <xsl:attribute name="background-color">
 	<xsl:choose>
-		<xsl:when test="ancestor::d:note"> <xsl:text>#B5BCBD</xsl:text> </xsl:when>
-		<xsl:when test="ancestor::d:caution"> <xsl:text>#E3A835</xsl:text> </xsl:when>
-		<xsl:when test="ancestor::d:important"> <xsl:text>#4A5D75</xsl:text> </xsl:when>
-		<xsl:when test="ancestor::d:warning"> <xsl:text>#7B1E1E</xsl:text> </xsl:when>
-		<xsl:when test="ancestor::d:tip"> <xsl:text>#7E917F</xsl:text> </xsl:when>
+		<xsl:when test="ancestor::d:note"> <xsl:text>#D6DEE0</xsl:text> </xsl:when>
+		<xsl:when test="ancestor::d:caution"> <xsl:text>#FAF8ED</xsl:text> </xsl:when>
+		<xsl:when test="ancestor::d:important"> <xsl:text>#E1EEF4</xsl:text> </xsl:when>
+		<xsl:when test="ancestor::d:warning"> <xsl:text>#FAF8ED</xsl:text> </xsl:when>
+		<xsl:when test="ancestor::d:tip"> <xsl:text>#D5E1D5</xsl:text> </xsl:when>
 		<xsl:otherwise>
-			<xsl:text>black</xsl:text>
+			<xsl:text>#EDE7C8</xsl:text>
 		</xsl:otherwise>
 	</xsl:choose>
   </xsl:attribute>
   <xsl:attribute name="color">
 	<xsl:choose>
-		<xsl:when test="ancestor::d:note"> <xsl:text>#4C5253</xsl:text> </xsl:when>
-		<xsl:when test="ancestor::d:caution"> <xsl:text>#533500</xsl:text> </xsl:when>
-		<xsl:when test="ancestor::d:important"> <xsl:text>white</xsl:text> </xsl:when>
-		<xsl:when test="ancestor::d:warning"> <xsl:text>white</xsl:text> </xsl:when>
-		<xsl:when test="ancestor::d:tip"> <xsl:text>white</xsl:text> </xsl:when>
+		<xsl:when test="ancestor::d:note"> <xsl:text>#334558</xsl:text> </xsl:when>
+		<xsl:when test="ancestor::d:caution"> <xsl:text>#334558</xsl:text> </xsl:when>
+		<xsl:when test="ancestor::d:important"> <xsl:text>#334558</xsl:text> </xsl:when>
+		<xsl:when test="ancestor::d:warning"> <xsl:text>#334558</xsl:text> </xsl:when>
+		<xsl:when test="ancestor::d:tip"> <xsl:text>#334558</xsl:text> </xsl:when>
 		<xsl:otherwise>
-			<xsl:text>red</xsl:text>
+			<xsl:text>#333</xsl:text>
 		</xsl:otherwise>
 	</xsl:choose>
   </xsl:attribute>



More information about the jboss-cvs-commits mailing list