portal: procedural wiki tile background-color
This commit is contained in:
parent
ed68304ca1
commit
e5f20d19fa
|
@ -360,6 +360,13 @@
|
||||||
background: url('<xsl:value-of select="content-image"/>') 50% 50% no-repeat;
|
background: url('<xsl:value-of select="content-image"/>') 50% 50% no-repeat;
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</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="header"/>
|
||||||
<xsl:apply-templates select="footer"/>
|
<xsl:apply-templates select="footer"/>
|
||||||
|
|
Loading…
Reference in New Issue