finish up sync with Mozilla 12 toolkit winstripe
[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 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:-moz-focusring > .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
205treechildren::-moz-tree-row(dropOn) {
206 background-color: #008484;
207}
208
209tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
210tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
211treechildren::-moz-tree-cell-text(dropOn) {
212 color: #FFCF00;
213}
214
215treechildren::-moz-tree-drop-feedback {
216 background-color: #008484;
217 width: 50px;
218 height: 2px;
219 -moz-margin-start: 5px;
220}
221
222treechildren::-moz-tree-drop-feedback(selected) {
223 background-color: #FFCF00;
224}
225
226/* ::::: tree checkbox ::::: */
227
228treechildren::-moz-tree-checkbox {
229 list-style-image: url("chrome://global/skin/tree/checkbox.gif");
230}
231
232treechildren::-moz-tree-checkbox(checked) {
233 list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif");
234}
235
236/* ::::: tree progress meter ::::: */
237
238treechildren::-moz-tree-progressmeter {
239 margin: 0px 0px;
240 border: 1px solid #FF9F00;
241 background-color: #000000;
242 color: #008484;
243}
244
245treechildren::-moz-tree-progressmeter(progressUndetermined) {
246 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
247 background-color: #008484;
248}
249
250treechildren::-moz-tree-cell-text(progressmeter) {
251 margin: 2px 4px;
252}
253
254/* ::::: tree columns ::::: */
255
256treecol {
257 -moz-box-align: center;
258 -moz-box-pack: center;
259 border: 1px solid #FF9F00;
260 background-color: #9C9CFF;
261 color: #000000;
262 padding: 1px 4px;
263}
264
265treecol:first-child {
266 border-top-left-radius: 3px;
267}
268
269tree[hidecolumnpicker] treecol:last-child {
270 border-top-right-radius: 3px;
271}
272
273treecolpicker {
274 border-top-right-radius: 3px;
275 -moz-box-align: center;
276 -moz-box-pack: center;
277 border: 1px solid #FF9F00;
278 background-color: #000000;
279 padding: 1px 0px;
280}
281
282.treecol-image {
283 padding: 0 1px;
284}
285
286.treecol-text {
287 margin: 0px !important;
288 padding: 0px !important;
289}
290
291treecol[hideheader="true"] {
292 border: none;
293 padding: 0;
294}
295
296/* ..... internal box ..... */
297
298treecol:hover:active {
299 border: 1px solid #FFCF00;
300 padding-top: 2px;
301 padding-bottom: 0px;
302 -moz-padding-start: 5px;
303 -moz-padding-end: 3px;
304}
305
306treecolpicker:hover {
307 background-color: #FFCF00;
308}
309
310treecolpicker:hover:active {
311 border: 1px solid #FFCF00;
312 background-color: #FF9F00;
313}
314
315.treecol-image:hover:active {
316 padding-top: 2px;
317 padding-bottom: 0px;
318 -moz-padding-start: 2px;
319 -moz-padding-end: 0px;
320}
321
322/* ::::: column drag and drop styles ::::: */
323
324treecol[dragging="true"] {
325 border: 1px solid transparent;
326 background-color: #008484;
327 color: #000000;
328}
329
330treecol[insertafter="true"]:-moz-locale-dir(ltr),
331treecol[insertbefore="true"]:-moz-locale-dir(rtl) {
332 border-right: 1px solid #FFCF00;
333}
334
335treecol[insertafter="true"]:-moz-locale-dir(rtl),
336treecol[insertbefore="true"]:-moz-locale-dir(ltr) {
337 border-left: 1px solid #FFCF00;
338}
339
340treechildren::-moz-tree-column(insertbefore) {
341 -moz-border-start: 1px solid #FFCF00;
342}
343
344treechildren::-moz-tree-column(insertafter) {
345 -moz-border-end: 1px solid #FFCF00;
346}
347
348/* ::::: sort direction indicator ::::: */
349
350.treecol-sortdirection {
351 list-style-image: none;
352 width: 8px; /* The image's width is 7 pixels */
353}
354
355treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"] {
356 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
357}
358
359treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"] {
360 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
361}
362
363/* ::::: column picker ::::: */
364
365.tree-columnpicker-icon {
366 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
367}
368
369treecolpicker:hover > .tree-columnpicker-icon,
370treecolpicker:hover:active > .tree-columnpicker-icon {
371 list-style-image: url("chrome://global/skin/tree/columnpicker-hover.gif");
372}
373
374/* ::::: twisty ::::: */
375
376treechildren::-moz-tree-twisty {
377 -moz-padding-end: 1px;
378 padding-top: 0px;
379 width: 11px; /* The image's width is 11 pixels */
380 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
381}
382
383treechildren::-moz-tree-twisty(open) {
384 width: 11px; /* The image's width is 11 pixels */
385 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
386}
387
388treechildren::-moz-tree-indentation {
389 width: 11px;
390}
391
392/* ::::: gridline style ::::: */
393
394treechildren.gridlines::-moz-tree-cell {
395 border-right: 1px solid #9C9CFF;
396 border-bottom: 1px solid #9C9CFF;
397}
398
399treechildren.gridlines::-moz-tree-row {
400 border: none;
401}
402
403/* ::::: alternating background ::::: */
404
405treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
406 background-color: #404000;
407}
408
409treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
410 background-color: #008484;
411 color: #000000;
412}
413
414treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
415 background-color: #008484;
416 color: #000000;
417}
418
419/* ::::: editable tree ::::: */
420
421treechildren::-moz-tree-row(selected, editing) {
422 background-color: transparent;
423 border: none;
424}
425
426treechildren::-moz-tree-cell-text(selected, editing) {
427 color: inherit;
428}
429
430.tree-input {
431 border: 1px solid #9C9CFF;
432 margin: 0;
433 -moz-margin-start: -4px;
434 padding: 1px;
435}