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