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/
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.
12 * The Original Code is Mozilla Communicator client code, released
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
21 * Joe Hewitt (hewitt@netscape.com)
22 * Dean Tessman (dean_tessman@hotmail.com)
23 * Robert Kaiser <KaiRo@KaiRo.at>
26 /* ===== listbox.css =======================================================
27 == Styles used by XUL listbox-related elements.
28 ======================================================================= */
30 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
32 /* ::::: listbox ::::: */
37 border: 1px inset #CCD0DD;
38 background-color: #FFFFFF;
42 listbox[disabled="true"] {
46 /* ::::: listitem ::::: */
49 border: 1px solid transparent;
52 listbox:focus > listitem[current="true"] {
53 border: 1px dotted #9999CC;
56 listbox:focus > listitem[current="true"][selected="true"] {
57 border: 1px dotted #666699;
60 listitem[selected="true"] {
61 background-color: #808080;
65 listbox:focus > listitem[selected="true"] {
66 background-color: #336699;
70 /* ::::: listheader ::::: */
73 -moz-box-align: center;
74 border: 1px outset #CCD0DD;
75 background-color: #CCD0DD;
80 listheader[sortable="true"]:hover:active {
81 border: 1px outset #CCD0DD;
84 -moz-padding-start: 5px;
85 -moz-padding-end: 4px;
93 margin: 0px !important;
96 /* ..... sort direction icon ..... */
98 .listheader-sortdirection {
99 list-style-image: none;
102 .listheader-sortdirection[sortDirection="ascending"] {
103 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
106 .listheader-sortdirection[sortDirection="descending"] {
107 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
110 /* ::::: listcell ::::: */
113 margin: 0px !important;
116 -moz-padding-start: 4px;
117 -moz-padding-end: 0px;
122 -moz-margin-end: 2px;
125 .listcell-label[disabled="true"] {
129 /* ::::: listcell checkbox ::::: */
132 -moz-box-align: center;
134 border: 1px solid #CCD0DD;
138 background: #FFFFFF no-repeat 50% 50%;
141 .listcell-check[checked="true"] {
142 background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
145 .listcell-check[disabled="true"] {
146 border-color: #808080;
147 background-image: url("chrome://global/skin/checkbox/cbox-disabled.gif");
150 .listcell-check[disabled="true"][checked="true"] {
151 background-image: url("chrome://global/skin/checkbox/cbox-check-disabled.gif");