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