portal: procedural wiki tile background-color

This commit is contained in:
Astro 2013-11-13 23:09:47 +01:00
parent ed68304ca1
commit e5f20d19fa
1 changed files with 7 additions and 0 deletions

View File

@ -360,6 +360,13 @@
background: url('<xsl:value-of select="content-image"/>') 50% 50% no-repeat;
</xsl:attribute>
</xsl:if>
<xsl:if test="@class = 'wiki'">
<xsl:attribute name="style">
background-color: rgb(<xsl:value-of select="240 - 3 *
string-length(content-text)"/>, <xsl:value-of select="252
- 4 * string-length(content-text)"/>, 255);
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="header"/>
<xsl:apply-templates select="footer"/>