1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
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/
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
14 * The Original Code is "Classic" theme of mozilla.org code.
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.
22 * Robert Kaiser <KaiRo@KaiRo.at>
23 * Joe Hewitt (hewitt@netscape.com)
24 * Dean Tessman (dean_tessman@hotmail.com)
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.
38 * ***** END LICENSE BLOCK ***** */
40 /* ===== tree.css =======================================================
41 == Styles used by the XUL tree element.
42 ======================================================================= */
44 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
46 /* ::::: tree ::::: */
49 -moz-border-radius: 5px;
51 border: 1px solid #9C9CFF;
52 background-color: #000000;
56 /* ::::: tree focusring ::::: */
58 .focusring > .tree-stack > .tree-rows > .tree-bodybox {
59 border: 1px solid transparent;
62 .focusring:focus > .tree-stack > .tree-rows > .tree-bodybox {
63 border-color: #FFCF00;
66 /* ::::: tree rows ::::: */
68 treechildren::-moz-tree-row {
69 border: 1px solid transparent;
70 background-color: transparent;
75 treechildren::-moz-tree-row(selected) {
76 background-color: #008484;
80 treechildren::-moz-tree-row(selected, focus) {
81 background-color: #008484;
85 treechildren::-moz-tree-row(current, focus) {
86 border: 1px dotted #FF9F00;
89 treechildren::-moz-tree-row(selected, current, focus) {
90 border: 1px dotted #FF9F00;
93 tree[seltype="cell"] > treechildren::-moz-tree-row,
94 tree[seltype="text"] > treechildren::-moz-tree-row {
96 background-color: transparent;
99 /* ::::: tree cells ::::: */
101 treechildren::-moz-tree-cell {
104 -moz-padding-start: 2px;
105 -moz-padding-end: 0px;
108 tree[seltype="cell"] > treechildren::-moz-tree-cell-text,
109 tree[seltype="text"] > treechildren::-moz-tree-cell-text,
110 treechildren::-moz-tree-cell-text {
114 tree[seltype="cell"] > treechildren::-moz-tree-cell {
115 border: 1px solid transparent;
116 padding: 0px 1px 0px 1px;
119 tree[seltype="text"] > treechildren::-moz-tree-cell-text {
120 border: 1px solid transparent;
121 padding: 0px 1px 1px 1px;
124 treechildren::-moz-tree-cell-text(selected) {
128 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
129 background-color: #008484;
131 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) {
135 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
136 background-color: #008484;
140 treechildren::-moz-tree-cell-text(selected, focus) {
144 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
145 background-color: #008484;
147 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
151 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
152 background-color: #008484;
156 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
157 border: 1px dotted #FF9F00;
160 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
161 border: 1px dotted #FF9F00;
164 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) {
165 border: 1px dotted #FF9F00;
168 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) {
169 border: 1px dotted #FF9F00;
172 /* ::::: lines connecting cells ::::: */
174 tree[seltype="cell"] > treechildren::-moz-tree-line,
175 tree[seltype="text"] > treechildren::-moz-tree-line,
176 treechildren::-moz-tree-line {
180 tree[seltype="cell"] > treechildren::-moz-tree-line,
181 tree[seltype="text"] > treechildren::-moz-tree-line,
182 treechildren::-moz-tree-line {
183 border: 1px dotted #9C9CFF;
186 tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
187 treechildren::-moz-tree-line(selected) {
188 border: 1px dotted #000000;
191 /* ::::: tree separator ::::: */
193 treechildren::-moz-tree-separator {
195 border: 1px solid #9C9CFF;
199 /* ::::: drop feedback ::::: */
201 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
202 tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
203 treechildren::-moz-tree-cell-text(dropOn) {
204 background-color: #008484;
208 treechildren::-moz-tree-drop-feedback {
209 background-color: #008484;
212 -moz-margin-start: 5px;
215 treechildren::-moz-tree-drop-feedback(selected) {
216 background-color: #FFCF00;
219 /* ::::: tree checkbox ::::: */
221 treechildren::-moz-tree-checkbox {
222 list-style-image: url("chrome://global/skin/tree/checkbox.gif");
225 treechildren::-moz-tree-checkbox(checked) {
226 list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif");
229 /* ::::: tree progress meter ::::: */
231 treechildren::-moz-tree-progressmeter {
233 border: 1px solid #FF9F00;
234 background-color: #000000;
238 treechildren::-moz-tree-progressmeter(progressUndetermined) {
239 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
240 background-color: #008484;
243 treechildren::-moz-tree-cell-text(progressmeter) {
247 /* ::::: tree columns ::::: */
250 -moz-box-align: center;
251 -moz-box-pack: center;
252 border: 1px solid #FF9F00;
253 background-color: #9C9CFF;
259 -moz-box-align: center;
260 -moz-box-pack: center;
261 border: 1px solid transparent;
262 background-color: #000000;
271 margin: 0px !important;
272 padding: 0px !important;
275 treecol[hideheader="true"] {
280 /* ..... internal box ..... */
282 treecol:hover:active {
283 border: 1px solid #FFCF00;
286 -moz-padding-start: 5px;
287 -moz-padding-end: 3px;
290 treecolpicker:hover {
291 background-color: #FFCF00;
294 treecolpicker:hover:active {
295 border: 1px solid #FFCF00;
296 background-color: #FF9F00;
299 .treecol-image:hover:active {
302 -moz-padding-start: 2px;
303 -moz-padding-end: 0px;
306 /* ::::: column drag and drop styles ::::: */
308 treecol[dragging="true"] {
309 border: 1px solid transparent;
310 background-color: #008484;
314 treecol[insertafter="true"] {
315 border-right: 1px solid #FFCF00;
318 treecol[insertbefore="true"] {
319 border-left: 1px solid #FFCF00;
322 treechildren::-moz-tree-column(insertbefore) {
323 border-left: 1px solid #FFCF00;
326 treechildren::-moz-tree-column(insertafter) {
327 border-right: 1px solid #FFCF00;
330 /* ::::: sort direction indicator ::::: */
332 .treecol-sortdirection {
333 list-style-image: none;
334 width: 8px; /* The image's width is 7 pixels */
337 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"] {
338 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
341 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"] {
342 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
345 /* ::::: column picker ::::: */
347 .tree-columnpicker-icon {
348 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
351 treecolpicker:hover > .tree-columnpicker-icon,
352 treecolpicker:hover:active > .tree-columnpicker-icon {
353 list-style-image: url("chrome://global/skin/tree/columnpicker-hover.gif");
356 /* ::::: twisty ::::: */
358 treechildren::-moz-tree-twisty {
359 -moz-padding-end: 2px;
361 width: 11px; /* The image's width is 11 pixels */
362 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
365 treechildren::-moz-tree-twisty(open) {
366 width: 11px; /* The image's width is 11 pixels */
367 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
370 treechildren::-moz-tree-indentation {
374 /* ::::: gridline style ::::: */
376 treechildren.gridlines::-moz-tree-cell {
377 border-right: 1px solid green;
378 border-bottom: 1px solid green;
381 treechildren.gridlines::-moz-tree-row {
385 /* ::::: Name (what is that?) ::::: */
387 treechildren::-moz-tree-image(Name) {
388 -moz-padding-end: 2px;
391 treechildren::-moz-tree-image(Name) {
393 list-style-image: url("chrome://global/skin/filepicker/file.gif") !important;
396 treechildren::-moz-tree-image(Name, container) {
397 list-style-image: url("chrome://global/skin/filepicker/dir-closed.gif") !important;
400 treechildren::-moz-tree-image(Name, open) {
401 list-style-image: url("chrome://global/skin/filepicker/dir-open.gif") !important;
404 treechildren::-moz-tree-image(Name, separator) {
405 list-style-image: none;
406 width: 0px !important;
407 height: 0px !important;
411 treechildren::-moz-tree-cell-text(Name, separator) {
416 treechildren::-moz-tree-cell-text(Name, separator, selected, focus) {
420 /* ::::: alternating background ::::: */
422 treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
423 background-color: #404000;
426 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
427 background-color: #E7ADE7;
431 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
432 background-color: #E7ADE7;
436 /* ::::: editable tree ::::: */
438 treechildren::-moz-tree-row(selected, editing) {
439 background-color: transparent;
443 treechildren::-moz-tree-cell-text(selected, editing) {
448 border: 1px solid #9C9CFF;
450 -moz-margin-start: -4px;