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 * Joe Hewitt (hewitt@netscape.com)
23 * Dean Tessman (dean_tessman@hotmail.com)
24 * Robert Kaiser <KaiRo@KaiRo.at>
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 ::::: */
50 border: 1px inset #CCD0DD;
51 background-color: #FFFFFF;
55 /* ::::: tree focusring ::::: */
57 .focusring > .tree-stack > .tree-rows > .tree-bodybox {
58 border: 1px solid transparent;
61 .focusring:-moz-focusring > .tree-stack > .tree-rows > .tree-bodybox {
62 border: 1px solid #000000;
65 /* ::::: tree rows ::::: */
67 treechildren::-moz-tree-row {
68 border: 1px solid transparent;
69 background-color: transparent;
74 treechildren::-moz-tree-row(selected) {
75 background-color: #808080;
78 treechildren::-moz-tree-row(selected, focus) {
79 background-color: #336699;
82 treechildren::-moz-tree-row(current, focus) {
83 border: 1px dotted #9999CC;
86 treechildren::-moz-tree-row(selected, current, focus) {
87 border: 1px dotted #666699;
90 tree[seltype="cell"] > treechildren::-moz-tree-row,
91 tree[seltype="text"] > treechildren::-moz-tree-row {
93 background-color: transparent;
96 /* ::::: tree cells ::::: */
98 treechildren::-moz-tree-cell {
102 tree[seltype="cell"] > treechildren::-moz-tree-cell-text,
103 tree[seltype="text"] > treechildren::-moz-tree-cell-text,
104 treechildren::-moz-tree-cell-text {
108 treechildren::-moz-tree-cell-text(selected) {
112 tree[seltype="cell"] > treechildren::-moz-tree-cell {
113 border: 1px solid transparent;
117 tree[seltype="text"] > treechildren::-moz-tree-cell-text {
118 border: 1px solid transparent;
119 padding: 0px 1px 1px;
122 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
123 background-color: #808080;
125 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) {
129 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
130 background-color: #808080;
134 treechildren::-moz-tree-cell-text(selected, focus) {
138 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
139 background-color: #336699;
141 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
145 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
146 background-color: #336699;
150 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
151 border: 1px dotted #9999CC;
154 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
155 border: 1px dotted #9999CC;
158 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) {
159 border: 1px dotted #666699;
162 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) {
163 border: 1px dotted #666699;
166 /* ::::: lines connecting cells ::::: */
168 tree[seltype="cell"] > treechildren::-moz-tree-line,
169 tree[seltype="text"] > treechildren::-moz-tree-line,
170 treechildren::-moz-tree-line {
174 tree[seltype="cell"] > treechildren::-moz-tree-line,
175 tree[seltype="text"] > treechildren::-moz-tree-line,
176 treechildren::-moz-tree-line {
177 border: 1px dotted #CCD0DD;
180 tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
181 treechildren::-moz-tree-line(selected, focus) {
182 border: 1px dotted #666699;
185 /* ::::: tree separator ::::: */
187 treechildren::-moz-tree-separator {
189 border: 1px outset #CCD0DD;
193 /* ::::: drop feedback ::::: */
195 treechildren::-moz-tree-row(dropOn) {
196 background-color: #336699;
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) {
205 treechildren::-moz-tree-drop-feedback {
206 background-color: #336699;
209 -moz-margin-start: 5px;
212 treechildren::-moz-tree-drop-feedback(selected) {
213 background-color: #FFFFFF;
216 /* ::::: tree checkbox ::::: */
218 treechildren::-moz-tree-checkbox {
219 list-style-image: url("chrome://global/skin/tree/checkbox.gif");
222 treechildren::-moz-tree-checkbox(checked) {
223 list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif");
226 /* ::::: tree progress meter ::::: */
228 treechildren::-moz-tree-progressmeter {
230 border: 1px inset #CCD0DD;
231 background-color: #999999;
235 treechildren::-moz-tree-progressmeter(progressUndetermined) {
236 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
237 background-color: #CCD0DD;
240 treechildren::-moz-tree-cell-text(progressmeter) {
244 /* ::::: tree columns ::::: */
247 -moz-box-align: center;
248 -moz-box-pack: center;
249 border: 1px outset #CCD0DD;
250 background-color: #CCD0DD;
256 -moz-box-align: center;
257 -moz-box-pack: center;
258 border: 1px solid transparent;
259 background-color: #CCD0DD;
268 margin: 0px !important;
269 padding: 0px !important;
272 treecol[hideheader="true"] {
277 /* ..... internal box ..... */
279 treecol:hover:active {
280 border: 1px solid #666699;
283 -moz-padding-start: 5px;
284 -moz-padding-end: 3px;
287 treecolpicker:hover:active {
288 border: 1px solid #666699;
291 .treecol-image:hover:active {
294 -moz-padding-start: 2px;
295 -moz-padding-end: 0px;
298 /* ::::: column drag and drop styles ::::: */
300 treecol[dragging="true"] {
301 border: 1px solid transparent;
302 background-color: #336699;
306 treecol[insertafter="true"]:-moz-locale-dir(ltr),
307 treecol[insertbefore="true"]:-moz-locale-dir(rtl) {
308 border-right: 1px solid #000000;
311 treecol[insertafter="true"]:-moz-locale-dir(rtl),
312 treecol[insertbefore="true"]:-moz-locale-dir(ltr) {
313 border-left: 1px solid #000000;
316 treechildren::-moz-tree-column(insertbefore) {
317 -moz-border-start: 1px solid #000000;
320 treechildren::-moz-tree-column(insertafter) {
321 -moz-border-end: 1px solid #000000;
324 /* ::::: sort direction indicator ::::: */
326 .treecol-sortdirection {
327 list-style-image: none;
328 width: 8px; /* The image's width is 7 pixels */
331 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"] {
332 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
335 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"] {
336 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
339 /* ::::: column picker ::::: */
341 .tree-columnpicker-icon {
342 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
345 /* ::::: twisty ::::: */
347 treechildren::-moz-tree-twisty {
348 -moz-padding-end: 2px;
350 width: 11px; /* The image's width is 11 pixels */
351 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
354 treechildren::-moz-tree-twisty(open) {
355 width: 11px; /* The image's width is 11 pixels */
356 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
359 treechildren::-moz-tree-indentation {
363 /* ::::: gridline style ::::: */
365 treechildren.gridlines::-moz-tree-cell {
366 border-right: 1px solid green;
367 border-bottom: 1px solid green;
370 treechildren.gridlines::-moz-tree-row {
374 /* ::::: alternating background ::::: */
376 treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
377 background-color: #F5F7FF;
380 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
381 background-color: #A0A0A0;
384 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
385 background-color: #6699CC;
388 /* ::::: editable tree ::::: */
390 treechildren::-moz-tree-row(selected, editing) {
391 background-color: transparent;
395 treechildren::-moz-tree-cell-text(selected, editing) {
400 border: 1px solid #336699;
402 -moz-margin-start: -4px;