Commit | Line | Data |
---|---|---|
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) | |
459f2165 | 22 | * Dean Tessman (dean_tessman@hotmail.com) |
74d14f90 | 23 | * Robert Kaiser <KaiRo@KaiRo.at> |
24 | */ | |
25 | ||
74d14f90 | 26 | /* ===== listbox.css ======================================================= |
27 | == Styles used by XUL listbox-related elements. | |
28 | ======================================================================= */ | |
29 | ||
df8c26c4 RK |
30 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
31 | ||
74d14f90 | 32 | /* ::::: listbox ::::: */ |
33 | ||
34 | listbox { | |
e1597424 | 35 | margin: 1px 2px; |
36 | padding: 0px; | |
74d14f90 | 37 | border: 1px inset #CCD0DD; |
38 | background-color: #FFFFFF; | |
39 | color: #000000; | |
40 | } | |
41 | ||
61af9d1c | 42 | listbox[disabled="true"] { |
43 | color: #CCCCCC; | |
44 | } | |
45 | ||
74d14f90 | 46 | /* ::::: listitem ::::: */ |
47 | ||
48 | listitem { | |
49 | border: 1px solid transparent; | |
50 | } | |
51 | ||
459f2165 | 52 | listbox:focus > listitem[current="true"] { |
74d14f90 | 53 | border: 1px dotted #9999CC; |
54 | } | |
55 | ||
459f2165 | 56 | listbox:focus > listitem[current="true"][selected="true"] { |
57 | border: 1px dotted #666699; | |
58 | } | |
59 | ||
74d14f90 | 60 | listitem[selected="true"] { |
61 | background-color: #808080; | |
62 | color: #FFFFFF; | |
63 | } | |
64 | ||
65 | listbox:focus > listitem[selected="true"] { | |
66 | background-color: #336699; | |
67 | color: #FFFFFF; | |
68 | } | |
69 | ||
70 | /* ::::: listheader ::::: */ | |
71 | ||
61af9d1c | 72 | listheader { |
74d14f90 | 73 | -moz-box-align: center; |
74 | border: 1px outset #CCD0DD; | |
75 | background-color: #CCD0DD; | |
76 | color: #000000; | |
77 | padding: 0 4px; | |
78 | } | |
79 | ||
80 | listheader[sortable="true"]:hover:active { | |
81 | border: 1px outset #CCD0DD; | |
df8c26c4 RK |
82 | padding-top: 1px; |
83 | padding-bottom: 0px; | |
84 | -moz-padding-start: 5px; | |
85 | -moz-padding-end: 4px; | |
74d14f90 | 86 | } |
87 | ||
88 | .listheader-icon { | |
89 | margin-right: 2px; | |
90 | } | |
91 | ||
92 | .listheader-label { | |
93 | margin: 0px !important; | |
94 | } | |
95 | ||
96 | /* ..... sort direction icon ..... */ | |
97 | ||
98 | .listheader-sortdirection { | |
99 | list-style-image: none; | |
100 | } | |
101 | ||
e1597424 | 102 | .listheader-sortdirection[sortDirection="ascending"] { |
74d14f90 | 103 | list-style-image: url("chrome://global/skin/tree/sort-asc.gif"); |
104 | } | |
105 | ||
e1597424 | 106 | .listheader-sortdirection[sortDirection="descending"] { |
74d14f90 | 107 | list-style-image: url("chrome://global/skin/tree/sort-desc.gif"); |
108 | } | |
109 | ||
110 | /* ::::: listcell ::::: */ | |
111 | ||
112 | .listcell-label { | |
113 | margin: 0px !important; | |
df8c26c4 RK |
114 | padding-top: 0px; |
115 | padding-bottom: 1px; | |
116 | -moz-padding-start: 4px; | |
117 | -moz-padding-end: 0px; | |
74d14f90 | 118 | white-space: nowrap; |
119 | } | |
c8120ee9 | 120 | |
121 | .listcell-icon { | |
df8c26c4 | 122 | -moz-margin-end: 2px; |
c8120ee9 | 123 | } |
124 | ||
e1597424 | 125 | .listcell-label[disabled="true"] { |
126 | color: #808080; | |
127 | } | |
128 | ||
61af9d1c | 129 | /* ::::: listcell checkbox ::::: */ |
c8120ee9 | 130 | |
131 | .listcell-check { | |
e1597424 | 132 | -moz-box-align: center; |
c8120ee9 | 133 | margin: 0px 2px; |
134 | border: 1px solid #CCD0DD; | |
135 | padding: 2px; | |
e1597424 | 136 | min-width: 12px; |
137 | min-height: 12px; | |
138 | background: #FFFFFF no-repeat 50% 50%; | |
c8120ee9 | 139 | } |
140 | ||
141 | .listcell-check[checked="true"] { | |
e1597424 | 142 | background-image: url("chrome://global/skin/checkbox/cbox-check.gif"); |
c8120ee9 | 143 | } |
e1597424 | 144 | |
145 | .listcell-check[disabled="true"] { | |
146 | border-color: #808080; | |
147 | background-image: url("chrome://global/skin/checkbox/cbox-disabled.gif"); | |
148 | } | |
149 | ||
150 | .listcell-check[disabled="true"][checked="true"] { | |
151 | background-image: url("chrome://global/skin/checkbox/cbox-check-disabled.gif"); | |
152 | } | |
153 |