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 ::::: */
51 border: 1px solid #9C9CFF;
52 background-color: #000000;
56 /* ::::: tree focusring ::::: */
58 .focusring > .tree-stack > .tree-rows > .tree-bodybox {
59 outline: 1px solid transparent;
63 .focusring:-moz-focusring > .tree-stack > .tree-rows > .tree-bodybox {
64 outline: 1px dotted #008484;
67 /* ::::: tree rows ::::: */
69 treechildren::-moz-tree-row {
70 border: 1px solid transparent;
71 background-color: transparent;
76 treechildren::-moz-tree-row(selected) {
77 background-color: #008484;
81 treechildren::-moz-tree-row(selected, focus) {
82 background-color: #008484;
86 treechildren::-moz-tree-row(current, focus) {
87 border: 1px dotted #008484;
90 treechildren::-moz-tree-row(selected, current, focus) {
91 border: 1px dotted #FF9F00;
94 tree[seltype="cell"] > treechildren::-moz-tree-row,
95 tree[seltype="text"] > treechildren::-moz-tree-row {
97 background-color: transparent;
100 /* ::::: tree cells ::::: */
102 treechildren::-moz-tree-cell {
105 -moz-padding-start: 1px;
106 -moz-padding-end: 1px;
109 tree[seltype="cell"] > treechildren::-moz-tree-cell-text,
110 tree[seltype="text"] > treechildren::-moz-tree-cell-text,
111 treechildren::-moz-tree-cell-text {
115 tree[seltype="cell"] > treechildren::-moz-tree-cell {
116 border: 1px solid transparent;
120 tree[seltype="text"] > treechildren::-moz-tree-cell-text {
121 border: 1px solid transparent;
124 -moz-padding-start: 1px;
125 -moz-padding-end: 1px;
128 treechildren::-moz-tree-cell-text(selected) {
132 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
133 background-color: #008484;
135 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) {
139 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
140 background-color: #008484;
144 treechildren::-moz-tree-cell-text(selected, focus) {
148 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
149 background-color: #008484;
151 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
155 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
156 background-color: #008484;
160 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
161 border: 1px dotted #008484;
164 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
165 border: 1px dotted #008484;
168 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) {
169 border: 1px dotted #FF9F00;
172 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) {
173 border: 1px dotted #FF9F00;
176 /* ::::: lines connecting cells ::::: */
178 tree[seltype="cell"] > treechildren::-moz-tree-line,
179 tree[seltype="text"] > treechildren::-moz-tree-line,
180 treechildren::-moz-tree-line {
184 tree[seltype="cell"] > treechildren::-moz-tree-line,
185 tree[seltype="text"] > treechildren::-moz-tree-line,
186 treechildren::-moz-tree-line {
187 border: 1px dotted #9C9CFF;
190 tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
191 treechildren::-moz-tree-line(selected) {
192 border: 1px dotted #000000;
195 /* ::::: tree separator ::::: */
197 treechildren::-moz-tree-separator {
199 border: 1px solid #9C9CFF;
203 /* ::::: drop feedback ::::: */
205 treechildren::-moz-tree-row(dropOn) {
206 background-color: #008484;
209 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
210 tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
211 treechildren::-moz-tree-cell-text(dropOn) {
215 treechildren::-moz-tree-drop-feedback {
216 background-color: #008484;
219 -moz-margin-start: 5px;
222 treechildren::-moz-tree-drop-feedback(selected) {
223 background-color: #FFCF00;
226 /* ::::: tree checkbox ::::: */
228 treechildren::-moz-tree-checkbox {
229 list-style-image: url("chrome://global/skin/tree/checkbox.gif");
232 treechildren::-moz-tree-checkbox(checked) {
233 list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif");
236 /* ::::: tree progress meter ::::: */
238 treechildren::-moz-tree-progressmeter {
240 border: 1px solid #FF9F00;
241 background-color: #000000;
245 treechildren::-moz-tree-progressmeter(progressUndetermined) {
246 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
247 background-color: #008484;
250 treechildren::-moz-tree-cell-text(progressmeter) {
254 /* ::::: tree columns ::::: */
257 -moz-box-align: center;
258 -moz-box-pack: center;
259 border: 1px solid #FF9F00;
260 background-color: #9C9CFF;
265 treecol:first-child {
266 border-top-left-radius: 3px;
269 tree[hidecolumnpicker] treecol:last-child {
270 border-top-right-radius: 3px;
274 border-top-right-radius: 3px;
275 -moz-box-align: center;
276 -moz-box-pack: center;
277 border: 1px solid #FF9F00;
278 background-color: #000000;
287 margin: 0px !important;
288 padding: 0px !important;
291 treecol[hideheader="true"] {
296 /* ..... internal box ..... */
298 treecol:hover:active {
299 border: 1px solid #FFCF00;
302 -moz-padding-start: 5px;
303 -moz-padding-end: 3px;
306 treecolpicker:hover {
307 background-color: #FFCF00;
310 treecolpicker:hover:active {
311 border: 1px solid #FFCF00;
312 background-color: #FF9F00;
315 .treecol-image:hover:active {
318 -moz-padding-start: 2px;
319 -moz-padding-end: 0px;
322 /* ::::: column drag and drop styles ::::: */
324 treecol[dragging="true"] {
325 border: 1px solid transparent;
326 background-color: #008484;
330 treecol[insertafter="true"]:-moz-locale-dir(ltr),
331 treecol[insertbefore="true"]:-moz-locale-dir(rtl) {
332 border-right: 1px solid #FFCF00;
335 treecol[insertafter="true"]:-moz-locale-dir(rtl),
336 treecol[insertbefore="true"]:-moz-locale-dir(ltr) {
337 border-left: 1px solid #FFCF00;
340 treechildren::-moz-tree-column(insertbefore) {
341 -moz-border-start: 1px solid #FFCF00;
344 treechildren::-moz-tree-column(insertafter) {
345 -moz-border-end: 1px solid #FFCF00;
348 /* ::::: sort direction indicator ::::: */
350 .treecol-sortdirection {
351 list-style-image: none;
352 width: 8px; /* The image's width is 7 pixels */
355 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"] {
356 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
359 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"] {
360 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
363 /* ::::: column picker ::::: */
365 .tree-columnpicker-icon {
366 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
369 treecolpicker:hover > .tree-columnpicker-icon,
370 treecolpicker:hover:active > .tree-columnpicker-icon {
371 list-style-image: url("chrome://global/skin/tree/columnpicker-hover.gif");
374 /* ::::: twisty ::::: */
376 treechildren::-moz-tree-twisty {
377 -moz-padding-end: 1px;
379 width: 11px; /* The image's width is 11 pixels */
380 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
383 treechildren::-moz-tree-twisty(open) {
384 width: 11px; /* The image's width is 11 pixels */
385 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
388 treechildren::-moz-tree-indentation {
392 /* ::::: gridline style ::::: */
394 treechildren.gridlines::-moz-tree-cell {
395 border-right: 1px solid #9C9CFF;
396 border-bottom: 1px solid #9C9CFF;
399 treechildren.gridlines::-moz-tree-row {
403 /* ::::: alternating background ::::: */
405 treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
406 background-color: #404000;
409 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
410 background-color: #008484;
414 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
415 background-color: #008484;
419 /* ::::: editable tree ::::: */
421 treechildren::-moz-tree-row(selected, editing) {
422 background-color: transparent;
426 treechildren::-moz-tree-cell-text(selected, editing) {
431 border: 1px solid #9C9CFF;
433 -moz-margin-start: -4px;