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> |
e1597424 |
23 | * Joe Hewitt (hewitt@netscape.com) |
128000f4 |
24 | * |
25 | * Alternatively, the contents of this file may be used under the terms of |
26 | * either the GNU General Public License Version 2 or later (the "GPL"), or |
27 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
28 | * in which case the provisions of the GPL or the LGPL are applicable instead |
29 | * of those above. If you wish to allow use of your version of this file only |
30 | * under the terms of either the GPL or the LGPL, and not to allow others to |
31 | * use your version of this file under the terms of the MPL, indicate your |
32 | * decision by deleting the provisions above and replace them with the notice |
33 | * and other provisions required by the GPL or the LGPL. If you do not delete |
34 | * the provisions above, a recipient may use your version of this file under |
35 | * the terms of any one of the MPL, the GPL or the LGPL. |
36 | * |
37 | * ***** END LICENSE BLOCK ***** */ |
38 | |
39 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
f6e0a33f |
40 | |
e1597424 |
41 | /* ===== tree.css ======================================================= |
42 | == Styles used by the XUL tree element. |
43 | ======================================================================= */ |
f6e0a33f |
44 | |
e1597424 |
45 | /* ::::: tree ::::: */ |
46 | |
47 | tree { |
48 | border-spacing: 0px; |
49 | border: 1px inset #CCD0DD; |
50 | background-color: #FFFFFF; |
51 | color: #000000; |
52 | } |
53 | |
54 | /* ::::: tree rows ::::: */ |
55 | |
56 | treechildren:-moz-tree-row { |
57 | border: 1px solid transparent; |
f2450795 |
58 | min-height: 18px; |
59 | height: 1.3em; |
e1597424 |
60 | } |
61 | |
62 | treechildren:-moz-tree-row(selected) { |
63 | background-color: #808080; |
64 | } |
65 | |
66 | treechildren:-moz-tree-row(selected, focus) { |
67 | background-color: #336699; |
68 | } |
69 | |
70 | treechildren:-moz-tree-row(current, focus) { |
71 | border: 1px dotted #9999CC; |
72 | } |
73 | |
74 | /* ::::: tree cells ::::: */ |
75 | |
76 | treechildren:-moz-tree-cell { |
77 | padding: 0px 2px 0px 2px; |
78 | } |
79 | |
80 | treechildren:-moz-tree-cell-text { |
81 | color: inherit; |
82 | border: 2px solid transparent; |
83 | } |
84 | |
85 | treechildren:-moz-tree-cell-text(selected) { |
86 | color: #FFFFFF; |
87 | } |
88 | |
89 | treechildren:-moz-tree-cell-text(selected, focus) { |
90 | color: #FFFFFF; |
91 | } |
92 | |
93 | /* ::::: lines connecting cells ::::: */ |
94 | |
95 | treechildren:-moz-tree-line { |
96 | visibility: hidden; |
97 | } |
98 | |
99 | /* |
100 | treechildren:-moz-tree-line { |
101 | border: 1px dotted grey; |
102 | } |
103 | |
104 | treechildren:-moz-tree-line(selected, focus) { |
105 | border: 1px dotted black; |
106 | } |
107 | */ |
108 | |
109 | /* ::::: tree separator ::::: */ |
110 | |
111 | treechildren:-moz-tree-separator { |
112 | border: 1px outset #CCD0DD; |
113 | } |
114 | |
115 | /* ::::: drop feedback ::::: */ |
116 | |
117 | treechildren:-moz-tree-cell-text(dropOn) { |
118 | background-color: #336699; |
119 | color: #FFFFFF; |
120 | } |
121 | |
122 | treechildren:-moz-tree-drop-feedback { |
123 | background-color: #336699; |
124 | width: 50px; |
125 | height: 2px; |
126 | margin-left: 5px; |
127 | } |
128 | |
129 | treechildren:-moz-tree-drop-feedback(selected) { |
130 | background-color: #FFFFFF; |
131 | } |
132 | |
f2450795 |
133 | /* ::::: tree progress meter ::::: */ |
134 | |
135 | treechildren:-moz-tree-progressmeter { |
136 | margin: 0px 0px; |
137 | border: 1px inset #CCD0DD; |
138 | background-color: #999999; |
139 | color: #6699CC; |
140 | } |
141 | |
142 | treechildren:-moz-tree-progressmeter(progressUndetermined) { |
143 | list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif"); |
144 | background-color: #CCD0DD; |
145 | } |
146 | |
147 | treechildren:-moz-tree-cell-text(progressmeter) { |
148 | margin: 2px 4px; |
149 | } |
150 | |
e1597424 |
151 | /* ::::: tree columns ::::: */ |
152 | |
153 | treecol { |
154 | -moz-box-align: center; |
155 | -moz-box-pack: center; |
156 | border: 1px outset #CCD0DD; |
157 | background-color: #CCD0DD; |
158 | color: #000000; |
159 | padding: 1px 4px; |
160 | } |
161 | |
162 | treecolpicker { |
163 | -moz-box-align: center; |
164 | -moz-box-pack: center; |
165 | border: 1px solid transparent; |
166 | background-color: #CCD0DD; |
167 | padding: 1px 0px; |
168 | } |
169 | |
170 | .treecol-image { |
171 | padding: 1px; |
172 | } |
f6e0a33f |
173 | |
e1597424 |
174 | .treecol-text { |
175 | margin: 0px !important; |
176 | padding: 0px !important; |
177 | } |
178 | |
cc973dd9 |
179 | treecol[hideheader="true"] { |
180 | border: none; |
181 | padding: 0; |
182 | } |
183 | |
e1597424 |
184 | /* ..... internal box ..... */ |
185 | |
186 | treecol:hover:active { |
187 | border: 1px solid #666699; |
188 | padding: 2px 3px 0px 5px; |
189 | } |
190 | |
191 | treecolpicker:hover:active { |
192 | border: 1px solid #666699; |
193 | } |
194 | |
195 | .treecol-image:hover:active { |
196 | padding: 2px 0px 0px 2px; |
197 | } |
198 | |
199 | /* ::::: column drag and drop styles ::::: */ |
200 | |
201 | treecol[dragging="true"] { |
202 | border: 1px solid transparent; |
203 | background-color: #336699; |
204 | color: #000000; |
205 | } |
206 | |
207 | treecol[insertafter="true"] { |
208 | border-right: 1px solid #000000; |
209 | } |
210 | |
211 | treecol[insertbefore="true"] { |
212 | border-left: 1px solid #000000; |
213 | } |
214 | |
215 | treechildren:-moz-tree-column(insertbefore) { |
216 | border-left: 1px solid #000000; |
217 | } |
218 | |
219 | treechildren:-moz-tree-column(insertafter) { |
220 | border-right: 1px solid #000000; |
221 | } |
222 | |
223 | /* ::::: sort direction indicator ::::: */ |
224 | |
225 | .treecol-sortdirection { |
226 | list-style-image: none; |
227 | } |
228 | |
229 | .sortDirectionIndicator[sortDirection="ascending"] .treecol-sortdirection { |
230 | list-style-image: url("chrome://global/skin/tree/sort-asc.gif"); |
231 | } |
232 | |
233 | .sortDirectionIndicator[sortDirection="descending"] .treecol-sortdirection { |
234 | list-style-image: url("chrome://global/skin/tree/sort-desc.gif"); |
235 | } |
236 | |
237 | /* ::::: column picker ::::: */ |
238 | |
239 | .tree-columnpicker-icon { |
240 | list-style-image: url("chrome://global/skin/tree/columnpicker.gif"); |
241 | } |
242 | |
243 | /* ::::: twisty ::::: */ |
244 | |
245 | treechildren:-moz-tree-twisty { |
246 | padding-right: 2px; |
f2450795 |
247 | padding-top: 1px; |
248 | width: 11px; /* The image's width is 11 pixels */ |
e1597424 |
249 | list-style-image: url("chrome://global/skin/tree/twisty-closed.gif"); |
250 | } |
f6e0a33f |
251 | |
e1597424 |
252 | treechildren:-moz-tree-twisty(open) { |
f2450795 |
253 | width: 11px; /* The image's width is 11 pixels */ |
e1597424 |
254 | list-style-image: url("chrome://global/skin/tree/twisty-open.gif"); |
255 | } |
256 | |
257 | treechildren:-moz-tree-indentation { |
f2450795 |
258 | width: 11px; |
e1597424 |
259 | } |
260 | |
261 | /* ::::: gridline style ::::: */ |
262 | |
263 | treechildren.gridlines:-moz-tree-cell { |
264 | border-right: 1px solid green; |
265 | border-bottom: 1px solid green; |
266 | } |
267 | |
268 | treechildren.gridlines:-moz-tree-row { |
269 | border: none; |
f2450795 |
270 | } |