]> granicus.if.org Git - docbook-dsssl/commitdiff
Patch from Paul Norton of Adobe to get covers to look better in Adobe Digital Editions
authorKeith Fahlgren <abdelazer@users.sourceforge.net>
Tue, 17 Feb 2009 04:47:44 +0000 (04:47 +0000)
committerKeith Fahlgren <abdelazer@users.sourceforge.net>
Tue, 17 Feb 2009 04:47:44 +0000 (04:47 +0000)
xsl/epub/docbook.xsl

index 5c81361d4a73752f8846d422e56feebcdcad09d1..3f0715a5affd918815cdd95011570a6db50ec626 100644 (file)
             <xsl:element name="title">Cover</xsl:element>
             <xsl:element name="style">
               <xsl:attribute name="type">text/css</xsl:attribute>
-              <xsl:text>.</xsl:text><xsl:value-of select="$epub.cover.image.id"/>
-              <xsl:text> { width:100%; height: 100%; }</xsl:text>
+              <!-- Select the cover image by @id in the CSS then apply a max-width to help Adobe Digital Editions -->
+              <xsl:text>#</xsl:text><xsl:value-of select="$epub.cover.image.id"/>
+              <xsl:text> img { max-width: 100%; }</xsl:text>
             </xsl:element>
           </xsl:element>
           <xsl:element name="body">