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