hideheader was missing, that was the real problem in selectAddresses
[themes.git] / EarlyBlue / global / tree.css
1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3  *
4  * The contents of this file are subject to the Mozilla Public License Version
5  * 1.1 (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/MPL/
8  *
9  * Software distributed under the License is distributed on an "AS IS" basis,
10  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11  * for the specific language governing rights and limitations under the
12  * License.
13  *
14  * The Original Code is "Classic" theme of mozilla.org code.
15  *
16  * The Initial Developer of the Original Code is
17  * the Mozilla Organization.
18  * Portions created by the Initial Developer are Copyright (C) 1998-2001
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s):
22  *   Robert Kaiser <KaiRo@KaiRo.at>
23  *   Joe Hewitt (hewitt@netscape.com)                                           
24  *
25  * Alternatively, the contents of this file may be used under the terms of
26  * either the GNU General Public License Version 2 or later (the "GPL"), or
27  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28  * in which case the provisions of the GPL or the LGPL are applicable instead
29  * of those above. If you wish to allow use of your version of this file only
30  * under the terms of either the GPL or the LGPL, and not to allow others to
31  * use your version of this file under the terms of the MPL, indicate your
32  * decision by deleting the provisions above and replace them with the notice
33  * and other provisions required by the GPL or the LGPL. If you do not delete
34  * the provisions above, a recipient may use your version of this file under
35  * the terms of any one of the MPL, the GPL or the LGPL.
36  *
37  * ***** END LICENSE BLOCK ***** */
38
39 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
40
41 /* ===== tree.css =======================================================
42   == Styles used by the XUL tree element.
43   ======================================================================= */
44
45 /* ::::: tree ::::: */
46
47 tree {
48   border-spacing: 0px;     
49   border: 1px inset #CCD0DD;
50   background-color: #FFFFFF;
51   color: #000000;   
52 }
53
54 /* ::::: tree rows ::::: */
55
56 treechildren:-moz-tree-row {
57   border: 1px solid transparent;
58   height: 18px;
59 }
60
61 treechildren:-moz-tree-row(selected) {
62   background-color: #808080;
63 }
64
65 treechildren:-moz-tree-row(selected, focus) {
66   background-color: #336699;
67 }
68
69 treechildren:-moz-tree-row(current, focus) {
70   border: 1px dotted #9999CC;
71 }
72
73 /* ::::: tree cells ::::: */
74
75 treechildren:-moz-tree-cell {
76   padding: 0px 2px 0px 2px;
77 }
78
79 treechildren:-moz-tree-cell-text {
80   color: inherit;
81   border: 2px solid transparent;
82 }
83
84 treechildren:-moz-tree-cell-text(selected) {
85   color: #FFFFFF;
86 }
87
88 treechildren:-moz-tree-cell-text(selected, focus) {
89   color: #FFFFFF;
90 }
91
92 /* ::::: lines connecting cells ::::: */
93
94 treechildren:-moz-tree-line {
95   visibility: hidden;
96 }
97
98 /*
99 treechildren:-moz-tree-line {
100   border: 1px dotted grey;
101 }
102
103 treechildren:-moz-tree-line(selected, focus) {
104   border: 1px dotted black;
105 }
106 */
107
108 /* ::::: tree separator ::::: */
109
110 treechildren:-moz-tree-separator {
111   border: 1px outset #CCD0DD;
112 }
113
114 /* ::::: drop feedback ::::: */
115
116 treechildren:-moz-tree-cell-text(dropOn) {
117   background-color: #336699;
118   color: #FFFFFF;
119 }
120
121 treechildren:-moz-tree-drop-feedback {
122   background-color: #336699;
123   width: 50px;
124   height: 2px;
125   margin-left: 5px;
126 }
127
128 treechildren:-moz-tree-drop-feedback(selected) {
129   background-color: #FFFFFF;
130 }
131
132 /* ::::: tree columns ::::: */
133
134 treecol { 
135   -moz-box-align: center;
136   -moz-box-pack: center;
137   border: 1px outset #CCD0DD;
138   background-color: #CCD0DD;
139   color: #000000;
140   padding: 1px 4px;
141 }
142
143 treecolpicker { 
144   -moz-box-align: center;
145   -moz-box-pack: center;
146   border: 1px solid transparent;
147   background-color: #CCD0DD;
148   padding: 1px 0px;
149 }
150
151 .treecol-image {
152   padding: 1px;
153 }
154   
155 .treecol-text {
156   margin: 0px !important;
157   padding: 0px !important;
158 }
159
160 treecol[hideheader="true"] {
161   border: none;
162   padding: 0;
163 }
164
165 /* ..... internal box ..... */
166
167 treecol:hover:active {
168   border: 1px solid #666699;
169   padding: 2px 3px 0px 5px;
170 }
171
172 treecolpicker:hover:active {
173   border: 1px solid #666699;
174 }
175
176 .treecol-image:hover:active {
177   padding: 2px 0px 0px 2px;
178 }
179
180 /* ::::: column drag and drop styles ::::: */
181
182 treecol[dragging="true"] {
183   border: 1px solid transparent;
184   background-color: #336699;
185   color: #000000;
186 }
187
188 treecol[insertafter="true"] {
189   border-right: 1px solid #000000;
190 }
191
192 treecol[insertbefore="true"] {
193   border-left: 1px solid #000000;
194 }
195
196 treechildren:-moz-tree-column(insertbefore) {
197   border-left: 1px solid #000000;
198 }
199
200 treechildren:-moz-tree-column(insertafter) {
201   border-right: 1px solid #000000;
202 }
203
204 /* ::::: sort direction indicator :::::  */
205
206 .treecol-sortdirection {
207   list-style-image: none;
208 }
209
210 .sortDirectionIndicator[sortDirection="ascending"] .treecol-sortdirection {
211   list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
212 }
213
214 .sortDirectionIndicator[sortDirection="descending"] .treecol-sortdirection {
215   list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
216 }
217
218 /* ::::: column picker :::::  */
219
220 .tree-columnpicker-icon {
221   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
222 }
223
224 /* ::::: twisty :::::  */
225
226 treechildren:-moz-tree-twisty {
227   padding-right: 2px;
228   width: 12px; /* The image's width is 12 pixels */
229   list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
230 }
231   
232 treechildren:-moz-tree-twisty(open) {
233   width: 12px; /* The image's width is 12 pixels */
234   list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
235 }
236
237 treechildren:-moz-tree-indentation {
238   width: 10px;
239 }
240
241 /* ::::: gridline style ::::: */
242
243 treechildren.gridlines:-moz-tree-cell {
244   border-right: 1px solid green;
245   border-bottom: 1px solid green;
246 }
247
248 treechildren.gridlines:-moz-tree-row {
249   border: none;
250 }