keep up with Classic; bump skinVersion to 1.5 and EarlyBlue version to 1.5b (if I...
[themes.git] / EarlyBlue / global / tree.css
1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3  *
4  * The contents of this file are subject to the Mozilla Public License Version
5  * 1.1 (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/MPL/
8  *
9  * Software distributed under the License is distributed on an "AS IS" basis,
10  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11  * for the specific language governing rights and limitations under the
12  * License.
13  *
14  * The Original Code is "Classic" theme of mozilla.org code.
15  *
16  * The Initial Developer of the Original Code is
17  * the Mozilla Organization.
18  * Portions created by the Initial Developer are Copyright (C) 1998-2001
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s):
22  *   Robert Kaiser <KaiRo@KaiRo.at>
23  *   Joe Hewitt (hewitt@netscape.com)                                           
24  *   Dean Tessman (dean_tessman@hotmail.com)
25  *
26  * Alternatively, the contents of this file may be used under the terms of
27  * either the GNU General Public License Version 2 or later (the "GPL"), or
28  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29  * in which case the provisions of the GPL or the LGPL are applicable instead
30  * of those above. If you wish to allow use of your version of this file only
31  * under the terms of either the GPL or the LGPL, and not to allow others to
32  * use your version of this file under the terms of the MPL, indicate your
33  * decision by deleting the provisions above and replace them with the notice
34  * and other provisions required by the GPL or the LGPL. If you do not delete
35  * the provisions above, a recipient may use your version of this file under
36  * the terms of any one of the MPL, the GPL or the LGPL.
37  *
38  * ***** END LICENSE BLOCK ***** */
39
40 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
41
42 /* ===== tree.css =======================================================
43   == Styles used by the XUL tree element.
44   ======================================================================= */
45
46 /* ::::: tree ::::: */
47
48 tree {
49   border-spacing: 0px;     
50   border: 1px inset #CCD0DD;
51   background-color: #FFFFFF;
52   color: #000000;   
53 }
54
55 /* ::::: tree focusring ::::: */
56
57 /* deactivated, looks too bad for me in EarlyBlue
58 .focusring > .tree-rows > .tree-bodybox {
59   border: 1px solid transparent;
60 }
61
62 .focusring:focus > .tree-rows > .tree-bodybox {
63   border: 1px solid #000000;
64 }
65 */
66
67 /* ::::: tree rows ::::: */
68
69 tree[selstyle="primary"] > treechildren::-moz-tree-row,
70 treechildren::-moz-tree-row {
71   border: 1px solid transparent;
72   background-color: transparent;
73   min-height: 18px;
74   height: 1.3em;
75 }
76
77 treechildren::-moz-tree-row(selected) {
78   background-color: #808080;
79 }
80
81 treechildren::-moz-tree-row(selected, focus) {
82   background-color: #336699;
83 }
84
85 treechildren::-moz-tree-row(current, focus) {
86   border: 1px dotted #9999CC;
87 }
88
89 treechildren::-moz-tree-row(selected, current, focus) {
90   border: 1px dotted #666699;
91 }
92
93 /* ::::: tree cells ::::: */
94
95 treechildren::-moz-tree-cell {
96   padding: 0px 2px 0px 2px;
97 }
98
99 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text,
100 treechildren::-moz-tree-cell-text {
101   color: inherit;
102   border: 2px solid transparent;
103 }
104
105 treechildren::-moz-tree-cell-text(selected) {
106   color: #FFFFFF;
107 }
108
109 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected) {
110   background-color: #808080;
111   color: #FFFFFF;
112 }
113
114 treechildren::-moz-tree-cell-text(selected, focus) {
115   color: #FFFFFF;
116 }
117
118 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, focus) {
119   background-color: #336699;
120   color: #FFFFFF;
121 }
122
123 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, current, focus) {
124   border: 1px dotted #9999CC;
125 }
126
127 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, current, focus) {
128   border: 1px dotted #666699;
129 }
130
131 /* ::::: lines connecting cells ::::: */
132
133 tree[selstyle="primary"] > treechildren::-moz-tree-line,
134 treechildren::-moz-tree-line {
135   visibility: hidden;
136 }
137
138 /*
139 treechildren::-moz-tree-line {
140   border: 1px dotted grey;
141 }
142
143 treechildren::-moz-tree-line(selected, focus) {
144   border: 1px dotted black;
145 }
146 */
147
148 /* ::::: tree separator ::::: */
149
150 treechildren::-moz-tree-separator {
151   border: 1px outset #CCD0DD;
152 }
153
154 /* ::::: drop feedback ::::: */
155
156 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, dropOn),
157 treechildren::-moz-tree-cell-text(dropOn) {
158   background-color: #336699;
159   color: #FFFFFF;
160 }
161
162 treechildren::-moz-tree-drop-feedback {
163   background-color: #336699;
164   width: 50px;
165   height: 2px;
166   margin-left: 5px;
167 }
168
169 treechildren::-moz-tree-drop-feedback(selected) {
170   background-color: #FFFFFF;
171 }
172
173 /* ::::: tree progress meter ::::: */
174
175 treechildren::-moz-tree-progressmeter {
176   margin: 0px 0px;
177   border: 1px inset #CCD0DD;
178   background-color: #999999;
179   color: #6699CC;
180 }
181
182 treechildren::-moz-tree-progressmeter(progressUndetermined) {
183   list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
184   background-color: #CCD0DD;
185 }
186
187 treechildren::-moz-tree-cell-text(progressmeter) {
188   margin: 2px 4px;
189 }
190
191 /* ::::: tree columns ::::: */
192
193 treecol { 
194   -moz-box-align: center;
195   -moz-box-pack: center;
196   border: 1px outset #CCD0DD;
197   background-color: #CCD0DD;
198   color: #000000;
199   padding: 1px 4px;
200 }
201
202 treecolpicker { 
203   -moz-box-align: center;
204   -moz-box-pack: center;
205   border: 1px solid transparent;
206   background-color: #CCD0DD;
207   padding: 1px 0px;
208 }
209
210 .treecol-image {
211   padding: 1px;
212 }
213   
214 .treecol-text {
215   margin: 0px !important;
216   padding: 0px !important;
217 }
218
219 treecol[hideheader="true"] {
220   border: none;
221   padding: 0;
222 }
223
224 /* ..... internal box ..... */
225
226 treecol:hover:active {
227   border: 1px solid #666699;
228   padding: 2px 3px 0px 5px;
229 }
230
231 treecolpicker:hover:active {
232   border: 1px solid #666699;
233 }
234
235 .treecol-image:hover:active {
236   padding: 2px 0px 0px 2px;
237 }
238
239 /* ::::: column drag and drop styles ::::: */
240
241 treecol[dragging="true"] {
242   border: 1px solid transparent;
243   background-color: #336699;
244   color: #000000;
245 }
246
247 treecol[insertafter="true"] {
248   border-right: 1px solid #000000;
249 }
250
251 treecol[insertbefore="true"] {
252   border-left: 1px solid #000000;
253 }
254
255 treechildren::-moz-tree-column(insertbefore) {
256   border-left: 1px solid #000000;
257 }
258
259 treechildren::-moz-tree-column(insertafter) {
260   border-right: 1px solid #000000;
261 }
262
263 /* ::::: sort direction indicator :::::  */
264
265 .treecol-sortdirection {
266   list-style-image: none;
267 }
268
269 .sortDirectionIndicator[sortDirection="ascending"] .treecol-sortdirection {
270   list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
271 }
272
273 .sortDirectionIndicator[sortDirection="descending"] .treecol-sortdirection {
274   list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
275 }
276
277 /* ::::: column picker :::::  */
278
279 .tree-columnpicker-icon {
280   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
281 }
282
283 /* ::::: twisty :::::  */
284
285 treechildren::-moz-tree-twisty {
286   padding-right: 2px;
287   padding-top: 1px;
288   width: 11px; /* The image's width is 11 pixels */
289   list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
290 }
291   
292 treechildren::-moz-tree-twisty(open) {
293   width: 11px; /* The image's width is 11 pixels */
294   list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
295 }
296
297 treechildren::-moz-tree-indentation {
298   width: 11px;
299 }
300
301 /* ::::: gridline style ::::: */
302
303 treechildren.gridlines::-moz-tree-cell {
304   border-right: 1px solid green;
305   border-bottom: 1px solid green;
306 }
307
308 treechildren.gridlines::-moz-tree-row {
309   border: none;
310 }