incorporate all needed *stripe/classic changes until toolkit and suite moved from...
[themes.git] / EarlyBlue / global / tree.css
... / ...
CommitLineData
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 * Joe Hewitt (hewitt@netscape.com)
23 * Dean Tessman (dean_tessman@hotmail.com)
24 * Robert Kaiser <KaiRo@KaiRo.at>
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/* ===== tree.css =======================================================
41 == Styles used by the XUL tree element.
42 ======================================================================= */
43
44@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
45
46/* ::::: tree ::::: */
47
48tree {
49 margin: 0px;
50 border: 1px inset #CCD0DD;
51 background-color: #FFFFFF;
52 color: #000000;
53}
54
55/* ::::: tree focusring ::::: */
56
57.focusring > .tree-stack > .tree-rows > .tree-bodybox {
58 border: 1px solid transparent;
59}
60
61.focusring:focus > .tree-stack > .tree-rows > .tree-bodybox {
62 border: 1px solid #000000;
63}
64
65/* ::::: tree rows ::::: */
66
67treechildren::-moz-tree-row {
68 border: 1px solid transparent;
69 background-color: transparent;
70 min-height: 18px;
71 height: 1.3em;
72}
73
74treechildren::-moz-tree-row(selected) {
75 background-color: #808080;
76}
77
78treechildren::-moz-tree-row(selected, focus) {
79 background-color: #336699;
80}
81
82treechildren::-moz-tree-row(current, focus) {
83 border: 1px dotted #9999CC;
84}
85
86treechildren::-moz-tree-row(selected, current, focus) {
87 border: 1px dotted #666699;
88}
89
90tree[seltype="cell"] > treechildren::-moz-tree-row,
91tree[seltype="text"] > treechildren::-moz-tree-row {
92 border: none;
93 background-color: transparent;
94}
95
96/* ::::: tree cells ::::: */
97
98treechildren::-moz-tree-cell {
99 padding: 0px 2px;
100}
101
102tree[seltype="cell"] > treechildren::-moz-tree-cell-text,
103tree[seltype="text"] > treechildren::-moz-tree-cell-text,
104treechildren::-moz-tree-cell-text {
105 color: inherit;
106}
107
108treechildren::-moz-tree-cell-text(selected) {
109 color: #FFFFFF;
110}
111
112tree[seltype="cell"] > treechildren::-moz-tree-cell {
113 border: 1px solid transparent;
114 padding: 0px 1px 0px 1px;
115}
116
117tree[seltype="text"] > treechildren::-moz-tree-cell-text {
118 border: 1px solid transparent;
119 padding: 0px 1px 1px 1px;
120}
121
122tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
123 background-color: #808080;
124}
125tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) {
126 color: #FFFFFF;
127}
128
129tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
130 background-color: #808080;
131 color: #FFFFFF;
132}
133
134treechildren::-moz-tree-cell-text(selected, focus) {
135 color: #FFFFFF;
136}
137
138tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
139 background-color: #336699;
140}
141tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
142 color: #FFFFFF;
143}
144
145tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
146 background-color: #336699;
147 color: #FFFFFF;
148}
149
150tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
151 border: 1px dotted #9999CC;
152}
153
154tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
155 border: 1px dotted #9999CC;
156}
157
158tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) {
159 border: 1px dotted #666699;
160}
161
162tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) {
163 border: 1px dotted #666699;
164}
165
166/* ::::: lines connecting cells ::::: */
167
168tree[seltype="cell"] > treechildren::-moz-tree-line,
169tree[seltype="text"] > treechildren::-moz-tree-line,
170treechildren::-moz-tree-line {
171 visibility: hidden;
172}
173
174/*
175tree[seltype="cell"] > treechildren::-moz-tree-line,
176tree[seltype="text"] > treechildren::-moz-tree-line,
177treechildren::-moz-tree-line {
178 border: 1px dotted grey;
179}
180
181tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
182treechildren::-moz-tree-line(selected, focus) {
183 border: 1px dotted black;
184}
185*/
186
187/* ::::: tree separator ::::: */
188
189treechildren::-moz-tree-separator {
190 margin-top: 1px;
191 border: 1px outset #CCD0DD;
192 height: 2px;
193}
194
195/* ::::: drop feedback ::::: */
196
197tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
198tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
199treechildren::-moz-tree-cell-text(dropOn) {
200 background-color: #336699;
201 color: #FFFFFF;
202}
203
204treechildren::-moz-tree-drop-feedback {
205 background-color: #336699;
206 width: 50px;
207 height: 2px;
208 -moz-margin-start: 5px;
209}
210
211treechildren::-moz-tree-drop-feedback(selected) {
212 background-color: #FFFFFF;
213}
214
215/* ::::: tree checkbox ::::: */
216
217treechildren::-moz-tree-checkbox {
218 list-style-image: url("chrome://global/skin/tree/checkbox.gif");
219}
220
221treechildren::-moz-tree-checkbox(checked) {
222 list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif");
223}
224
225/* ::::: tree progress meter ::::: */
226
227treechildren::-moz-tree-progressmeter {
228 margin: 0px 0px;
229 border: 1px inset #CCD0DD;
230 background-color: #999999;
231 color: #6699CC;
232}
233
234treechildren::-moz-tree-progressmeter(progressUndetermined) {
235 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
236 background-color: #CCD0DD;
237}
238
239treechildren::-moz-tree-cell-text(progressmeter) {
240 margin: 2px 4px;
241}
242
243/* ::::: tree columns ::::: */
244
245treecol {
246 -moz-box-align: center;
247 -moz-box-pack: center;
248 border: 1px outset #CCD0DD;
249 background-color: #CCD0DD;
250 color: #000000;
251 padding: 1px 4px;
252}
253
254treecolpicker {
255 -moz-box-align: center;
256 -moz-box-pack: center;
257 border: 1px solid transparent;
258 background-color: #CCD0DD;
259 padding: 1px 0px;
260}
261
262.treecol-image {
263 padding: 0 1px;
264}
265
266.treecol-text {
267 margin: 0px !important;
268 padding: 0px !important;
269}
270
271treecol[hideheader="true"] {
272 border: none;
273 padding: 0;
274}
275
276/* ..... internal box ..... */
277
278treecol:hover:active {
279 border: 1px solid #666699;
280 padding-top: 2px;
281 padding-bottom: 0px;
282 -moz-padding-start: 5px;
283 -moz-padding-end: 3px;
284}
285
286treecolpicker:hover:active {
287 border: 1px solid #666699;
288}
289
290.treecol-image:hover:active {
291 padding-top: 2px;
292 padding-bottom: 0px;
293 -moz-padding-start: 2px;
294 -moz-padding-end: 0px;
295}
296
297/* ::::: column drag and drop styles ::::: */
298
299treecol[dragging="true"] {
300 border: 1px solid transparent;
301 background-color: #336699;
302 color: #000000;
303}
304
305treecol[insertafter="true"] {
306 border-right: 1px solid #000000;
307}
308
309treecol[insertbefore="true"] {
310 border-left: 1px solid #000000;
311}
312
313treechildren::-moz-tree-column(insertbefore) {
314 border-left: 1px solid #000000;
315}
316
317treechildren::-moz-tree-column(insertafter) {
318 border-right: 1px solid #000000;
319}
320
321/* ::::: sort direction indicator ::::: */
322
323.treecol-sortdirection {
324 list-style-image: none;
325 width: 8px; /* The image's width is 7 pixels */
326}
327
328treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"] {
329 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
330}
331
332treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"] {
333 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
334}
335
336/* ::::: column picker ::::: */
337
338.tree-columnpicker-icon {
339 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
340}
341
342/* ::::: twisty ::::: */
343
344treechildren::-moz-tree-twisty {
345 -moz-padding-end: 2px;
346 padding-top: 1px;
347 width: 11px; /* The image's width is 11 pixels */
348 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
349}
350
351treechildren::-moz-tree-twisty(open) {
352 width: 11px; /* The image's width is 11 pixels */
353 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
354}
355
356treechildren::-moz-tree-indentation {
357 width: 11px;
358}
359
360/* ::::: gridline style ::::: */
361
362treechildren.gridlines::-moz-tree-cell {
363 border-right: 1px solid green;
364 border-bottom: 1px solid green;
365}
366
367treechildren.gridlines::-moz-tree-row {
368 border: none;
369}
370
371/* ::::: Name (what is that?) ::::: */
372
373treechildren::-moz-tree-image(Name) {
374 -moz-padding-end: 2px;
375}
376
377treechildren::-moz-tree-image(Name) {
378 margin: 0px 1px;
379 list-style-image: url("chrome://global/skin/filepicker/file.gif") !important;
380}
381
382treechildren::-moz-tree-image(Name, container) {
383 list-style-image: url("chrome://global/skin/filepicker/dir-closed.gif") !important;
384}
385
386treechildren::-moz-tree-image(Name, open) {
387 list-style-image: url("chrome://global/skin/filepicker/dir-open.gif") !important;
388}
389
390treechildren::-moz-tree-image(Name, separator) {
391 list-style-image: none;
392 width: 0px !important;
393 height: 0px !important;
394 margin: 0px 0px;
395}
396
397treechildren::-moz-tree-cell-text(Name, separator) {
398 color: #666699;
399 margin: 0px 3px;
400}
401
402treechildren::-moz-tree-cell-text(Name, separator, selected, focus) {
403 color: #FFFFFF;
404}
405
406/* ::::: alternating background ::::: */
407
408treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
409 background-color: #F5F7FF;
410}
411
412treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
413 background-color: #A0A0A0;
414}
415
416treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
417 background-color: #6699CC;
418}
419
420/* ::::: editable tree ::::: */
421
422treechildren::-moz-tree-row(selected, editing) {
423 background-color: transparent;
424 border: none;
425}
426
427treechildren::-moz-tree-cell-text(selected, editing) {
428 color: inherit;
429}
430
431.tree-input {
432 border: 1px solid #336699;
433 margin: 0;
434 -moz-margin-start: -4px;
435 padding: 1px;
436}