74d14f90 |
1 | /* |
2 | * The contents of this file are subject to the Netscape Public |
3 | * License Version 1.1 (the "License"); you may not use this file |
4 | * except in compliance with the License. You may obtain a copy of |
5 | * the License at http://www.mozilla.org/NPL/ |
6 | * |
7 | * Software distributed under the License is distributed on an "AS |
8 | * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
9 | * implied. See the License for the specific language governing |
10 | * rights and limitations under the License. |
11 | * |
12 | * The Original Code is Mozilla Communicator client code, released |
13 | * March 31, 1998. |
14 | * |
15 | * The Initial Developer of the Original Code is Netscape |
16 | * Communications Corporation. Portions created by Netscape are |
17 | * Copyright (C) 1998-2001 Netscape Communications Corporation. All |
18 | * Rights Reserved. |
19 | * |
20 | * Contributor(s): |
21 | * Joe Hewitt (hewitt@netscape.com) |
22 | * Robert Kaiser <KaiRo@KaiRo.at> |
23 | */ |
24 | |
25 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
26 | |
27 | /* ===== listbox.css ======================================================= |
28 | == Styles used by XUL listbox-related elements. |
29 | ======================================================================= */ |
30 | |
31 | /* ::::: listbox ::::: */ |
32 | |
33 | listbox { |
e1597424 |
34 | margin: 1px 2px; |
35 | padding: 0px; |
74d14f90 |
36 | border: 1px inset #CCD0DD; |
37 | background-color: #FFFFFF; |
38 | color: #000000; |
39 | } |
40 | |
74d14f90 |
41 | /* ::::: listitem ::::: */ |
42 | |
43 | listitem { |
44 | border: 1px solid transparent; |
45 | } |
46 | |
47 | listbox:focus > listitem[selected="true"][current="true"] { |
48 | border: 1px dotted #9999CC; |
49 | } |
50 | |
51 | listitem[selected="true"] { |
52 | background-color: #808080; |
53 | color: #FFFFFF; |
54 | } |
55 | |
56 | listbox:focus > listitem[selected="true"] { |
57 | background-color: #336699; |
58 | color: #FFFFFF; |
59 | } |
60 | |
61 | /* ::::: listheader ::::: */ |
62 | |
63 | listheader { |
64 | -moz-box-align: center; |
65 | border: 1px outset #CCD0DD; |
66 | background-color: #CCD0DD; |
67 | color: #000000; |
68 | padding: 0 4px; |
69 | } |
70 | |
71 | listheader[sortable="true"]:hover:active { |
72 | border: 1px outset #CCD0DD; |
73 | padding: 1px 4px 0 5px; |
74 | } |
75 | |
76 | .listheader-icon { |
77 | margin-right: 2px; |
78 | } |
79 | |
80 | .listheader-label { |
81 | margin: 0px !important; |
82 | } |
83 | |
84 | /* ..... sort direction icon ..... */ |
85 | |
86 | .listheader-sortdirection { |
87 | list-style-image: none; |
88 | } |
89 | |
e1597424 |
90 | .listheader-sortdirection[sortDirection="ascending"] { |
74d14f90 |
91 | list-style-image: url("chrome://global/skin/tree/sort-asc.gif"); |
92 | } |
93 | |
e1597424 |
94 | .listheader-sortdirection[sortDirection="descending"] { |
74d14f90 |
95 | list-style-image: url("chrome://global/skin/tree/sort-desc.gif"); |
96 | } |
97 | |
98 | /* ::::: listcell ::::: */ |
99 | |
100 | .listcell-label { |
101 | margin: 0px !important; |
102 | padding: 0px 0px 1px 4px; |
103 | white-space: nowrap; |
104 | } |
c8120ee9 |
105 | |
106 | .listcell-icon { |
107 | margin-right: 2px; |
108 | } |
109 | |
e1597424 |
110 | .listcell-label[disabled="true"] { |
111 | color: #808080; |
112 | } |
113 | |
c8120ee9 |
114 | /* ::::: listcell checkbox ::::: */ |
115 | |
116 | .listcell-check { |
e1597424 |
117 | -moz-box-align: center; |
c8120ee9 |
118 | margin: 0px 2px; |
119 | border: 1px solid #CCD0DD; |
120 | padding: 2px; |
e1597424 |
121 | min-width: 12px; |
122 | min-height: 12px; |
123 | background: #FFFFFF no-repeat 50% 50%; |
c8120ee9 |
124 | } |
125 | |
126 | .listcell-check[checked="true"] { |
e1597424 |
127 | background-image: url("chrome://global/skin/checkbox/cbox-check.gif"); |
c8120ee9 |
128 | } |
e1597424 |
129 | |
130 | .listcell-check[disabled="true"] { |
131 | border-color: #808080; |
132 | background-image: url("chrome://global/skin/checkbox/cbox-disabled.gif"); |
133 | } |
134 | |
135 | .listcell-check[disabled="true"][checked="true"] { |
136 | background-image: url("chrome://global/skin/checkbox/cbox-check-disabled.gif"); |
137 | } |
138 | |