Commit | Line | Data |
---|---|---|
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 | ||
b1eaa419 | 26 | /* ===== listbox.css ======================================================= |
27 | == Styles used by XUL listbox-related elements. | |
28 | ======================================================================= */ | |
29 | ||
f98e9249 RK |
30 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
31 | ||
b1eaa419 | 32 | /* ::::: listbox ::::: */ |
33 | ||
34 | listbox { | |
569543b3 | 35 | 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 | 43 | listbox[disabled="true"] { |
44 | border: 1px solid #8050B0; | |
45 | color: #8050B0; | |
46 | } | |
47 | ||
b1eaa419 | 48 | /* ::::: listitem ::::: */ |
49 | ||
50 | listitem { | |
51 | border: 1px solid transparent; | |
52 | } | |
53 | ||
024ec655 | 54 | listbox:-moz-focusring > listitem[current="true"] { |
dc8e1207 | 55 | border: 1px dotted #FF9F00; |
56 | } | |
57 | ||
024ec655 | 58 | listbox:-moz-focusring > listitem[current="true"][selected="true"] { |
b1eaa419 | 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 | ||
242fc635 | 74 | listheader { |
b1eaa419 | 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; | |
f98e9249 RK |
84 | padding-top: 1px; |
85 | padding-bottom: 0px; | |
86 | -moz-padding-start: 5px; | |
87 | -moz-padding-end: 4px; | |
b1eaa419 | 88 | } |
89 | ||
90 | .listheader-icon { | |
8caa872d | 91 | -moz-margin-end: 2px; |
b1eaa419 | 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 | ||
7aa65558 | 104 | .listheader-sortdirection[sortDirection="ascending"] { |
b1eaa419 | 105 | list-style-image: url("chrome://global/skin/tree/sort-asc.gif"); |
106 | } | |
107 | ||
7aa65558 | 108 | .listheader-sortdirection[sortDirection="descending"] { |
b1eaa419 | 109 | list-style-image: url("chrome://global/skin/tree/sort-desc.gif"); |
110 | } | |
111 | ||
112 | /* ::::: listcell ::::: */ | |
113 | ||
114 | .listcell-label { | |
115 | margin: 0px !important; | |
f98e9249 RK |
116 | padding-top: 0px; |
117 | padding-bottom: 1px; | |
118 | -moz-padding-start: 4px; | |
119 | -moz-padding-end: 0px; | |
b1eaa419 | 120 | white-space: nowrap; |
121 | } | |
80916bc4 | 122 | |
123 | .listcell-icon { | |
f98e9249 | 124 | -moz-margin-end: 2px; |
80916bc4 | 125 | } |
126 | ||
7aa65558 | 127 | .listcell-label[disabled="true"] { |
128 | color: #8050B0; | |
129 | } | |
130 | ||
242fc635 | 131 | /* ::::: listcell checkbox ::::: */ |
80916bc4 | 132 | |
133 | .listcell-check { | |
7aa65558 | 134 | -moz-box-align: center; |
80916bc4 | 135 | margin: 0px 2px; |
136 | border: 1px solid #FF9F00; | |
137 | padding: 2px; | |
7aa65558 | 138 | min-width: 12px; |
139 | min-height: 12px; | |
140 | background: #000000 no-repeat 50% 50%; | |
80916bc4 | 141 | } |
142 | ||
143 | .listcell-check[checked="true"] { | |
7aa65558 | 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"); | |
80916bc4 | 154 | } |