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