128000f4 |
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> |
76983f4c |
23 | * Joe Hewitt (hewitt@netscape.com) |
459f2165 |
24 | * Dean Tessman (dean_tessman@hotmail.com) |
128000f4 |
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"); |
f6e0a33f |
41 | |
e1597424 |
42 | /* ===== tree.css ======================================================= |
43 | == Styles used by the XUL tree element. |
44 | ======================================================================= */ |
f6e0a33f |
45 | |
e1597424 |
46 | /* ::::: tree ::::: */ |
47 | |
48 | tree { |
76983f4c |
49 | border-spacing: 0px; |
e1597424 |
50 | border: 1px inset #CCD0DD; |
51 | background-color: #FFFFFF; |
76983f4c |
52 | color: #000000; |
e1597424 |
53 | } |
54 | |
b618d1fd |
55 | /* ::::: tree focusring ::::: */ |
56 | |
24cb9c5b |
57 | /* deactivated, looks too bad for me in EarlyBlue |
b618d1fd |
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 | |
e1597424 |
67 | /* ::::: tree rows ::::: */ |
68 | |
a1f525f0 |
69 | treechildren::-moz-tree-row { |
e1597424 |
70 | border: 1px solid transparent; |
b618d1fd |
71 | background-color: transparent; |
f2450795 |
72 | min-height: 18px; |
73 | height: 1.3em; |
e1597424 |
74 | } |
75 | |
a1f525f0 |
76 | treechildren::-moz-tree-row(selected) { |
e1597424 |
77 | background-color: #808080; |
78 | } |
79 | |
a1f525f0 |
80 | treechildren::-moz-tree-row(selected, focus) { |
e1597424 |
81 | background-color: #336699; |
82 | } |
83 | |
a1f525f0 |
84 | treechildren::-moz-tree-row(current, focus) { |
e1597424 |
85 | border: 1px dotted #9999CC; |
86 | } |
87 | |
a1f525f0 |
88 | treechildren::-moz-tree-row(selected, current, focus) { |
459f2165 |
89 | border: 1px dotted #666699; |
90 | } |
91 | |
aa277310 |
92 | tree[selstyle="primary"] > treechildren::-moz-tree-row { |
93 | border: none; |
94 | background-color: transparent; |
95 | } |
96 | |
e1597424 |
97 | /* ::::: tree cells ::::: */ |
98 | |
a1f525f0 |
99 | treechildren::-moz-tree-cell { |
e1597424 |
100 | padding: 0px 2px 0px 2px; |
101 | } |
102 | |
a1f525f0 |
103 | tree[selstyle="primary"] > treechildren::-moz-tree-cell-text, |
104 | treechildren::-moz-tree-cell-text { |
e1597424 |
105 | color: inherit; |
e1597424 |
106 | } |
107 | |
a1f525f0 |
108 | treechildren::-moz-tree-cell-text(selected) { |
e1597424 |
109 | color: #FFFFFF; |
110 | } |
111 | |
aa277310 |
112 | tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary) { |
f2d09376 |
113 | border: 1px solid transparent; |
aa277310 |
114 | padding: 0px 1px 1px 1px; |
115 | } |
116 | |
a1f525f0 |
117 | tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected) { |
b618d1fd |
118 | background-color: #808080; |
119 | color: #FFFFFF; |
120 | } |
121 | |
a1f525f0 |
122 | treechildren::-moz-tree-cell-text(selected, focus) { |
e1597424 |
123 | color: #FFFFFF; |
124 | } |
125 | |
a1f525f0 |
126 | tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, focus) { |
b618d1fd |
127 | background-color: #336699; |
128 | color: #FFFFFF; |
129 | } |
130 | |
a1f525f0 |
131 | tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, current, focus) { |
b618d1fd |
132 | border: 1px dotted #9999CC; |
133 | } |
134 | |
a1f525f0 |
135 | tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, current, focus) { |
b618d1fd |
136 | border: 1px dotted #666699; |
137 | } |
138 | |
e1597424 |
139 | /* ::::: lines connecting cells ::::: */ |
140 | |
a1f525f0 |
141 | tree[selstyle="primary"] > treechildren::-moz-tree-line, |
142 | treechildren::-moz-tree-line { |
e1597424 |
143 | visibility: hidden; |
144 | } |
145 | |
146 | /* |
a1f525f0 |
147 | treechildren::-moz-tree-line { |
e1597424 |
148 | border: 1px dotted grey; |
149 | } |
150 | |
a1f525f0 |
151 | treechildren::-moz-tree-line(selected, focus) { |
e1597424 |
152 | border: 1px dotted black; |
153 | } |
154 | */ |
155 | |
156 | /* ::::: tree separator ::::: */ |
157 | |
a1f525f0 |
158 | treechildren::-moz-tree-separator { |
76983f4c |
159 | margin-top: 1px; |
e1597424 |
160 | border: 1px outset #CCD0DD; |
76983f4c |
161 | height: 2px; |
e1597424 |
162 | } |
163 | |
164 | /* ::::: drop feedback ::::: */ |
165 | |
a1f525f0 |
166 | tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, dropOn), |
167 | treechildren::-moz-tree-cell-text(dropOn) { |
e1597424 |
168 | background-color: #336699; |
169 | color: #FFFFFF; |
170 | } |
171 | |
a1f525f0 |
172 | treechildren::-moz-tree-drop-feedback { |
e1597424 |
173 | background-color: #336699; |
174 | width: 50px; |
175 | height: 2px; |
176 | margin-left: 5px; |
177 | } |
178 | |
a1f525f0 |
179 | treechildren::-moz-tree-drop-feedback(selected) { |
e1597424 |
180 | background-color: #FFFFFF; |
181 | } |
182 | |
76983f4c |
183 | /* ::::: tree checkbox ::::: */ |
184 | |
185 | treechildren::-moz-tree-checkbox { |
186 | list-style-image: url("chrome://global/skin/tree/checkbox.gif"); |
187 | } |
188 | |
189 | treechildren::-moz-tree-checkbox(checked) { |
190 | list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif"); |
191 | } |
192 | |
f2450795 |
193 | /* ::::: tree progress meter ::::: */ |
194 | |
a1f525f0 |
195 | treechildren::-moz-tree-progressmeter { |
f2450795 |
196 | margin: 0px 0px; |
197 | border: 1px inset #CCD0DD; |
198 | background-color: #999999; |
199 | color: #6699CC; |
200 | } |
201 | |
a1f525f0 |
202 | treechildren::-moz-tree-progressmeter(progressUndetermined) { |
f2450795 |
203 | list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif"); |
204 | background-color: #CCD0DD; |
205 | } |
206 | |
a1f525f0 |
207 | treechildren::-moz-tree-cell-text(progressmeter) { |
f2450795 |
208 | margin: 2px 4px; |
209 | } |
210 | |
e1597424 |
211 | /* ::::: tree columns ::::: */ |
212 | |
76983f4c |
213 | treecol { |
e1597424 |
214 | -moz-box-align: center; |
215 | -moz-box-pack: center; |
216 | border: 1px outset #CCD0DD; |
217 | background-color: #CCD0DD; |
218 | color: #000000; |
219 | padding: 1px 4px; |
220 | } |
221 | |
76983f4c |
222 | treecolpicker { |
e1597424 |
223 | -moz-box-align: center; |
224 | -moz-box-pack: center; |
225 | border: 1px solid transparent; |
226 | background-color: #CCD0DD; |
227 | padding: 1px 0px; |
228 | } |
229 | |
230 | .treecol-image { |
231 | padding: 1px; |
232 | } |
76983f4c |
233 | |
e1597424 |
234 | .treecol-text { |
235 | margin: 0px !important; |
236 | padding: 0px !important; |
237 | } |
238 | |
cc973dd9 |
239 | treecol[hideheader="true"] { |
240 | border: none; |
241 | padding: 0; |
242 | } |
243 | |
e1597424 |
244 | /* ..... internal box ..... */ |
245 | |
246 | treecol:hover:active { |
247 | border: 1px solid #666699; |
248 | padding: 2px 3px 0px 5px; |
249 | } |
250 | |
251 | treecolpicker:hover:active { |
252 | border: 1px solid #666699; |
253 | } |
254 | |
255 | .treecol-image:hover:active { |
256 | padding: 2px 0px 0px 2px; |
257 | } |
258 | |
259 | /* ::::: column drag and drop styles ::::: */ |
260 | |
261 | treecol[dragging="true"] { |
262 | border: 1px solid transparent; |
263 | background-color: #336699; |
264 | color: #000000; |
265 | } |
266 | |
267 | treecol[insertafter="true"] { |
268 | border-right: 1px solid #000000; |
269 | } |
270 | |
271 | treecol[insertbefore="true"] { |
272 | border-left: 1px solid #000000; |
273 | } |
274 | |
a1f525f0 |
275 | treechildren::-moz-tree-column(insertbefore) { |
e1597424 |
276 | border-left: 1px solid #000000; |
277 | } |
278 | |
a1f525f0 |
279 | treechildren::-moz-tree-column(insertafter) { |
e1597424 |
280 | border-right: 1px solid #000000; |
281 | } |
282 | |
283 | /* ::::: sort direction indicator ::::: */ |
284 | |
285 | .treecol-sortdirection { |
286 | list-style-image: none; |
76983f4c |
287 | width: 8px; /* The image's width is 7 pixels */ |
e1597424 |
288 | } |
289 | |
3fbbd47a |
290 | .treecol-sortdirection[sortDirection="ascending"] { |
e1597424 |
291 | list-style-image: url("chrome://global/skin/tree/sort-asc.gif"); |
292 | } |
293 | |
3fbbd47a |
294 | .treecol-sortdirection[sortDirection="descending"] { |
295 | list-style-image: url("chrome://global/skin/tree/sort-dsc.gif"); |
e1597424 |
296 | } |
297 | |
298 | /* ::::: column picker ::::: */ |
299 | |
300 | .tree-columnpicker-icon { |
301 | list-style-image: url("chrome://global/skin/tree/columnpicker.gif"); |
302 | } |
303 | |
304 | /* ::::: twisty ::::: */ |
305 | |
a1f525f0 |
306 | treechildren::-moz-tree-twisty { |
e1597424 |
307 | padding-right: 2px; |
f2450795 |
308 | padding-top: 1px; |
309 | width: 11px; /* The image's width is 11 pixels */ |
e1597424 |
310 | list-style-image: url("chrome://global/skin/tree/twisty-closed.gif"); |
311 | } |
76983f4c |
312 | |
a1f525f0 |
313 | treechildren::-moz-tree-twisty(open) { |
f2450795 |
314 | width: 11px; /* The image's width is 11 pixels */ |
e1597424 |
315 | list-style-image: url("chrome://global/skin/tree/twisty-open.gif"); |
316 | } |
317 | |
a1f525f0 |
318 | treechildren::-moz-tree-indentation { |
f2450795 |
319 | width: 11px; |
e1597424 |
320 | } |
321 | |
322 | /* ::::: gridline style ::::: */ |
323 | |
a1f525f0 |
324 | treechildren.gridlines::-moz-tree-cell { |
e1597424 |
325 | border-right: 1px solid green; |
326 | border-bottom: 1px solid green; |
327 | } |
328 | |
a1f525f0 |
329 | treechildren.gridlines::-moz-tree-row { |
e1597424 |
330 | border: none; |
b618d1fd |
331 | } |
76983f4c |
332 | |
333 | /* ::::: alternating background ::::: */ |
334 | |
335 | treechildren[alternatingbackground="true"]::-moz-tree-row(odd) { |
336 | background-color: #F5F7FF; |
337 | } |
338 | |
339 | treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) { |
340 | background-color: #A0A0A0; |
341 | } |
342 | |
343 | treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) { |
344 | background-color: #6699CC; |
345 | } |