improve 2.0a1-updated LCARStrek
[themes.git] / LCARStrek / global / tree.css
CommitLineData
351107c9 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>
3d6dd546 23 * Joe Hewitt (hewitt@netscape.com)
dc8e1207 24 * Dean Tessman (dean_tessman@hotmail.com)
351107c9 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
7aa65558 40/* ===== tree.css =======================================================
41 == Styles used by the XUL tree element.
42 ======================================================================= */
43
f98e9249
RK
44@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
45
7aa65558 46/* ::::: tree ::::: */
47
48tree {
49 -moz-border-radius: 5px;
f98e9249 50 margin: 0px;
7aa65558 51 border: 1px solid #9C9CFF;
52 background-color: #000000;
53 color: #FF9F00;
54}
55
ac1cdf20 56/* ::::: tree focusring ::::: */
57
a12570b9 58.focusring > .tree-stack > .tree-rows > .tree-bodybox {
ac1cdf20 59 border: 1px solid transparent;
60}
61
a12570b9 62.focusring:focus > .tree-stack > .tree-rows > .tree-bodybox {
ac1cdf20 63 border-color: #FFCF00;
64}
ac1cdf20 65
7aa65558 66/* ::::: tree rows ::::: */
67
01fc5c11 68treechildren::-moz-tree-row {
7aa65558 69 border: 1px solid transparent;
ac1cdf20 70 background-color: transparent;
b1e5c9b1 71 min-height: 18px;
72 height: 1.3em;
7aa65558 73}
74
01fc5c11 75treechildren::-moz-tree-row(selected) {
7aa65558 76 background-color: #008484;
77 color: #FFCF00;
78}
79
01fc5c11 80treechildren::-moz-tree-row(selected, focus) {
7aa65558 81 background-color: #008484;
82 color: #FFCF00;
83}
84
01fc5c11 85treechildren::-moz-tree-row(current, focus) {
dc8e1207 86 border: 1px dotted #FF9F00;
87}
88
01fc5c11 89treechildren::-moz-tree-row(selected, current, focus) {
dc8e1207 90 border: 1px dotted #FF9F00;
7aa65558 91}
92
a12570b9 93tree[seltype="cell"] > treechildren::-moz-tree-row,
94tree[seltype="text"] > treechildren::-moz-tree-row {
03f6f39c 95 border: none;
96 background-color: transparent;
97}
98
7aa65558 99/* ::::: tree cells ::::: */
100
01fc5c11 101treechildren::-moz-tree-cell {
f98e9249
RK
102 padding-top: 0px;
103 padding-bottom: 1px;
104 -moz-padding-start: 2px;
105 -moz-padding-end: 0px;
7aa65558 106}
107
a12570b9 108tree[seltype="cell"] > treechildren::-moz-tree-cell-text,
109tree[seltype="text"] > treechildren::-moz-tree-cell-text,
01fc5c11 110treechildren::-moz-tree-cell-text {
7aa65558 111 color: inherit;
03f6f39c 112}
113
a12570b9 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 {
0c7f928d 120 border: 1px solid transparent;
03f6f39c 121 padding: 0px 1px 1px 1px;
7aa65558 122}
123
01fc5c11 124treechildren::-moz-tree-cell-text(selected) {
0c7f928d 125 color: #FFCF00;
7aa65558 126}
127
a12570b9 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) {
0c7f928d 136 background-color: #008484;
137 color: #FFCF00;
ac1cdf20 138}
139
01fc5c11 140treechildren::-moz-tree-cell-text(selected, focus) {
0c7f928d 141 color: #FFCF00;
7aa65558 142}
ac1cdf20 143
a12570b9 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) {
0c7f928d 152 background-color: #008484;
153 color: #FFCF00;
ac1cdf20 154}
155
a12570b9 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) {
0c7f928d 161 border: 1px dotted #FF9F00;
ac1cdf20 162}
163
a12570b9 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) {
0c7f928d 169 border: 1px dotted #FF9F00;
ac1cdf20 170}
7aa65558 171
172/* ::::: lines connecting cells ::::: */
173
a12570b9 174tree[seltype="cell"] > treechildren::-moz-tree-line,
175tree[seltype="text"] > treechildren::-moz-tree-line,
01fc5c11 176treechildren::-moz-tree-line {
7aa65558 177 visibility: hidden;
178}
179
a12570b9 180tree[seltype="cell"] > treechildren::-moz-tree-line,
181tree[seltype="text"] > treechildren::-moz-tree-line,
01fc5c11 182treechildren::-moz-tree-line {
f98e9249 183 border: 1px dotted #9C9CFF;
7aa65558 184}
185
a12570b9 186tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
01fc5c11 187treechildren::-moz-tree-line(selected) {
f98e9249 188 border: 1px dotted #000000;
7aa65558 189}
7aa65558 190
191/* ::::: tree separator ::::: */
192
01fc5c11 193treechildren::-moz-tree-separator {
3d6dd546 194 margin-top: 1px;
7aa65558 195 border: 1px solid #9C9CFF;
3d6dd546 196 height: 2px;
7aa65558 197}
198
199/* ::::: drop feedback ::::: */
200
a12570b9 201tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
202tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
01fc5c11 203treechildren::-moz-tree-cell-text(dropOn) {
7aa65558 204 background-color: #008484;
205 color: #FFCF00;
206}
207
01fc5c11 208treechildren::-moz-tree-drop-feedback {
7aa65558 209 background-color: #008484;
210 width: 50px;
211 height: 2px;
f98e9249 212 -moz-margin-start: 5px;
7aa65558 213}
214
01fc5c11 215treechildren::-moz-tree-drop-feedback(selected) {
7aa65558 216 background-color: #FFCF00;
217}
218
3d6dd546 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
b1e5c9b1 229/* ::::: tree progress meter ::::: */
230
01fc5c11 231treechildren::-moz-tree-progressmeter {
b1e5c9b1 232 margin: 0px 0px;
233 border: 1px solid #FF9F00;
234 background-color: #000000;
235 color: #008484;
236}
237
01fc5c11 238treechildren::-moz-tree-progressmeter(progressUndetermined) {
b1e5c9b1 239 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
240 background-color: #008484;
241}
242
01fc5c11 243treechildren::-moz-tree-cell-text(progressmeter) {
b1e5c9b1 244 margin: 2px 4px;
245}
246
7aa65558 247/* ::::: tree columns ::::: */
248
3d6dd546 249treecol {
7aa65558 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
3d6dd546 258treecolpicker {
7aa65558 259 -moz-box-align: center;
260 -moz-box-pack: center;
261 border: 1px solid transparent;
262 background-color: #000000;
263 padding: 1px 0px;
3d6dd546 264}
7aa65558 265
266.treecol-image {
f98e9249 267 padding: 0 1px;
7aa65558 268}
269
270.treecol-text {
271 margin: 0px !important;
272 padding: 0px !important;
273}
274
cc973dd9 275treecol[hideheader="true"] {
276 border: none;
277 padding: 0;
278}
279
7aa65558 280/* ..... internal box ..... */
281
282treecol:hover:active {
283 border: 1px solid #FFCF00;
f98e9249
RK
284 padding-top: 2px;
285 padding-bottom: 0px;
286 -moz-padding-start: 5px;
287 -moz-padding-end: 3px;
7aa65558 288}
3d6dd546 289
7aa65558 290treecolpicker:hover {
291 background-color: #FFCF00;
292}
351107c9 293
7aa65558 294treecolpicker:hover:active {
295 border: 1px solid #FFCF00;
296 background-color: #FF9F00;
297}
298
299.treecol-image:hover:active {
f98e9249
RK
300 padding-top: 2px;
301 padding-bottom: 0px;
302 -moz-padding-start: 2px;
303 -moz-padding-end: 0px;
7aa65558 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
01fc5c11 322treechildren::-moz-tree-column(insertbefore) {
7aa65558 323 border-left: 1px solid #FFCF00;
324}
325
01fc5c11 326treechildren::-moz-tree-column(insertafter) {
7aa65558 327 border-right: 1px solid #FFCF00;
328}
329
330/* ::::: sort direction indicator ::::: */
331
332.treecol-sortdirection {
333 list-style-image: none;
3d6dd546 334 width: 8px; /* The image's width is 7 pixels */
7aa65558 335}
336
f98e9249 337treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"] {
7aa65558 338 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
339}
340
f98e9249
RK
341treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"] {
342 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
7aa65558 343}
344
345/* ::::: column picker ::::: */
346
731b0901 347.tree-columnpicker-icon {
7aa65558 348 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
349}
350
731b0901 351treecolpicker:hover > .tree-columnpicker-icon,
352treecolpicker:hover:active > .tree-columnpicker-icon {
7aa65558 353 list-style-image: url("chrome://global/skin/tree/columnpicker-hover.gif");
354}
355
356/* ::::: twisty ::::: */
357
01fc5c11 358treechildren::-moz-tree-twisty {
f98e9249 359 -moz-padding-end: 2px;
b1e5c9b1 360 padding-top: 1px;
361 width: 11px; /* The image's width is 11 pixels */
7aa65558 362 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
363}
3d6dd546 364
01fc5c11 365treechildren::-moz-tree-twisty(open) {
b1e5c9b1 366 width: 11px; /* The image's width is 11 pixels */
7aa65558 367 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
368}
369
01fc5c11 370treechildren::-moz-tree-indentation {
b1e5c9b1 371 width: 11px;
7aa65558 372}
373
374/* ::::: gridline style ::::: */
375
01fc5c11 376treechildren.gridlines::-moz-tree-cell {
7aa65558 377 border-right: 1px solid green;
378 border-bottom: 1px solid green;
379}
380
01fc5c11 381treechildren.gridlines::-moz-tree-row {
7aa65558 382 border: none;
ac1cdf20 383}
3d6dd546 384
f98e9249
RK
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
3d6dd546 420/* ::::: alternating background ::::: */
421
422treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
95c949c5 423 background-color: #404000;
3d6dd546 424}
425
426treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
427 background-color: #E7ADE7;
95c949c5 428 color: #000000;
3d6dd546 429}
430
431treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
432 background-color: #E7ADE7;
95c949c5 433 color: #000000;
3d6dd546 434}
a12570b9 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 {
a12570b9 448 border: 1px solid #9C9CFF;
f98e9249
RK
449 margin: 0;
450 -moz-margin-start: -4px;
a12570b9 451 padding: 1px;
452}