You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2004/07/05 16:27:38 UTC
svn commit: rev 22594 - in forrest/trunk/src/core/context/skins/css-style-dev: . css xslt/html
Author: thorsten
Date: Mon Jul 5 07:27:37 2004
New Revision: 22594
Added:
forrest/trunk/src/core/context/skins/css-style-dev/css/profile.css.xslt
forrest/trunk/src/core/context/skins/css-style-dev/skinconf.xsl
Modified:
forrest/trunk/src/core/context/skins/css-style-dev/xslt/html/site2xhtml.xsl
Log:
Started the color profiling
Added: forrest/trunk/src/core/context/skins/css-style-dev/css/profile.css.xslt
==============================================================================
--- (empty file)
+++ forrest/trunk/src/core/context/skins/css-style-dev/css/profile.css.xslt Mon Jul 5 07:27:37 2004
@@ -0,0 +1,157 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:import href="../../common/css/forrest.css.xslt"/>
+
+ <!-- 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" />
+
+<!-- ==================== main block colors ============================ -->
+
+<xsl:template match="color[@name='header']">
+#top { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='tab-selected']">
+#top .header .current { background-color: <xsl:alue-of select="@value"/>;}
+#top .header .current a:link { color: <xsl:value-of select="@link"/>; }
+#top .header .current a:visited { color: <xsl:value-of select="@vlink"/>; }
+#top .header .current a:hover { color: <xsl:value-of select="@hlink"/>; }
+.border { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<!--xsl:template match="color[@name='tab-unselected']">
+.tab.unselected { background-color: <xsl:value-of select="@value"/>;}
+.tab.unselected a:link { color: <xsl:value-of select="@link"/>; }
+.tab.unselected a:visited { color: <xsl:value-of select="@vlink"/>; }
+.tab.unselected a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template>
+
+<xsl:template match="color[@name='subtab-selected']">
+.level2tabstrip a:link { color: <xsl:value-of select="@link"/>; }
+.level2tabstrip a:visited { color: <xsl:value-of select="@vlink"/>; }
+.level2tabstrip a:hover { color: <xsl:value-of select="@hlink"/>; }
+</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"/>;}
+.level2tabstrip.unselected a:link { color: <xsl:value-of select="@link"/>; }
+.level2tabstrip.unselected a:visited { color: <xsl:value-of select="@vlink"/>; }
+.level2tabstrip.unselected a:hover { color: <xsl:value-of select="@hlink"/>; }
+</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='published']">
+.published { color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='navstrip']">
+.subborder { color: <xsl:value-of select="@font"/>;
+ background-color: <xsl:value-of select="@value"/>;}
+.subborder a:link { color: <xsl:value-of select="@link"/>; }
+.subborder a:visited { color: <xsl:value-of select="@vlink"/>; }
+.subborder a:hover { color: <xsl:value-of select="@hlink"/>; }
+.menu .menupagetitle { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='toolbox']">
+.menu .menupagetitle { background-color: <xsl:value-of select="@value"/>}
+</xsl:template>
+
+<xsl:template match="color[@name='border']">
+.subborder.trail {border-bottom: 1px solid <xsl:value-of select="@value"/>;
+ border-top: 1px solid <xsl:value-of select="@value"/>; }
+.footer {border-top: 1px solid <xsl:value-of select="@value"/>; }
+.menu { border-color: <xsl:value-of select="@value"/>;}
+.menu .menupagetitle { border-color: <xsl:value-of select="@value"/>;}
+.menu .menupageitemgroup { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='menu']">
+.menu { background-color: <xsl:value-of select="@value"/>;}
+.menu { color: <xsl:value-of select="@font"/>;}
+.menu a:link { color: <xsl:value-of select="@link"/>;}
+.menu a:visited { color: <xsl:value-of select="@vlink"/>;}
+.menu a:hover { background-color: <xsl:value-of select="@value"/>;
+ color: <xsl:value-of select="@hlink"/>;}
+.menu .menupagetitle { color: <xsl:value-of select="@hlink"/>;}
+</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"/>;
+ color: <xsl:value-of select="@font"/>;}
+a:link { color:<xsl:value-of select="@link"/>}
+a:visited { color:<xsl:value-of select="@vlink"/>}
+a:hover { color:<xsl:value-of select="@hlink"/>}
+.menupage a:link { background-color: <xsl:value-of select="@value"/>;
+ color:<xsl:value-of select="@link"/>}
+.menupage a:visited { background-color: <xsl:value-of select="@value"/>;
+ color:<xsl:value-of select="@vlink"/>}
+.menupage a:hover { background-color: <xsl:value-of select="@value"/>;
+ color:<xsl:value-of select="@hlink"/>}
+</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:stylesheet>
\ No newline at end of file
Added: forrest/trunk/src/core/context/skins/css-style-dev/skinconf.xsl
==============================================================================
--- (empty file)
+++ forrest/trunk/src/core/context/skins/css-style-dev/skinconf.xsl Mon Jul 5 07:27:37 2004
@@ -0,0 +1,140 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:template match="skinconfig">
+
+ <xsl:if test="not(colors)">
+ <colors>
+ <!-- Krysalis -->
+ <color name="header" value="#FFFFFF"/>
+
+ <color name="tab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="tab-unselected" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-unselected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+
+ <color name="heading" value="#a5b6c6"/>
+ <color name="subheading" value="#CFDCED"/>
+ <color name="published" value="#000000"/>
+
+ <color name="navstrip" value="#CFDCED" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="toolbox" value="#a5b6c6"/>
+ <color name="border" value="#a5b6c6"/>
+
+ <color name="menu" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="dialog" value="#F7F7F7"/>
+
+ <color name="body" value="#ffffff" link="#0F3660" vlink="#009999" hlink="#000066"/>
+
+ <color name="table" value="#a5b6c6"/>
+ <color name="table-cell" value="#ffffff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#a5b6c6"/>
+
+ <color name="footer" value="#a5b6c6"/>
+ </colors>
+ </xsl:if>
+
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:copy-of select="node()[not(name(.)='colors')]"/>
+ <xsl:apply-templates select="colors"/>
+ </xsl:copy>
+
+ </xsl:template>
+
+ <xsl:template match="colors">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:copy-of select="node()[name(.)='color']"/>
+
+ <xsl:if test="not(color[@name='header'])">
+ <color name="header" value="#FFFFFF"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='tab-selected'])">
+ <color name="tab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='tab-unselected'])">
+ <color name="tab-unselected" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='subtab-selected'])">
+ <color name="subtab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='subtab-unselected'])">
+ <color name="subtab-unselected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='heading'])">
+ <color name="heading" value="#a5b6c6"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='subheading'])">
+ <color name="subheading" value="#CFDCED"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='published'])">
+ <color name="published" value="#ffffff"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='navstrip'])">
+ <color name="navstrip" value="#CFDCED" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='toolbox'])">
+ <color name="toolbox" value="#a5b6c6"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='border'])">
+ <color name="border" value="#a5b6c6"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='menu'])">
+ <color name="menu" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='dialog'])">
+ <color name="dialog" value="#F7F7F7"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='body'])">
+ <color name="body" value="#ffffff" link="#0F3660" vlink="#009999" hlink="#000066"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='table'])">
+ <color name="table" value="#a5b6c6"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='table-cell'])">
+ <color name="table-cell" value="#ffffff"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='highlight'])">
+ <color name="highlight" value="#ffff00"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='fixme'])">
+ <color name="fixme" value="#c60"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='note'])">
+ <color name="note" value="#069"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='warning'])">
+ <color name="warning" value="#900"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='code'])">
+ <color name="code" value="#a5b6c6"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='footer'])">
+ <color name="footer" value="#a5b6c6"/>
+ </xsl:if>
+
+ </xsl:copy>
+
+ </xsl:template>
+
+</xsl:stylesheet>
Modified: forrest/trunk/src/core/context/skins/css-style-dev/xslt/html/site2xhtml.xsl
==============================================================================
--- forrest/trunk/src/core/context/skins/css-style-dev/xslt/html/site2xhtml.xsl (original)
+++ forrest/trunk/src/core/context/skins/css-style-dev/xslt/html/site2xhtml.xsl Mon Jul 5 07:27:37 2004
@@ -46,33 +46,40 @@
<!--+
|HTML-head
+-->
- <head>
+ <head>
<!--+
|generator meta
+-->
- <xsl:call-template name="html-meta"/>
+ <xsl:call-template name="html-meta"/>
<!--+
|title
+-->
- <title><xsl:value-of select="div[@id='content']/h1"/></title>
+ <title>
+ <xsl:value-of select="div[@id='content']/h1"/>
+ </title>
<!--+
|stylesheets
- +-->
- <link rel="stylesheet" href="{$root}skin/basic.css" type="text/css" />
- <link rel="stylesheet" href="{$root}skin/screen.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="{$root}skin/print.css" type="text/css" media="print" />
+ +-->
+ <link rel="stylesheet" href="{$root}skin/basic.css" type="text/css"
+ />
+ <link rel="stylesheet" href="{$root}skin/screen.css"
+ type="text/css" media="screen" />
+ <link rel="stylesheet" href="{$root}skin/print.css" type="text/css"
+ media="print" />
+ <link rel="stylesheet" href="{$root}skin/profile.css"
+ type="text/css" />
<!--+
|favicon
+-->
- <xsl:if test="//skinconfig/favicon-url">
- <link rel="shortcut icon">
- <xsl:attribute name="href">
- <xsl:value-of select="concat($root,//skinconfig/favicon-url)"/>
- </xsl:attribute>
- </link>
- </xsl:if>
-
- </head>
+ <xsl:if test="//skinconfig/favicon-url">
+ <link rel="shortcut icon">
+ <xsl:attribute name="href">
+ <xsl:value-of
+ select="concat($root,//skinconfig/favicon-url)"/>
+ </xsl:attribute>
+ </link>
+ </xsl:if>
+ </head>
<!--+
|HTML-body
+-->