source: proiecte/swift/trunk/lib/hoard-371/doc/skin/profile.css.xslt @ 176

Last change on this file since 176 was 176, checked in by (none), 14 years ago
  • imported repo from "guagal"
File size: 7.8 KB
Line 
1<?xml version="1.0"?>
2<!--
3  Copyright 2002-2004 The Apache Software Foundation
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9      http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16-->
17<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
18
19  <xsl:import href="../../common/css/forrest.css.xslt"/>
20
21  <!-- This is not used by Forrest but makes it possible to debug the
22       stylesheet in standalone editors -->
23  <xsl:output method = "text"  omit-xml-declaration="yes"  />
24 
25<!-- ==================== main block colors ============================ -->
26
27<xsl:template match="color[@name='header']">
28#top          { background-color: <xsl:value-of select="@value"/>;} 
29</xsl:template>
30
31<xsl:template match="color[@name='tab-selected']"> 
32#top .header .current { background-color: <xsl:value-of select="@value"/>;}
33#top .header .current a:link {  color: <xsl:value-of select="@link"/>;  }
34#top .header .current a:visited { color: <xsl:value-of select="@vlink"/>; }
35#top .header .current a:hover { color: <xsl:value-of select="@hlink"/>; }
36</xsl:template> 
37
38<xsl:template match="color[@name='tab-unselected']"> 
39#tabs li      { background-color: <xsl:value-of select="@value"/> ;}
40#tabs li a:link {  color: <xsl:value-of select="@link"/>;  }
41#tabs li a:visited { color: <xsl:value-of select="@vlink"/>; }
42#tabs li a:hover { color: <xsl:value-of select="@hlink"/>; }
43</xsl:template> 
44
45<xsl:template match="color[@name='subtab-selected']">
46#level2tabs       { background-color: <xsl:value-of select="@value"/> ;}
47#level2tabs a:link {  color: <xsl:value-of select="@link"/>;  }
48#level2tabs a:visited { color: <xsl:value-of select="@vlink"/>; }
49#level2tabs a:hover { color: <xsl:value-of select="@hlink"/>; }
50</xsl:template> 
51
52<!--xsl:template match="color[@name='subtab-unselected']">
53.level2tabstrip { background-color: <xsl:value-of select="@value"/>;}
54.datenote { background-color: <xsl:value-of select="@value"/>;}
55.level2tabstrip.unselected a:link {  color: <xsl:value-of select="@link"/>;  }
56.level2tabstrip.unselected a:visited { color: <xsl:value-of select="@vlink"/>; }
57.level2tabstrip.unselected a:hover { color: <xsl:value-of select="@hlink"/>; }
58</xsl:template--> 
59
60<xsl:template match="color[@name='heading']">
61.heading { background-color: <xsl:value-of select="@value"/>;}
62</xsl:template> 
63
64<xsl:template match="color[@name='subheading']">
65.boxed { background-color: <xsl:value-of select="@value"/>;}
66.underlined_5   {border-bottom: solid 5px <xsl:value-of select="@value"/>;}
67.underlined_10  {border-bottom: solid 10px <xsl:value-of select="@value"/>;}
68table caption {
69background-color: <xsl:value-of select="@value"/>;
70color: <xsl:value-of select="@font"/>;
71}
72</xsl:template> 
73<xsl:template match="color[@name='feedback']">   
74#feedback {
75color: <xsl:value-of select="@font"/>;
76background: <xsl:value-of select="@value"/>;
77text-align: <xsl:value-of select="@align"/>;
78}
79#feedback #feedbackto {
80color: <xsl:value-of select="@font"/>;
81}   
82</xsl:template>
83
84<xsl:template match="color[@name='breadtrail']">
85#main .breadtrail {
86background: <xsl:value-of select="@value"/>;
87color: <xsl:value-of select="@font"/>;
88}
89#main .breadtrail a:link {  color: <xsl:value-of select="@link"/>;  }
90#main .breadtrail a:visited { color: <xsl:value-of select="@vlink"/>; }
91#main .breadtrail a:hover { color: <xsl:value-of select="@hlink"/>; }
92#top .breadtrail {
93background: <xsl:value-of select="@value"/>;
94color: <xsl:value-of select="@font"/>;
95}
96#top .breadtrail a:link {  color: <xsl:value-of select="@link"/>;  }
97#top .breadtrail a:visited { color: <xsl:value-of select="@vlink"/>; }
98#top .breadtrail a:hover { color: <xsl:value-of select="@hlink"/>; }   
99</xsl:template>
100<!--Fix for other (old) profiles-->
101<xsl:template match="color[@name='navstrip']">
102#publishedStrip {
103color: <xsl:value-of select="@font"/>;
104background: <xsl:value-of select="@value"/>;
105}
106</xsl:template> 
107<!--has to go after the nav-strip (no 'navstrip')-->
108<xsl:template match="color[@name='published']">
109#publishedStrip {
110color: <xsl:value-of select="@font"/>;
111background: <xsl:value-of select="@value"/>;
112}
113</xsl:template> 
114<xsl:template match="color[@name='toolbox']">
115#menu .menupagetitle  { background-color: <xsl:value-of select="@value"/>}
116</xsl:template> 
117
118<xsl:template match="color[@name='border']">
119#menu           { border-color: <xsl:value-of select="@value"/>;}
120#menu .menupagetitle  { border-color: <xsl:value-of select="@value"/>;}
121#menu .menupageitemgroup  { border-color: <xsl:value-of select="@value"/>;}
122</xsl:template> 
123
124<xsl:template match="color[@name='menu']">
125#menu      { background-color: <xsl:value-of select="@value"/>;}
126#menu  {  color: <xsl:value-of select="@font"/>;}
127#menu a:link {  color: <xsl:value-of select="@link"/>;}
128#menu a:visited {  color: <xsl:value-of select="@vlink"/>;}
129#menu a:hover { 
130background-color: <xsl:value-of select="@value"/>;
131color: <xsl:value-of select="@hlink"/>;}
132</xsl:template> 
133<xsl:template match="color[@name='dialog']"> 
134#menu .menupagetitle  { color: <xsl:value-of select="@font"/>;}   
135#menu .menupageitemgroup     {
136background-color: <xsl:value-of select="@value"/>;
137}
138#menu .menupageitem {
139color: <xsl:value-of select="@font"/>;
140}
141#menu .menupageitem a:link {  color: <xsl:value-of select="@link"/>;}
142#menu .menupageitem a:visited {  color: <xsl:value-of select="@vlink"/>;}
143#menu .menupageitem a:hover { 
144background-color: <xsl:value-of select="@value"/>;
145color: <xsl:value-of select="@hlink"/>;
146}
147</xsl:template> 
148<xsl:template match="color[@name='menuheading']">
149#menu h1 {
150color: <xsl:value-of select="@font"/>;
151background-color: <xsl:value-of select="@value"/>;
152}   
153</xsl:template> 
154<xsl:template match="color[@name='searchbox']"> 
155#top .searchbox {
156background-color: <xsl:value-of select="@value"/> ;
157color: <xsl:value-of select="@font"/>;
158}
159</xsl:template>
160
161<xsl:template match="color[@name='body']">
162body{
163background-color: <xsl:value-of select="@value"/>;
164color: <xsl:value-of select="@font"/>;
165}
166a:link { color:<xsl:value-of select="@link"/>}
167a:visited { color:<xsl:value-of select="@vlink"/>}
168a:hover { color:<xsl:value-of select="@hlink"/>}
169
170</xsl:template>
171
172<xsl:template match="color[@name='footer']"> 
173#footer       { background-color: <xsl:value-of select="@value"/>;}
174</xsl:template> 
175
176
177<!-- ==================== other colors ============================ -->
178<xsl:template match="color[@name='highlight']"> 
179.highlight        { background-color: <xsl:value-of select="@value"/>;}
180</xsl:template> 
181
182<xsl:template match="color[@name='fixme']"> 
183.fixme        { border-color: <xsl:value-of select="@value"/>;}
184</xsl:template> 
185
186<xsl:template match="color[@name='note']"> 
187.note         { border-color: <xsl:value-of select="@value"/>;}
188</xsl:template> 
189
190<xsl:template match="color[@name='warning']"> 
191.warning         { border-color: <xsl:value-of select="@value"/>;}
192</xsl:template>
193
194<xsl:template match="color[@name='code']"> 
195.code         { border-color: <xsl:value-of select="@value"/>;}
196</xsl:template> 
197
198<xsl:template match="color[@name='table']"> 
199.ForrestTable      { background-color: <xsl:value-of select="@value"/>;}
200</xsl:template> 
201
202<xsl:template match="color[@name='table-cell']"> 
203.ForrestTable td   { background-color: <xsl:value-of select="@value"/>;}
204</xsl:template> 
205
206
207</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.