fix a few issues pointed out by AMO reviews of previous theme versions
[themes.git] / EarlyBlue / global / tree.css
CommitLineData
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):
76983f4c 22 * Joe Hewitt (hewitt@netscape.com)
459f2165 23 * Dean Tessman (dean_tessman@hotmail.com)
e181d49e 24 * Robert Kaiser <KaiRo@KaiRo.at>
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
e1597424 40/* ===== tree.css =======================================================
41 == Styles used by the XUL tree element.
42 ======================================================================= */
f6e0a33f 43
e181d49e
RK
44@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
45
e1597424 46/* ::::: tree ::::: */
47
48tree {
e181d49e 49 margin: 0px;
e1597424 50 border: 1px inset #CCD0DD;
51 background-color: #FFFFFF;
76983f4c 52 color: #000000;
e1597424 53}
54
b618d1fd 55/* ::::: tree focusring ::::: */
56
1d4ddf30 57.focusring > .tree-stack > .tree-rows > .tree-bodybox {
b618d1fd 58 border: 1px solid transparent;
59}
60
024ec655 61.focusring:-moz-focusring > .tree-stack > .tree-rows > .tree-bodybox {
b618d1fd 62 border: 1px solid #000000;
63}
b618d1fd 64
e1597424 65/* ::::: tree rows ::::: */
66
a1f525f0 67treechildren::-moz-tree-row {
e1597424 68 border: 1px solid transparent;
b618d1fd 69 background-color: transparent;
f2450795 70 min-height: 18px;
71 height: 1.3em;
e1597424 72}
73
a1f525f0 74treechildren::-moz-tree-row(selected) {
e1597424 75 background-color: #808080;
76}
77
a1f525f0 78treechildren::-moz-tree-row(selected, focus) {
e1597424 79 background-color: #336699;
80}
81
a1f525f0 82treechildren::-moz-tree-row(current, focus) {
e1597424 83 border: 1px dotted #9999CC;
84}
85
a1f525f0 86treechildren::-moz-tree-row(selected, current, focus) {
459f2165 87 border: 1px dotted #666699;
88}
89
1d4ddf30 90tree[seltype="cell"] > treechildren::-moz-tree-row,
91tree[seltype="text"] > treechildren::-moz-tree-row {
aa277310 92 border: none;
93 background-color: transparent;
94}
95
e1597424 96/* ::::: tree cells ::::: */
97
a1f525f0 98treechildren::-moz-tree-cell {
e181d49e 99 padding: 0px 2px;
e1597424 100}
101
1d4ddf30 102tree[seltype="cell"] > treechildren::-moz-tree-cell-text,
103tree[seltype="text"] > treechildren::-moz-tree-cell-text,
a1f525f0 104treechildren::-moz-tree-cell-text {
e1597424 105 color: inherit;
e1597424 106}
107
a1f525f0 108treechildren::-moz-tree-cell-text(selected) {
e1597424 109 color: #FFFFFF;
110}
111
1d4ddf30 112tree[seltype="cell"] > treechildren::-moz-tree-cell {
113 border: 1px solid transparent;
02920d2b 114 padding: 0px 1px;
1d4ddf30 115}
116
117tree[seltype="text"] > treechildren::-moz-tree-cell-text {
f2d09376 118 border: 1px solid transparent;
02920d2b 119 padding: 0px 1px 1px;
aa277310 120}
121
1d4ddf30 122tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
123 background-color: #808080;
124}
125tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) {
126 color: #FFFFFF;
127}
128
129tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
b618d1fd 130 background-color: #808080;
131 color: #FFFFFF;
132}
133
a1f525f0 134treechildren::-moz-tree-cell-text(selected, focus) {
e1597424 135 color: #FFFFFF;
136}
137
1d4ddf30 138tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
b618d1fd 139 background-color: #336699;
1d4ddf30 140}
141tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
b618d1fd 142 color: #FFFFFF;
143}
144
1d4ddf30 145tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
146 background-color: #336699;
147 color: #FFFFFF;
148}
149
150tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
151 border: 1px dotted #9999CC;
152}
153
154tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
b618d1fd 155 border: 1px dotted #9999CC;
156}
157
1d4ddf30 158tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) {
159 border: 1px dotted #666699;
160}
161
162tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) {
b618d1fd 163 border: 1px dotted #666699;
164}
165
e1597424 166/* ::::: lines connecting cells ::::: */
167
1d4ddf30 168tree[seltype="cell"] > treechildren::-moz-tree-line,
169tree[seltype="text"] > treechildren::-moz-tree-line,
a1f525f0 170treechildren::-moz-tree-line {
e1597424 171 visibility: hidden;
172}
173
1d4ddf30 174tree[seltype="cell"] > treechildren::-moz-tree-line,
175tree[seltype="text"] > treechildren::-moz-tree-line,
a1f525f0 176treechildren::-moz-tree-line {
726e083d 177 border: 1px dotted #CCD0DD;
e1597424 178}
179
1d4ddf30 180tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
a1f525f0 181treechildren::-moz-tree-line(selected, focus) {
726e083d 182 border: 1px dotted #666699;
e1597424 183}
e1597424 184
185/* ::::: tree separator ::::: */
186
a1f525f0 187treechildren::-moz-tree-separator {
76983f4c 188 margin-top: 1px;
e1597424 189 border: 1px outset #CCD0DD;
76983f4c 190 height: 2px;
e1597424 191}
192
193/* ::::: drop feedback ::::: */
194
f128e38f
RK
195treechildren::-moz-tree-row(dropOn) {
196 background-color: #336699;
197}
198
1d4ddf30 199tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
200tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
a1f525f0 201treechildren::-moz-tree-cell-text(dropOn) {
e1597424 202 color: #FFFFFF;
203}
204
a1f525f0 205treechildren::-moz-tree-drop-feedback {
e1597424 206 background-color: #336699;
207 width: 50px;
208 height: 2px;
6daee013 209 -moz-margin-start: 5px;
e1597424 210}
211
a1f525f0 212treechildren::-moz-tree-drop-feedback(selected) {
e1597424 213 background-color: #FFFFFF;
214}
215
76983f4c 216/* ::::: tree checkbox ::::: */
217
218treechildren::-moz-tree-checkbox {
219 list-style-image: url("chrome://global/skin/tree/checkbox.gif");
220}
221
222treechildren::-moz-tree-checkbox(checked) {
223 list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif");
224}
225
f2450795 226/* ::::: tree progress meter ::::: */
227
a1f525f0 228treechildren::-moz-tree-progressmeter {
f2450795 229 margin: 0px 0px;
230 border: 1px inset #CCD0DD;
231 background-color: #999999;
232 color: #6699CC;
233}
234
a1f525f0 235treechildren::-moz-tree-progressmeter(progressUndetermined) {
f2450795 236 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
237 background-color: #CCD0DD;
238}
239
a1f525f0 240treechildren::-moz-tree-cell-text(progressmeter) {
f2450795 241 margin: 2px 4px;
242}
243
e1597424 244/* ::::: tree columns ::::: */
245
76983f4c 246treecol {
e1597424 247 -moz-box-align: center;
248 -moz-box-pack: center;
249 border: 1px outset #CCD0DD;
250 background-color: #CCD0DD;
251 color: #000000;
252 padding: 1px 4px;
253}
254
76983f4c 255treecolpicker {
e1597424 256 -moz-box-align: center;
257 -moz-box-pack: center;
258 border: 1px solid transparent;
259 background-color: #CCD0DD;
260 padding: 1px 0px;
261}
262
263.treecol-image {
e181d49e 264 padding: 0 1px;
e1597424 265}
76983f4c 266
e1597424 267.treecol-text {
268 margin: 0px !important;
269 padding: 0px !important;
270}
271
cc973dd9 272treecol[hideheader="true"] {
273 border: none;
274 padding: 0;
275}
276
e1597424 277/* ..... internal box ..... */
278
279treecol:hover:active {
280 border: 1px solid #666699;
6daee013
RK
281 padding-top: 2px;
282 padding-bottom: 0px;
283 -moz-padding-start: 5px;
284 -moz-padding-end: 3px;
e1597424 285}
286
287treecolpicker:hover:active {
288 border: 1px solid #666699;
289}
290
291.treecol-image:hover:active {
6daee013
RK
292 padding-top: 2px;
293 padding-bottom: 0px;
294 -moz-padding-start: 2px;
295 -moz-padding-end: 0px;
e1597424 296}
297
298/* ::::: column drag and drop styles ::::: */
299
300treecol[dragging="true"] {
301 border: 1px solid transparent;
302 background-color: #336699;
303 color: #000000;
304}
305
3b1530c2
RK
306treecol[insertafter="true"]:-moz-locale-dir(ltr),
307treecol[insertbefore="true"]:-moz-locale-dir(rtl) {
e1597424 308 border-right: 1px solid #000000;
309}
310
3b1530c2
RK
311treecol[insertafter="true"]:-moz-locale-dir(rtl),
312treecol[insertbefore="true"]:-moz-locale-dir(ltr) {
e1597424 313 border-left: 1px solid #000000;
314}
315
a1f525f0 316treechildren::-moz-tree-column(insertbefore) {
18f5421a 317 -moz-border-start: 1px solid #000000;
e1597424 318}
319
a1f525f0 320treechildren::-moz-tree-column(insertafter) {
18f5421a 321 -moz-border-end: 1px solid #000000;
e1597424 322}
323
324/* ::::: sort direction indicator ::::: */
325
326.treecol-sortdirection {
327 list-style-image: none;
76983f4c 328 width: 8px; /* The image's width is 7 pixels */
e1597424 329}
330
e181d49e 331treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"] {
e1597424 332 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
333}
334
e181d49e
RK
335treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"] {
336 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
e1597424 337}
338
339/* ::::: column picker ::::: */
340
341.tree-columnpicker-icon {
342 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
343}
344
345/* ::::: twisty ::::: */
346
a1f525f0 347treechildren::-moz-tree-twisty {
6daee013 348 -moz-padding-end: 2px;
f2450795 349 padding-top: 1px;
350 width: 11px; /* The image's width is 11 pixels */
e1597424 351 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
352}
76983f4c 353
a1f525f0 354treechildren::-moz-tree-twisty(open) {
f2450795 355 width: 11px; /* The image's width is 11 pixels */
e1597424 356 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
357}
358
a1f525f0 359treechildren::-moz-tree-indentation {
f2450795 360 width: 11px;
e1597424 361}
362
363/* ::::: gridline style ::::: */
364
a1f525f0 365treechildren.gridlines::-moz-tree-cell {
e1597424 366 border-right: 1px solid green;
367 border-bottom: 1px solid green;
368}
369
a1f525f0 370treechildren.gridlines::-moz-tree-row {
e1597424 371 border: none;
b618d1fd 372}
76983f4c 373
374/* ::::: alternating background ::::: */
375
376treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
377 background-color: #F5F7FF;
378}
379
380treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
381 background-color: #A0A0A0;
382}
383
384treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
385 background-color: #6699CC;
386}
1d4ddf30 387
388/* ::::: editable tree ::::: */
389
390treechildren::-moz-tree-row(selected, editing) {
391 background-color: transparent;
392 border: none;
393}
394
395treechildren::-moz-tree-cell-text(selected, editing) {
396 color: inherit;
397}
398
399.tree-input {
1d4ddf30 400 border: 1px solid #336699;
6daee013
RK
401 margin: 0;
402 -moz-margin-start: -4px;
1d4ddf30 403 padding: 1px;
404}