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