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