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