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: 1px dotted #008484;
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: 1px;
105 -moz-padding-end: 1px;
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;
119 tree[seltype="text"] > treechildren::-moz-tree-cell-text {
120 border: 1px solid transparent;
123 -moz-padding-start: 1px;
124 -moz-padding-end: 1px;
127 treechildren::-moz-tree-cell-text(selected) {
131 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
132 background-color: #008484;
134 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) {
138 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
139 background-color: #008484;
143 treechildren::-moz-tree-cell-text(selected, focus) {
147 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
148 background-color: #008484;
150 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
154 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
155 background-color: #008484;
159 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
160 border: 1px dotted #FF9F00;
163 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
164 border: 1px dotted #FF9F00;
167 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) {
168 border: 1px dotted #FF9F00;
171 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) {
172 border: 1px dotted #FF9F00;
175 /* ::::: lines connecting cells ::::: */
177 tree[seltype="cell"] > treechildren::-moz-tree-line,
178 tree[seltype="text"] > treechildren::-moz-tree-line,
179 treechildren::-moz-tree-line {
183 tree[seltype="cell"] > treechildren::-moz-tree-line,
184 tree[seltype="text"] > treechildren::-moz-tree-line,
185 treechildren::-moz-tree-line {
186 border: 1px dotted #9C9CFF;
189 tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
190 treechildren::-moz-tree-line(selected) {
191 border: 1px dotted #000000;
194 /* ::::: tree separator ::::: */
196 treechildren::-moz-tree-separator {
198 border: 1px solid #9C9CFF;
202 /* ::::: drop feedback ::::: */
204 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
205 tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
206 treechildren::-moz-tree-cell-text(dropOn) {
207 background-color: #008484;
211 treechildren::-moz-tree-drop-feedback {
212 background-color: #008484;
215 -moz-margin-start: 5px;
218 treechildren::-moz-tree-drop-feedback(selected) {
219 background-color: #FFCF00;
222 /* ::::: tree checkbox ::::: */
224 treechildren::-moz-tree-checkbox {
225 list-style-image: url("chrome://global/skin/tree/checkbox.gif");
228 treechildren::-moz-tree-checkbox(checked) {
229 list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif");
232 /* ::::: tree progress meter ::::: */
234 treechildren::-moz-tree-progressmeter {
236 border: 1px solid #FF9F00;
237 background-color: #000000;
241 treechildren::-moz-tree-progressmeter(progressUndetermined) {
242 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
243 background-color: #008484;
246 treechildren::-moz-tree-cell-text(progressmeter) {
250 /* ::::: tree columns ::::: */
253 -moz-box-align: center;
254 -moz-box-pack: center;
255 border: 1px solid #FF9F00;
256 background-color: #9C9CFF;
261 treecol:first-child {
262 -moz-border-radius-topleft: 3px;
266 -moz-border-radius-topright: 3px;
270 -moz-border-radius-topright: 3px;
271 -moz-box-align: center;
272 -moz-box-pack: center;
273 border: 1px solid transparent;
274 background-color: #000000;
283 margin: 0px !important;
284 padding: 0px !important;
287 treecol[hideheader="true"] {
292 /* ..... internal box ..... */
294 treecol:hover:active {
295 border: 1px solid #FFCF00;
298 -moz-padding-start: 5px;
299 -moz-padding-end: 3px;
302 treecolpicker:hover {
303 background-color: #FFCF00;
306 treecolpicker:hover:active {
307 border: 1px solid #FFCF00;
308 background-color: #FF9F00;
311 .treecol-image:hover:active {
314 -moz-padding-start: 2px;
315 -moz-padding-end: 0px;
318 /* ::::: column drag and drop styles ::::: */
320 treecol[dragging="true"] {
321 border: 1px solid transparent;
322 background-color: #008484;
326 treecol[insertafter="true"] {
327 border-right: 1px solid #FFCF00;
330 treecol[insertbefore="true"] {
331 border-left: 1px solid #FFCF00;
334 treechildren::-moz-tree-column(insertbefore) {
335 border-left: 1px solid #FFCF00;
338 treechildren::-moz-tree-column(insertafter) {
339 border-right: 1px solid #FFCF00;
342 /* ::::: sort direction indicator ::::: */
344 .treecol-sortdirection {
345 list-style-image: none;
346 width: 8px; /* The image's width is 7 pixels */
349 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"] {
350 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
353 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"] {
354 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
357 /* ::::: column picker ::::: */
359 .tree-columnpicker-icon {
360 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
363 treecolpicker:hover > .tree-columnpicker-icon,
364 treecolpicker:hover:active > .tree-columnpicker-icon {
365 list-style-image: url("chrome://global/skin/tree/columnpicker-hover.gif");
368 /* ::::: twisty ::::: */
370 treechildren::-moz-tree-twisty {
371 -moz-padding-end: 1px;
373 width: 11px; /* The image's width is 11 pixels */
374 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
377 treechildren::-moz-tree-twisty(open) {
378 width: 11px; /* The image's width is 11 pixels */
379 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
382 treechildren::-moz-tree-indentation {
386 /* ::::: gridline style ::::: */
388 treechildren.gridlines::-moz-tree-cell {
389 border-right: 1px solid #9C9CFF;
390 border-bottom: 1px solid #9C9CFF;
393 treechildren.gridlines::-moz-tree-row {
397 /* ::::: Name (what is that?) ::::: */
399 treechildren::-moz-tree-image(Name) {
400 -moz-padding-end: 3px;
403 treechildren::-moz-tree-image(Name) {
405 list-style-image: url("chrome://global/skin/filepicker/file.gif") !important;
408 treechildren::-moz-tree-image(Name, container) {
409 list-style-image: url("chrome://global/skin/filepicker/dir-closed.gif") !important;
412 treechildren::-moz-tree-image(Name, open) {
413 list-style-image: url("chrome://global/skin/filepicker/dir-open.gif") !important;
416 treechildren::-moz-tree-image(Name, separator) {
417 list-style-image: none;
418 width: 0px !important;
419 height: 0px !important;
423 treechildren::-moz-tree-cell-text(Name, separator) {
428 treechildren::-moz-tree-cell-text(Name, separator, selected, focus) {
432 /* ::::: alternating background ::::: */
434 treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
435 background-color: #404000;
438 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
439 background-color: #008484;
443 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
444 background-color: #008484;
448 /* ::::: editable tree ::::: */
450 treechildren::-moz-tree-row(selected, editing) {
451 background-color: transparent;
455 treechildren::-moz-tree-cell-text(selected, editing) {
460 border: 1px solid #9C9CFF;
462 -moz-margin-start: -4px;