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 ::::: */
35 -moz-border-radius: 5px;
38 border: 1px solid #9C9CFF;
39 background-color: #000000;
43 listbox[disabled="true"] {
44 border: 1px solid #8050B0;
48 /* ::::: listitem ::::: */
51 border: 1px solid transparent;
54 listbox:focus > listitem[current="true"] {
55 border: 1px dotted #FF9F00;
58 listbox:focus > listitem[current="true"][selected="true"] {
59 border: 1px dotted #FF9F00;
62 listitem[selected="true"] {
63 background-color: #008484;
67 listbox:focus > listitem[selected="true"] {
68 background-color: #008484;
72 /* ::::: listheader ::::: */
75 -moz-box-align: center;
76 border: 1px solid #FFCF00;
77 background-color: #9C9CFF;
82 listheader[sortable="true"]:hover:active {
83 border: 1px solid #FFCF00;
86 -moz-padding-start: 5px;
87 -moz-padding-end: 4px;
95 margin: 0px !important;
98 /* ..... sort direction icon ..... */
100 .listheader-sortdirection {
101 list-style-image: none;
104 .listheader-sortdirection[sortDirection="ascending"] {
105 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
108 .listheader-sortdirection[sortDirection="descending"] {
109 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
112 /* ::::: listcell ::::: */
115 margin: 0px !important;
118 -moz-padding-start: 4px;
119 -moz-padding-end: 0px;
124 -moz-margin-end: 2px;
127 .listcell-label[disabled="true"] {
131 /* ::::: listcell checkbox ::::: */
134 -moz-box-align: center;
136 border: 1px solid #FF9F00;
140 background: #000000 no-repeat 50% 50%;
143 .listcell-check[checked="true"] {
144 background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
147 .listcell-check[disabled="true"] {
148 border-color: #8050B0;
149 background-image: url("chrome://global/skin/checkbox/cbox-disabled.gif");
152 .listcell-check[disabled="true"][checked="true"] {
153 background-image: url("chrome://global/skin/checkbox/cbox-check-disabled.gif");