b1eaa419 |
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 { |
34 | -moz-border-radius: 5px; |
7aa65558 |
35 | margin: 1px 2px; |
36 | padding: 0px; |
b1eaa419 |
37 | border: 1px solid #9C9CFF; |
38 | background-color: #000000; |
39 | color: #FF9F00; |
40 | } |
41 | |
b1eaa419 |
42 | /* ::::: listitem ::::: */ |
43 | |
44 | listitem { |
45 | border: 1px solid transparent; |
46 | } |
47 | |
48 | listbox:focus > listitem[selected="true"][current="true"] { |
49 | border: 1px dotted #FF9F00; |
50 | } |
51 | |
52 | listitem[selected="true"] { |
53 | background-color: #008484; |
54 | color: #000000; |
55 | } |
56 | |
57 | listbox:focus > listitem[selected="true"] { |
58 | background-color: #008484; |
59 | color: #FFCF00; |
60 | } |
61 | |
62 | /* ::::: listheader ::::: */ |
63 | |
64 | listheader { |
65 | -moz-box-align: center; |
66 | border: 1px solid #FFCF00; |
67 | background-color: #9C9CFF; |
68 | color: #000000; |
69 | padding: 0 4px; |
70 | } |
71 | |
72 | listheader[sortable="true"]:hover:active { |
73 | border: 1px solid #FFCF00; |
74 | padding: 1px 4px 0 5px; |
75 | } |
76 | |
77 | .listheader-icon { |
78 | margin-right: 2px; |
79 | } |
80 | |
81 | .listheader-label { |
82 | margin: 0px !important; |
83 | } |
84 | |
85 | /* ..... sort direction icon ..... */ |
86 | |
87 | .listheader-sortdirection { |
88 | list-style-image: none; |
89 | } |
90 | |
7aa65558 |
91 | .listheader-sortdirection[sortDirection="ascending"] { |
b1eaa419 |
92 | list-style-image: url("chrome://global/skin/tree/sort-asc.gif"); |
93 | } |
94 | |
7aa65558 |
95 | .listheader-sortdirection[sortDirection="descending"] { |
b1eaa419 |
96 | list-style-image: url("chrome://global/skin/tree/sort-desc.gif"); |
97 | } |
98 | |
99 | /* ::::: listcell ::::: */ |
100 | |
101 | .listcell-label { |
102 | margin: 0px !important; |
103 | padding: 0px 0px 1px 4px; |
104 | white-space: nowrap; |
105 | } |
80916bc4 |
106 | |
107 | .listcell-icon { |
108 | margin-right: 2px; |
109 | } |
110 | |
7aa65558 |
111 | .listcell-label[disabled="true"] { |
112 | color: #8050B0; |
113 | } |
114 | |
80916bc4 |
115 | /* ::::: listcell checkbox ::::: */ |
116 | |
117 | .listcell-check { |
7aa65558 |
118 | -moz-box-align: center; |
80916bc4 |
119 | margin: 0px 2px; |
120 | border: 1px solid #FF9F00; |
121 | padding: 2px; |
7aa65558 |
122 | min-width: 12px; |
123 | min-height: 12px; |
124 | background: #000000 no-repeat 50% 50%; |
80916bc4 |
125 | } |
126 | |
127 | .listcell-check[checked="true"] { |
7aa65558 |
128 | background-image: url("chrome://global/skin/checkbox/cbox-check.gif"); |
129 | } |
130 | |
131 | .listcell-check[disabled="true"] { |
132 | border-color: #8050B0; |
133 | background-image: url("chrome://global/skin/checkbox/cbox-disabled.gif"); |
134 | } |
135 | |
136 | .listcell-check[disabled="true"][checked="true"] { |
137 | background-image: url("chrome://global/skin/checkbox/cbox-check-disabled.gif"); |
80916bc4 |
138 | } |