3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
18 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
19 <xsl:import href="../../common/css/forrest.css.xslt"/>
20 <!-- xsl:output is not used by Forrest but makes it possible to debug the
21 stylesheet in standalone editors -->
22 <xsl:output method = "text" omit-xml-declaration="yes" />
23 <!-- ==================== main block colors ============================ -->
24 <xsl:template match="color[@name='header']">
25 #top { background-color: <xsl:value-of select="@value"/>;}
27 <xsl:template match="color[@name='tab-selected']">
28 #top .header .current { background-color: <xsl:value-of select="@value"/>;}
29 #top .header .current a:link { color: <xsl:value-of select="@link"/>; }
30 #top .header .current a:visited { color: <xsl:value-of select="@vlink"/>; }
31 #top .header .current a:hover { color: <xsl:value-of select="@hlink"/>; }
33 <xsl:template match="color[@name='tab-unselected']">
34 #tabs li { background-color: <xsl:value-of select="@value"/> ;}
35 #tabs li a:link { color: <xsl:value-of select="@link"/>; }
36 #tabs li a:visited { color: <xsl:value-of select="@vlink"/>; }
37 #tabs li a:hover { color: <xsl:value-of select="@hlink"/>; }
39 <xsl:template match="color[@name='subtab-selected']">
40 #level2tabs a.selected { background-color: <xsl:value-of select="@value"/> ;}
41 #level2tabs a:link { color: <xsl:value-of select="@link"/>; }
42 #level2tabs a:visited { color: <xsl:value-of select="@vlink"/>; }
43 #level2tabs a:hover { color: <xsl:value-of select="@hlink"/>; }
45 <xsl:template match="color[@name='subtab-unselected']">
46 #level2tabs { background-color: <xsl:value-of select="@value"/>;}
47 #level2tabs a.unselected:link { color: <xsl:value-of select="@link"/>; }
48 #level2tabs a.unselected:visited { color: <xsl:value-of select="@vlink"/>; }
49 #level2tabs a.unselected:hover { color: <xsl:value-of select="@hlink"/>; }
51 <xsl:template match="color[@name='heading']">
52 .heading { background-color: <xsl:value-of select="@value"/>;}
54 <xsl:template match="color[@name='subheading']">
55 .boxed { background-color: <xsl:value-of select="@value"/>;}
56 .underlined_5 {border-bottom: solid 5px <xsl:value-of select="@value"/>;}
57 .underlined_10 {border-bottom: solid 10px <xsl:value-of select="@value"/>;}
59 background-color: <xsl:value-of select="@value"/>;
60 color: <xsl:value-of select="@font"/>;
63 <xsl:template match="color[@name='feedback']">
65 color: <xsl:value-of select="@font"/>;
66 background: <xsl:value-of select="@value"/>;
67 text-align: <xsl:value-of select="@align"/>;
69 #feedback #feedbackto {
70 color: <xsl:value-of select="@font"/>;
73 <xsl:template match="color[@name='breadtrail']">
75 background: <xsl:value-of select="@value"/>;
76 color: <xsl:value-of select="@font"/>;
78 #main .breadtrail a:link { color: <xsl:value-of select="@link"/>; }
79 #main .breadtrail a:visited { color: <xsl:value-of select="@vlink"/>; }
80 #main .breadtrail a:hover { color: <xsl:value-of select="@hlink"/>; }
82 background: <xsl:value-of select="@value"/>;
83 color: <xsl:value-of select="@font"/>;
85 #top .breadtrail a:link { color: <xsl:value-of select="@link"/>; }
86 #top .breadtrail a:visited { color: <xsl:value-of select="@vlink"/>; }
87 #top .breadtrail a:hover { color: <xsl:value-of select="@hlink"/>; }
89 <!--Fix for other (old) profiles-->
90 <xsl:template match="color[@name='navstrip']">
92 color: <xsl:value-of select="@font"/>;
93 background: <xsl:value-of select="@value"/>;
96 <!--has to go after the nav-strip (no 'navstrip')-->
97 <xsl:template match="color[@name='published']">
99 color: <xsl:value-of select="@font"/>;
100 background: <xsl:value-of select="@value"/>;
103 <xsl:template match="color[@name='toolbox']">
104 #menu .menupagetitle { background-color: <xsl:value-of select="@value"/>;
105 color: <xsl:value-of select="@font"/>;}
107 <xsl:template match="color[@name='border']">
108 #menu { border-color: <xsl:value-of select="@value"/>;}
109 #menu .menupagetitle { border-color: <xsl:value-of select="@value"/>;}
110 #menu .menupageitemgroup { border-color: <xsl:value-of select="@value"/>;}
112 <xsl:template match="color[@name='menu']">
113 #menu { background-color: <xsl:value-of select="@value"/>;}
114 #menu { color: <xsl:value-of select="@font"/>;}
115 #menu a:link { color: <xsl:value-of select="@link"/>;}
116 #menu a:visited { color: <xsl:value-of select="@vlink"/>;}
118 background-color: <xsl:value-of select="@value"/>;
119 color: <xsl:value-of select="@hlink"/>;}
121 <xsl:template match="color[@name='dialog']">
122 #menu .menupageitemgroup {
123 background-color: <xsl:value-of select="@value"/>;
125 #menu .menupageitem {
126 color: <xsl:value-of select="@font"/>;
128 #menu .menupageitem a:link { color: <xsl:value-of select="@link"/>;}
129 #menu .menupageitem a:visited { color: <xsl:value-of select="@vlink"/>;}
130 #menu .menupageitem a:hover {
131 background-color: <xsl:value-of select="@value"/>;
132 color: <xsl:value-of select="@hlink"/>;
135 <xsl:template match="color[@name='menuheading']">
137 color: <xsl:value-of select="@font"/>;
138 background-color: <xsl:value-of select="@value"/>;
141 <xsl:template match="color[@name='searchbox']">
143 background-color: <xsl:value-of select="@value"/> ;
144 color: <xsl:value-of select="@font"/>;
147 <xsl:template match="color[@name='body']">
149 background-color: <xsl:value-of select="@value"/>;
150 color: <xsl:value-of select="@font"/>;
152 a:link { color:<xsl:value-of select="@link"/>}
153 a:visited { color:<xsl:value-of select="@vlink"/>}
154 a:hover { color:<xsl:value-of select="@hlink"/>}
157 <xsl:template match="color[@name='footer']">
158 #footer { background-color: <xsl:value-of select="@value"/>;}
160 <!-- ==================== other colors ============================ -->
161 <xsl:template match="color[@name='highlight']">
162 .highlight { background-color: <xsl:value-of select="@value"/>;}
164 <xsl:template match="color[@name='fixme']">
165 .fixme { border-color: <xsl:value-of select="@value"/>;}
167 <xsl:template match="color[@name='note']">
168 .note { border-color: <xsl:value-of select="@value"/>;}
170 <xsl:template match="color[@name='warning']">
171 .warning { border-color: <xsl:value-of select="@value"/>;}
173 <xsl:template match="color[@name='code']">
174 .code { border-color: <xsl:value-of select="@value"/>;}
176 <xsl:template match="color[@name='table']">
177 .ForrestTable { background-color: <xsl:value-of select="@value"/>;}
179 <xsl:template match="color[@name='table-cell']">
180 .ForrestTable td { background-color: <xsl:value-of select="@value"/>;}