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-rows > .tree-bodybox {
59 border: 1px solid transparent;
62 .focusring:focus > .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[selstyle="primary"] > treechildren::-moz-tree-row {
94 background-color: transparent;
97 /* ::::: tree cells ::::: */
99 treechildren::-moz-tree-cell {
100 padding: 0px 2px 0px 2px;
103 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text,
104 treechildren::-moz-tree-cell-text {
108 treechildren::-moz-tree-cell-text(selected) {
112 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary) {
113 border: 1px solid transparent;
114 padding: 0px 1px 1px 1px;
117 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected) {
118 background-color: #808080;
122 treechildren::-moz-tree-cell-text(selected, focus) {
126 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, focus) {
127 background-color: #336699;
131 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, current, focus) {
132 border: 1px dotted #9999CC;
135 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, current, focus) {
136 border: 1px dotted #666699;
139 /* ::::: lines connecting cells ::::: */
141 tree[selstyle="primary"] > treechildren::-moz-tree-line,
142 treechildren::-moz-tree-line {
147 treechildren::-moz-tree-line {
148 border: 1px dotted grey;
151 treechildren::-moz-tree-line(selected, focus) {
152 border: 1px dotted black;
156 /* ::::: tree separator ::::: */
158 treechildren::-moz-tree-separator {
160 border: 1px outset #CCD0DD;
164 /* ::::: drop feedback ::::: */
166 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, dropOn),
167 treechildren::-moz-tree-cell-text(dropOn) {
168 background-color: #336699;
172 treechildren::-moz-tree-drop-feedback {
173 background-color: #336699;
179 treechildren::-moz-tree-drop-feedback(selected) {
180 background-color: #FFFFFF;
183 /* ::::: tree checkbox ::::: */
185 treechildren::-moz-tree-checkbox {
186 list-style-image: url("chrome://global/skin/tree/checkbox.gif");
189 treechildren::-moz-tree-checkbox(checked) {
190 list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif");
193 /* ::::: tree progress meter ::::: */
195 treechildren::-moz-tree-progressmeter {
197 border: 1px inset #CCD0DD;
198 background-color: #999999;
202 treechildren::-moz-tree-progressmeter(progressUndetermined) {
203 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
204 background-color: #CCD0DD;
207 treechildren::-moz-tree-cell-text(progressmeter) {
211 /* ::::: tree columns ::::: */
214 -moz-box-align: center;
215 -moz-box-pack: center;
216 border: 1px outset #CCD0DD;
217 background-color: #CCD0DD;
223 -moz-box-align: center;
224 -moz-box-pack: center;
225 border: 1px solid transparent;
226 background-color: #CCD0DD;
235 margin: 0px !important;
236 padding: 0px !important;
239 treecol[hideheader="true"] {
244 /* ..... internal box ..... */
246 treecol:hover:active {
247 border: 1px solid #666699;
248 padding: 2px 3px 0px 5px;
251 treecolpicker:hover:active {
252 border: 1px solid #666699;
255 .treecol-image:hover:active {
256 padding: 2px 0px 0px 2px;
259 /* ::::: column drag and drop styles ::::: */
261 treecol[dragging="true"] {
262 border: 1px solid transparent;
263 background-color: #336699;
267 treecol[insertafter="true"] {
268 border-right: 1px solid #000000;
271 treecol[insertbefore="true"] {
272 border-left: 1px solid #000000;
275 treechildren::-moz-tree-column(insertbefore) {
276 border-left: 1px solid #000000;
279 treechildren::-moz-tree-column(insertafter) {
280 border-right: 1px solid #000000;
283 /* ::::: sort direction indicator ::::: */
285 .treecol-sortdirection {
286 list-style-image: none;
287 width: 8px; /* The image's width is 7 pixels */
290 .treecol-sortdirection[sortDirection="ascending"] {
291 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
294 .treecol-sortdirection[sortDirection="descending"] {
295 list-style-image: url("chrome://global/skin/tree/sort-dsc.gif");
298 /* ::::: column picker ::::: */
300 .tree-columnpicker-icon {
301 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
304 /* ::::: twisty ::::: */
306 treechildren::-moz-tree-twisty {
309 width: 11px; /* The image's width is 11 pixels */
310 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
313 treechildren::-moz-tree-twisty(open) {
314 width: 11px; /* The image's width is 11 pixels */
315 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
318 treechildren::-moz-tree-indentation {
322 /* ::::: gridline style ::::: */
324 treechildren.gridlines::-moz-tree-cell {
325 border-right: 1px solid green;
326 border-bottom: 1px solid green;
329 treechildren.gridlines::-moz-tree-row {
333 /* ::::: alternating background ::::: */
335 treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
336 background-color: #F5F7FF;
339 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
340 background-color: #A0A0A0;
343 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
344 background-color: #6699CC;