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