becca3544353da9958d772e9d9d0bb73cc0db493
[themes.git] / EarlyBlue / global / tree.css
1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3  *
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/
8  *
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
12  * License.
13  *
14  * The Original Code is "Classic" theme of mozilla.org code.
15  *
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.
20  *
21  * Contributor(s):
22  *   Robert Kaiser <KaiRo@KaiRo.at>
23  *   Joe Hewitt (hewitt@netscape.com)                                           
24  *   Dean Tessman (dean_tessman@hotmail.com)
25  *
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.
37  *
38  * ***** END LICENSE BLOCK ***** */
39
40 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
41
42 /* ===== tree.css =======================================================
43   == Styles used by the XUL tree element.
44   ======================================================================= */
45
46 /* ::::: tree ::::: */
47
48 tree {
49   border-spacing: 0px;     
50   border: 1px inset #CCD0DD;
51   background-color: #FFFFFF;
52   color: #000000;   
53 }
54
55 /* ::::: tree focusring ::::: */
56
57 /* deactivated, looks too bad for me in EarlyBlue
58 .focusring > .tree-rows > .tree-bodybox {
59   border: 1px solid transparent;
60 }
61
62 .focusring:focus > .tree-rows > .tree-bodybox {
63   border: 1px solid #000000;
64 }
65 */
66
67 /* ::::: tree rows ::::: */
68
69 treechildren::-moz-tree-row {
70   border: 1px solid transparent;
71   background-color: transparent;
72   min-height: 18px;
73   height: 1.3em;
74 }
75
76 treechildren::-moz-tree-row(selected) {
77   background-color: #808080;
78 }
79
80 treechildren::-moz-tree-row(selected, focus) {
81   background-color: #336699;
82 }
83
84 treechildren::-moz-tree-row(current, focus) {
85   border: 1px dotted #9999CC;
86 }
87
88 treechildren::-moz-tree-row(selected, current, focus) {
89   border: 1px dotted #666699;
90 }
91
92 tree[selstyle="primary"] > treechildren::-moz-tree-row {
93   border: none;
94   background-color: transparent;
95 }
96
97 /* ::::: tree cells ::::: */
98
99 treechildren::-moz-tree-cell {
100   padding: 0px 2px 0px 2px;
101 }
102
103 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text,
104 treechildren::-moz-tree-cell-text {
105   color: inherit;
106 }
107
108 treechildren::-moz-tree-cell-text(selected) {
109   color: #FFFFFF;
110 }
111
112 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary) {
113   border: 2px solid transparent;
114   padding: 0px 1px 1px 1px;
115 }
116
117 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected) {
118   background-color: #808080;
119   color: #FFFFFF;
120 }
121
122 treechildren::-moz-tree-cell-text(selected, focus) {
123   color: #FFFFFF;
124 }
125
126 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, focus) {
127   background-color: #336699;
128   color: #FFFFFF;
129 }
130
131 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, current, focus) {
132   border: 1px dotted #9999CC;
133 }
134
135 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, current, focus) {
136   border: 1px dotted #666699;
137 }
138
139 /* ::::: lines connecting cells ::::: */
140
141 tree[selstyle="primary"] > treechildren::-moz-tree-line,
142 treechildren::-moz-tree-line {
143   visibility: hidden;
144 }
145
146 /*
147 treechildren::-moz-tree-line {
148   border: 1px dotted grey;
149 }
150
151 treechildren::-moz-tree-line(selected, focus) {
152   border: 1px dotted black;
153 }
154 */
155
156 /* ::::: tree separator ::::: */
157
158 treechildren::-moz-tree-separator {
159   border: 1px outset #CCD0DD;
160 }
161
162 /* ::::: drop feedback ::::: */
163
164 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, dropOn),
165 treechildren::-moz-tree-cell-text(dropOn) {
166   background-color: #336699;
167   color: #FFFFFF;
168 }
169
170 treechildren::-moz-tree-drop-feedback {
171   background-color: #336699;
172   width: 50px;
173   height: 2px;
174   margin-left: 5px;
175 }
176
177 treechildren::-moz-tree-drop-feedback(selected) {
178   background-color: #FFFFFF;
179 }
180
181 /* ::::: tree progress meter ::::: */
182
183 treechildren::-moz-tree-progressmeter {
184   margin: 0px 0px;
185   border: 1px inset #CCD0DD;
186   background-color: #999999;
187   color: #6699CC;
188 }
189
190 treechildren::-moz-tree-progressmeter(progressUndetermined) {
191   list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
192   background-color: #CCD0DD;
193 }
194
195 treechildren::-moz-tree-cell-text(progressmeter) {
196   margin: 2px 4px;
197 }
198
199 /* ::::: tree columns ::::: */
200
201 treecol { 
202   -moz-box-align: center;
203   -moz-box-pack: center;
204   border: 1px outset #CCD0DD;
205   background-color: #CCD0DD;
206   color: #000000;
207   padding: 1px 4px;
208 }
209
210 treecolpicker { 
211   -moz-box-align: center;
212   -moz-box-pack: center;
213   border: 1px solid transparent;
214   background-color: #CCD0DD;
215   padding: 1px 0px;
216 }
217
218 .treecol-image {
219   padding: 1px;
220 }
221   
222 .treecol-text {
223   margin: 0px !important;
224   padding: 0px !important;
225 }
226
227 treecol[hideheader="true"] {
228   border: none;
229   padding: 0;
230 }
231
232 /* ..... internal box ..... */
233
234 treecol:hover:active {
235   border: 1px solid #666699;
236   padding: 2px 3px 0px 5px;
237 }
238
239 treecolpicker:hover:active {
240   border: 1px solid #666699;
241 }
242
243 .treecol-image:hover:active {
244   padding: 2px 0px 0px 2px;
245 }
246
247 /* ::::: column drag and drop styles ::::: */
248
249 treecol[dragging="true"] {
250   border: 1px solid transparent;
251   background-color: #336699;
252   color: #000000;
253 }
254
255 treecol[insertafter="true"] {
256   border-right: 1px solid #000000;
257 }
258
259 treecol[insertbefore="true"] {
260   border-left: 1px solid #000000;
261 }
262
263 treechildren::-moz-tree-column(insertbefore) {
264   border-left: 1px solid #000000;
265 }
266
267 treechildren::-moz-tree-column(insertafter) {
268   border-right: 1px solid #000000;
269 }
270
271 /* ::::: sort direction indicator :::::  */
272
273 .treecol-sortdirection {
274   list-style-image: none;
275 }
276
277 .sortDirectionIndicator[sortDirection="ascending"] .treecol-sortdirection {
278   list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
279 }
280
281 .sortDirectionIndicator[sortDirection="descending"] .treecol-sortdirection {
282   list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
283 }
284
285 /* ::::: column picker :::::  */
286
287 .tree-columnpicker-icon {
288   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
289 }
290
291 /* ::::: twisty :::::  */
292
293 treechildren::-moz-tree-twisty {
294   padding-right: 2px;
295   padding-top: 1px;
296   width: 11px; /* The image's width is 11 pixels */
297   list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
298 }
299   
300 treechildren::-moz-tree-twisty(open) {
301   width: 11px; /* The image's width is 11 pixels */
302   list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
303 }
304
305 treechildren::-moz-tree-indentation {
306   width: 11px;
307 }
308
309 /* ::::: gridline style ::::: */
310
311 treechildren.gridlines::-moz-tree-cell {
312   border-right: 1px solid green;
313   border-bottom: 1px solid green;
314 }
315
316 treechildren.gridlines::-moz-tree-row {
317   border: none;
318 }