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 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
42 /* ===== tree.css =======================================================
43 == Styles used by the XUL tree element.
44 ======================================================================= */
46 /* ::::: tree ::::: */
50 border: 1px inset #CCD0DD;
51 background-color: #FFFFFF;
55 /* ::::: tree focusring ::::: */
57 /* deactivated, looks too bad for me in EarlyBlue
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 solid #000000;
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: #808080;
80 treechildren::-moz-tree-row(selected, focus) {
81 background-color: #336699;
84 treechildren::-moz-tree-row(current, focus) {
85 border: 1px dotted #9999CC;
88 treechildren::-moz-tree-row(selected, current, focus) {
89 border: 1px dotted #666699;
92 tree[seltype="cell"] > treechildren::-moz-tree-row,
93 tree[seltype="text"] > treechildren::-moz-tree-row {
95 background-color: transparent;
98 /* ::::: tree cells ::::: */
100 treechildren::-moz-tree-cell {
101 padding: 0px 2px 0px 2px;
104 tree[seltype="cell"] > treechildren::-moz-tree-cell-text,
105 tree[seltype="text"] > treechildren::-moz-tree-cell-text,
106 treechildren::-moz-tree-cell-text {
110 treechildren::-moz-tree-cell-text(selected) {
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 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
125 background-color: #808080;
127 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) {
131 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
132 background-color: #808080;
136 treechildren::-moz-tree-cell-text(selected, focus) {
140 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
141 background-color: #336699;
143 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
147 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
148 background-color: #336699;
152 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
153 border: 1px dotted #9999CC;
156 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
157 border: 1px dotted #9999CC;
160 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) {
161 border: 1px dotted #666699;
164 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) {
165 border: 1px dotted #666699;
168 /* ::::: lines connecting cells ::::: */
170 tree[seltype="cell"] > treechildren::-moz-tree-line,
171 tree[seltype="text"] > treechildren::-moz-tree-line,
172 treechildren::-moz-tree-line {
177 tree[seltype="cell"] > treechildren::-moz-tree-line,
178 tree[seltype="text"] > treechildren::-moz-tree-line,
179 treechildren::-moz-tree-line {
180 border: 1px dotted grey;
183 tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
184 treechildren::-moz-tree-line(selected, focus) {
185 border: 1px dotted black;
189 /* ::::: tree separator ::::: */
191 treechildren::-moz-tree-separator {
193 border: 1px outset #CCD0DD;
197 /* ::::: drop feedback ::::: */
199 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
200 tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
201 treechildren::-moz-tree-cell-text(dropOn) {
202 background-color: #336699;
206 treechildren::-moz-tree-drop-feedback {
207 background-color: #336699;
213 treechildren::-moz-tree-drop-feedback(selected) {
214 background-color: #FFFFFF;
217 /* ::::: tree checkbox ::::: */
219 treechildren::-moz-tree-checkbox {
220 list-style-image: url("chrome://global/skin/tree/checkbox.gif");
223 treechildren::-moz-tree-checkbox(checked) {
224 list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif");
227 /* ::::: tree progress meter ::::: */
229 treechildren::-moz-tree-progressmeter {
231 border: 1px inset #CCD0DD;
232 background-color: #999999;
236 treechildren::-moz-tree-progressmeter(progressUndetermined) {
237 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
238 background-color: #CCD0DD;
241 treechildren::-moz-tree-cell-text(progressmeter) {
245 /* ::::: tree columns ::::: */
248 -moz-box-align: center;
249 -moz-box-pack: center;
250 border: 1px outset #CCD0DD;
251 background-color: #CCD0DD;
257 -moz-box-align: center;
258 -moz-box-pack: center;
259 border: 1px solid transparent;
260 background-color: #CCD0DD;
269 margin: 0px !important;
270 padding: 0px !important;
273 treecol[hideheader="true"] {
278 /* ..... internal box ..... */
280 treecol:hover:active {
281 border: 1px solid #666699;
282 padding: 2px 3px 0px 5px;
285 treecolpicker:hover:active {
286 border: 1px solid #666699;
289 .treecol-image:hover:active {
290 padding: 2px 0px 0px 2px;
293 /* ::::: column drag and drop styles ::::: */
295 treecol[dragging="true"] {
296 border: 1px solid transparent;
297 background-color: #336699;
301 treecol[insertafter="true"] {
302 border-right: 1px solid #000000;
305 treecol[insertbefore="true"] {
306 border-left: 1px solid #000000;
309 treechildren::-moz-tree-column(insertbefore) {
310 border-left: 1px solid #000000;
313 treechildren::-moz-tree-column(insertafter) {
314 border-right: 1px solid #000000;
317 /* ::::: sort direction indicator ::::: */
319 .treecol-sortdirection {
320 list-style-image: none;
321 width: 8px; /* The image's width is 7 pixels */
324 .treecol-sortdirection[sortDirection="ascending"] {
325 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
328 .treecol-sortdirection[sortDirection="descending"] {
329 list-style-image: url("chrome://global/skin/tree/sort-dsc.gif");
332 /* ::::: column picker ::::: */
334 .tree-columnpicker-icon {
335 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
338 /* ::::: twisty ::::: */
340 treechildren::-moz-tree-twisty {
343 width: 11px; /* The image's width is 11 pixels */
344 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
347 treechildren::-moz-tree-twisty(open) {
348 width: 11px; /* The image's width is 11 pixels */
349 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
352 treechildren::-moz-tree-indentation {
356 /* ::::: gridline style ::::: */
358 treechildren.gridlines::-moz-tree-cell {
359 border-right: 1px solid green;
360 border-bottom: 1px solid green;
363 treechildren.gridlines::-moz-tree-row {
367 /* ::::: alternating background ::::: */
369 treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
370 background-color: #F5F7FF;
373 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
374 background-color: #A0A0A0;
377 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
378 background-color: #6699CC;
381 /* ::::: editable tree ::::: */
383 treechildren::-moz-tree-row(selected, editing) {
384 background-color: transparent;
388 treechildren::-moz-tree-cell-text(selected, editing) {
393 -moz-appearance: none;
394 border: 1px solid #336699;