b2bd910dc869fe0eb76b1c1bce99afe9320b7c87
[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 /* ===== listbox.css =======================================================
27   == Styles used by XUL listbox-related elements.
28   ======================================================================= */
29
30 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
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 listbox[disabled="true"] {
44   border: 1px solid #8050B0;
45   color: #8050B0;
46 }
47
48 /* ::::: listitem ::::: */
49
50 listitem {
51   border: 1px solid transparent;
52 }
53
54 listbox:-moz-focusring > listitem[current="true"] {
55   border: 1px dotted #FF9F00;
56 }
57
58 listbox:-moz-focusring > listitem[current="true"][selected="true"] {
59   border: 1px dotted #FF9F00;
60 }
61
62 listitem[selected="true"] {
63   background-color: #008484;
64   color: #000000;
65 }
66
67 listbox:focus > listitem[selected="true"] {
68   background-color: #008484;
69   color: #FFCF00;
70 }
71
72 /* ::::: listheader ::::: */
73
74 listheader {
75   -moz-box-align: center;
76   border: 1px solid #FFCF00;
77   background-color: #9C9CFF;
78   color: #000000;
79   padding: 0 4px;
80 }
81
82 listheader[sortable="true"]:hover:active {
83   border: 1px solid #FFCF00;
84   padding-top: 1px;
85   padding-bottom: 0px;
86   -moz-padding-start: 5px;
87   -moz-padding-end: 4px;
88 }
89
90 .listheader-icon {
91   -moz-margin-end: 2px;
92 }
93
94 .listheader-label {
95   margin: 0px !important;
96 }
97
98 /* ..... sort direction icon ..... */
99
100 .listheader-sortdirection {
101   list-style-image: none;
102 }
103
104 .listheader-sortdirection[sortDirection="ascending"] {
105   list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
106 }
107
108 .listheader-sortdirection[sortDirection="descending"] {
109   list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
110 }
111
112 /* ::::: listcell ::::: */
113
114 .listcell-label {
115   margin: 0px !important;
116   padding-top: 0px;
117   padding-bottom: 1px;
118   -moz-padding-start: 4px;
119   -moz-padding-end: 0px;
120   white-space: nowrap;
121 }
122
123 .listcell-icon {
124   -moz-margin-end: 2px;
125 }
126
127 .listcell-label[disabled="true"] {
128   color: #8050B0;
129 }
130
131 /* ::::: listcell checkbox ::::: */
132
133 .listcell-check {
134   -moz-box-align: center;
135   margin: 0px 2px;
136   border: 1px solid #FF9F00;
137   padding: 2px;
138   min-width: 12px;
139   min-height: 12px;
140   background: #000000 no-repeat 50% 50%;
141 }
142
143 .listcell-check[checked="true"] {
144   background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
145 }
146
147 .listcell-check[disabled="true"] {
148   border-color: #8050B0;
149   background-image: url("chrome://global/skin/checkbox/cbox-disabled.gif");
150 }
151
152 .listcell-check[disabled="true"][checked="true"] {
153   background-image: url("chrome://global/skin/checkbox/cbox-check-disabled.gif");
154 }