|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 %include shared.inc |
|
6 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
|
7 |
|
8 tree { |
|
9 margin: 0px 4px; |
|
10 color: -moz-DialogText; |
|
11 background-color: #FFFFFF; |
|
12 -moz-appearance: listbox; |
|
13 } |
|
14 |
|
15 /* ::::: tree focusring ::::: */ |
|
16 |
|
17 .focusring > .tree-stack > .tree-rows > .tree-bodybox { |
|
18 border: 1px solid transparent; |
|
19 } |
|
20 |
|
21 .focusring:focus > .tree-stack > .tree-rows > .tree-bodybox { |
|
22 border: 1px solid -moz-mac-focusring; |
|
23 } |
|
24 |
|
25 |
|
26 /* ::::: tree rows ::::: */ |
|
27 |
|
28 treechildren::-moz-tree-row { |
|
29 border-top: 1px solid transparent; |
|
30 height: 18px; |
|
31 background-color: -moz-field; |
|
32 } |
|
33 |
|
34 treechildren:not(.autocomplete-treebody)::-moz-tree-row(multicol, odd) { |
|
35 background-color: -moz-oddtreerow; |
|
36 } |
|
37 |
|
38 treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected) { |
|
39 background-color: -moz-mac-secondaryhighlight; |
|
40 } |
|
41 |
|
42 treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected, focus) { |
|
43 background-color: Highlight; |
|
44 color: HighlightText; |
|
45 } |
|
46 |
|
47 tree[seltype="cell"] > treechildren::-moz-tree-row, |
|
48 tree[seltype="text"] > treechildren::-moz-tree-row { |
|
49 border-top: none; |
|
50 background-color: transparent; |
|
51 } |
|
52 |
|
53 /* ::::: tree cells ::::: */ |
|
54 |
|
55 treechildren::-moz-tree-cell { |
|
56 padding: 0px 2px 0px 2px; |
|
57 } |
|
58 |
|
59 tree[seltype="cell"] > treechildren::-moz-tree-cell-text, |
|
60 tree[seltype="text"] > treechildren::-moz-tree-cell-text, |
|
61 treechildren::-moz-tree-cell-text { |
|
62 color: inherit; |
|
63 } |
|
64 |
|
65 tree[seltype="cell"] > treechildren::-moz-tree-cell { |
|
66 padding: 0px 1px 0px 1px; |
|
67 } |
|
68 |
|
69 tree[seltype="text"] > treechildren::-moz-tree-cell-text { |
|
70 padding: 0px 1px 1px 1px; |
|
71 } |
|
72 |
|
73 treechildren::-moz-tree-cell-text(selected) { |
|
74 color: -moz-DialogText; |
|
75 } |
|
76 |
|
77 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) { |
|
78 background-color: -moz-mac-secondaryhighlight; |
|
79 |
|
80 } |
|
81 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) { |
|
82 color: -moz-DialogText; |
|
83 } |
|
84 |
|
85 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) { |
|
86 background-color: -moz-mac-secondaryhighlight; |
|
87 color: -moz-DialogText; |
|
88 } |
|
89 |
|
90 treechildren::-moz-tree-cell-text(selected, focus) { |
|
91 color: HighlightText; |
|
92 } |
|
93 |
|
94 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) { |
|
95 background-color: Highlight; |
|
96 } |
|
97 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) { |
|
98 color: HighlightText; |
|
99 } |
|
100 |
|
101 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) { |
|
102 background-color: Highlight; |
|
103 color: HighlightText; |
|
104 } |
|
105 |
|
106 /* ::::: lines connecting cells ::::: */ |
|
107 |
|
108 treechildren::-moz-tree-line { |
|
109 /* XXX there should be no border on Mac, but trees currently |
|
110 paint the line black by default, so I'll just leave this |
|
111 for now. */ |
|
112 visibility: hidden; |
|
113 border: 1px dotted grey; |
|
114 } |
|
115 |
|
116 |
|
117 /* ::::: tree separator ::::: */ |
|
118 |
|
119 treechildren::-moz-tree-separator { |
|
120 border-top: 1px dashed #C7C7C7; |
|
121 margin: 0 2px; |
|
122 } |
|
123 |
|
124 |
|
125 /* ::::: drop feedback ::::: */ |
|
126 |
|
127 tree[seltype="cell"] > treechildren::-moz-tree-cell(primary, dropOn), |
|
128 tree[seltype="text"] > treechildren::-moz-tree-cell(primary, dropOn), |
|
129 treechildren::-moz-tree-cell(primary, dropOn) { |
|
130 background-color: #A1A1A1 !important; |
|
131 color: #FFF !important; |
|
132 background-image: none; |
|
133 } |
|
134 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn), |
|
135 tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn), |
|
136 treechildren::-moz-tree-cell-text(primary, dropOn) { |
|
137 color: #FFF !important; |
|
138 } |
|
139 |
|
140 treechildren::-moz-tree-drop-feedback { |
|
141 background-color: #A1A1A1; |
|
142 width: 50px; |
|
143 height: 2px; |
|
144 -moz-margin-start: 5px; |
|
145 } |
|
146 |
|
147 /* ::::: tree progress meter ::::: */ |
|
148 |
|
149 treechildren::-moz-tree-progressmeter { |
|
150 margin: 2px 4px; |
|
151 border: 2px solid; |
|
152 -moz-border-top-colors: #AAAAAA #000000; |
|
153 -moz-border-right-colors: #FFFFFF #000000; |
|
154 -moz-border-bottom-colors: #FFFFFF #000000; |
|
155 -moz-border-left-colors: #AAAAAA #000000; |
|
156 } |
|
157 |
|
158 /* |
|
159 treechildren::-moz-tree-progressmeter(progressUndetermined) { |
|
160 } |
|
161 */ |
|
162 |
|
163 treechildren::-moz-tree-cell-text(progressmeter) { |
|
164 margin: 2px 4px; |
|
165 -moz-appearance: progressbar; |
|
166 } |
|
167 |
|
168 /* ::::: tree columns ::::: */ |
|
169 |
|
170 treecol, |
|
171 treecolpicker { |
|
172 -moz-appearance: treeheadercell; |
|
173 -moz-box-align: center; |
|
174 -moz-box-pack: center; |
|
175 border: 2px solid; |
|
176 -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow; |
|
177 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; |
|
178 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow; |
|
179 -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow; |
|
180 background-color: -moz-Dialog; |
|
181 color: -moz-DialogText; |
|
182 padding: 0px 4px; |
|
183 } |
|
184 |
|
185 .treecol-image { |
|
186 padding: 0px 1px; |
|
187 } |
|
188 |
|
189 .treecol-text { |
|
190 margin: 0px !important; |
|
191 } |
|
192 |
|
193 treecol[hideheader="true"] { |
|
194 -moz-appearance: none; |
|
195 border: none; |
|
196 padding: 0; |
|
197 max-height: 0px; |
|
198 } |
|
199 |
|
200 /* ..... internal box ..... */ |
|
201 |
|
202 treecol:hover:active, |
|
203 treecolpicker:hover:active { |
|
204 border-top: 2px solid; |
|
205 border-bottom: 1px solid; |
|
206 -moz-border-start: 2px solid; |
|
207 -moz-border-end: 1px solid; |
|
208 -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow; |
|
209 -moz-border-right-colors: ThreeDDarkShadow; |
|
210 -moz-border-bottom-colors: ThreeDDarkShadow; |
|
211 -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow; |
|
212 background-color: #666666; |
|
213 } |
|
214 |
|
215 /* ::::: column drag and drop styles ::::: */ |
|
216 |
|
217 treecol[dragging="true"] { |
|
218 -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow !important; |
|
219 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow!important; |
|
220 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow !important; |
|
221 -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow !important; |
|
222 padding: 0px 4px !important; |
|
223 background-color: ThreeDShadow !important; |
|
224 color: ThreeDHighlight !important; |
|
225 } |
|
226 |
|
227 treecol[insertafter="true"]:-moz-locale-dir(ltr), |
|
228 treecol[insertbefore="true"]:-moz-locale-dir(rtl) { |
|
229 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; |
|
230 } |
|
231 |
|
232 treecol[insertafter="true"]:-moz-locale-dir(rtl), |
|
233 treecol[insertbefore="true"]:-moz-locale-dir(ltr) { |
|
234 -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow; |
|
235 } |
|
236 |
|
237 treechildren::-moz-tree-column(insertbefore) { |
|
238 -moz-border-start: 1px solid ThreeDShadow; |
|
239 } |
|
240 |
|
241 treechildren::-moz-tree-column(insertafter) { |
|
242 -moz-border-end: 1px solid ThreeDShadow; |
|
243 } |
|
244 |
|
245 /* ::::: column picker ::::: */ |
|
246 |
|
247 .tree-columnpicker-icon { |
|
248 list-style-image: url("chrome://global/skin/tree/columnpicker.gif"); |
|
249 } |
|
250 |
|
251 /* ::::: twisty ::::: */ |
|
252 |
|
253 treechildren::-moz-tree-twisty { |
|
254 -moz-appearance: treetwisty; |
|
255 -moz-padding-end: 2px; |
|
256 } |
|
257 |
|
258 treechildren::-moz-tree-twisty(open) { |
|
259 -moz-appearance: treetwistyopen; |
|
260 } |
|
261 |
|
262 treechildren::-moz-tree-twisty(Name, separator) { |
|
263 -moz-appearance: none; |
|
264 } |
|
265 |
|
266 treechildren::-moz-tree-indentation { |
|
267 width: 16px; |
|
268 } |
|
269 |
|
270 /* ::::: gridline style ::::: */ |
|
271 |
|
272 treechildren.gridlines::-moz-tree-cell { |
|
273 -moz-border-end: 1px solid GrayText; |
|
274 border-bottom: 1px solid GrayText; |
|
275 } |
|
276 |
|
277 treechildren.gridlines::-moz-tree-row { |
|
278 border: none; |
|
279 } |
|
280 |
|
281 /* ::::: editable tree ::::: */ |
|
282 |
|
283 .tree-input { |
|
284 -moz-appearance: none; |
|
285 border-width: 0; |
|
286 box-shadow: @focusRingShadow@; |
|
287 margin: 0; |
|
288 -moz-margin-start: -2px; |
|
289 padding: 2px 1px 1px; |
|
290 } |