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