You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by ni...@apache.org on 2004/01/03 16:36:08 UTC
cvs commit: xml-forrest/src/core/context/skins/krysalis-site/css forrest.css.xslt page.css page.css.xslt
nicolaken 2004/01/03 07:36:08
Added: src/core/context/skins/krysalis-site/css forrest.css.xslt
page.css
Removed: src/core/context/skins/krysalis-site/css page.css.xslt
Log:
<action dev="NKB" type="add" context="skins">
New "extra-css" tag in skinconf can contain css that is injected in
forrest.css, added in the skins by default.
</action>
<action dev="NKB" type="add" context="skins">
New section in skinconf about colors used by the site.
Enabled for krysalis-site and tigris-style.
If a needed color is not specified, the default one is used.
</action>
Revision Changes Path
1.1 xml-forrest/src/core/context/skins/krysalis-site/css/forrest.css.xslt
Index: forrest.css.xslt
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- This is not used by Forrest but makes it possible to debug the
stylesheet in standalone editors -->
<xsl:output method = "text" omit-xml-declaration="yes" />
<xsl:template match="colors">
<xsl:apply-templates/>
</xsl:template>
<!-- ==================== main block colors ============================ -->
<xsl:template match="color[@name='header']">
.header { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='tab-selected']">
.tab.selected { background-color: <xsl:value-of select="@value"/>;}
.border { background-color: <xsl:value-of select="@value"/>;}
.menu { border-color: <xsl:value-of select="@value"/>;}</xsl:template>
<xsl:template match="color[@name='tab-unselected']">
.tab.unselected { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='subtab-selected']">
<!-- subtab-selected unused -->
</xsl:template>
<xsl:template match="color[@name='subtab-unselected']">
.level2tabstrip { background-color: <xsl:value-of select="@value"/>;}
.datenote { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='heading']">
.heading { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='subheading']">
.subheading { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='navstrip']">
.subborder { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='toolbox']">
<!-- toolbox unused -->
</xsl:template>
<xsl:template match="color[@name='menu']">
.menu { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='dialog']">
.dialog { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='body']">
body { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='footer']">
.footer { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
<!-- ==================== other colors ============================ -->
<xsl:template match="color[@name='highlight']">
.highlight { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='fixme']">
.fixme { border-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='note']">
.note { border-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='warning']">
.warning { border-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='code']">
.code { border-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='table']">
.content .ForrestTable { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="color[@name='table-cell']">
.content .ForrestTable td { background-color: <xsl:value-of select="@value"/>;} </xsl:template>
<xsl:template match="skinconfig">
/* $Id: forrest.css.xslt,v 1.1 2004/01/03 15:36:08 nicolaken Exp $ */
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="extra-css">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="*"></xsl:template>
<xsl:template match="text()"></xsl:template>
</xsl:stylesheet>
1.5 +7 -0 xml-forrest/src/core/context/skins/krysalis-site/css/page.css