fix some icon sizes
[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  *   Dean Tessman (dean_tessman@hotmail.com)
25  *
26  * Alternatively, the contents of this file may be used under the terms of
27  * either the GNU General Public License Version 2 or later (the "GPL"), or
28  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29  * in which case the provisions of the GPL or the LGPL are applicable instead
30  * of those above. If you wish to allow use of your version of this file only
31  * under the terms of either the GPL or the LGPL, and not to allow others to
32  * use your version of this file under the terms of the MPL, indicate your
33  * decision by deleting the provisions above and replace them with the notice
34  * and other provisions required by the GPL or the LGPL. If you do not delete
35  * the provisions above, a recipient may use your version of this file under
36  * the terms of any one of the MPL, the GPL or the LGPL.
37  *
38  * ***** END LICENSE BLOCK ***** */
39
40 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
41
42 /* ===== tree.css =======================================================
43   == Styles used by the XUL tree element.
44   ======================================================================= */
45
46 /* ::::: tree ::::: */
47
48 tree {
49   border-spacing: 0px;     
50   border: 1px inset #CCD0DD;
51   background-color: #FFFFFF;
52   color: #000000;   
53 }
54
55 /* ::::: tree rows ::::: */
56
57 treechildren:-moz-tree-row {
58   border: 1px solid transparent;
59   min-height: 18px;
60   height: 1.3em;
61 }
62
63 treechildren:-moz-tree-row(selected) {
64   background-color: #808080;
65 }
66
67 treechildren:-moz-tree-row(selected, focus) {
68   background-color: #336699;
69 }
70
71 treechildren:-moz-tree-row(current, focus) {
72   border: 1px dotted #9999CC;
73 }
74
75 treechildren:-moz-tree-row(selected, current, focus) {
76   border: 1px dotted #666699;
77 }
78
79 /* ::::: tree cells ::::: */
80
81 treechildren:-moz-tree-cell {
82   padding: 0px 2px 0px 2px;
83 }
84
85 treechildren:-moz-tree-cell-text {
86   color: inherit;
87   border: 2px solid transparent;
88 }
89
90 treechildren:-moz-tree-cell-text(selected) {
91   color: #FFFFFF;
92 }
93
94 treechildren:-moz-tree-cell-text(selected, focus) {
95   color: #FFFFFF;
96 }
97
98 /* ::::: lines connecting cells ::::: */
99
100 treechildren:-moz-tree-line {
101   visibility: hidden;
102 }
103
104 /*
105 treechildren:-moz-tree-line {
106   border: 1px dotted grey;
107 }
108
109 treechildren:-moz-tree-line(selected, focus) {
110   border: 1px dotted black;
111 }
112 */
113
114 /* ::::: tree separator ::::: */
115
116 treechildren:-moz-tree-separator {
117   border: 1px outset #CCD0DD;
118 }
119
120 /* ::::: drop feedback ::::: */
121
122 treechildren:-moz-tree-cell-text(dropOn) {
123   background-color: #336699;
124   color: #FFFFFF;
125 }
126
127 treechildren:-moz-tree-drop-feedback {
128   background-color: #336699;
129   width: 50px;
130   height: 2px;
131   margin-left: 5px;
132 }
133
134 treechildren:-moz-tree-drop-feedback(selected) {
135   background-color: #FFFFFF;
136 }
137
138 /* ::::: tree progress meter ::::: */
139
140 treechildren:-moz-tree-progressmeter {
141   margin: 0px 0px;
142   border: 1px inset #CCD0DD;
143   background-color: #999999;
144   color: #6699CC;
145 }
146
147 treechildren:-moz-tree-progressmeter(progressUndetermined) {
148   list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
149   background-color: #CCD0DD;
150 }
151
152 treechildren:-moz-tree-cell-text(progressmeter) {
153   margin: 2px 4px;
154 }
155
156 /* ::::: tree columns ::::: */
157
158 treecol { 
159   -moz-box-align: center;
160   -moz-box-pack: center;
161   border: 1px outset #CCD0DD;
162   background-color: #CCD0DD;
163   color: #000000;
164   padding: 1px 4px;
165 }
166
167 treecolpicker { 
168   -moz-box-align: center;
169   -moz-box-pack: center;
170   border: 1px solid transparent;
171   background-color: #CCD0DD;
172   padding: 1px 0px;
173 }
174
175 .treecol-image {
176   padding: 1px;
177 }
178   
179 .treecol-text {
180   margin: 0px !important;
181   padding: 0px !important;
182 }
183
184 treecol[hideheader="true"] {
185   border: none;
186   padding: 0;
187 }
188
189 /* ..... internal box ..... */
190
191 treecol:hover:active {
192   border: 1px solid #666699;
193   padding: 2px 3px 0px 5px;
194 }
195
196 treecolpicker:hover:active {
197   border: 1px solid #666699;
198 }
199
200 .treecol-image:hover:active {
201   padding: 2px 0px 0px 2px;
202 }
203
204 /* ::::: column drag and drop styles ::::: */
205
206 treecol[dragging="true"] {
207   border: 1px solid transparent;
208   background-color: #336699;
209   color: #000000;
210 }
211
212 treecol[insertafter="true"] {
213   border-right: 1px solid #000000;
214 }
215
216 treecol[insertbefore="true"] {
217   border-left: 1px solid #000000;
218 }
219
220 treechildren:-moz-tree-column(insertbefore) {
221   border-left: 1px solid #000000;
222 }
223
224 treechildren:-moz-tree-column(insertafter) {
225   border-right: 1px solid #000000;
226 }
227
228 /* ::::: sort direction indicator :::::  */
229
230 .treecol-sortdirection {
231   list-style-image: none;
232 }
233
234 .sortDirectionIndicator[sortDirection="ascending"] .treecol-sortdirection {
235   list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
236 }
237
238 .sortDirectionIndicator[sortDirection="descending"] .treecol-sortdirection {
239   list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
240 }
241
242 /* ::::: column picker :::::  */
243
244 .tree-columnpicker-icon {
245   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
246 }
247
248 /* ::::: twisty :::::  */
249
250 treechildren:-moz-tree-twisty {
251   padding-right: 2px;
252   padding-top: 1px;
253   width: 11px; /* The image's width is 11 pixels */
254   list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
255 }
256   
257 treechildren:-moz-tree-twisty(open) {
258   width: 11px; /* The image's width is 11 pixels */
259   list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
260 }
261
262 treechildren:-moz-tree-indentation {
263   width: 11px;
264 }
265
266 /* ::::: gridline style ::::: */
267
268 treechildren.gridlines:-moz-tree-cell {
269   border-right: 1px solid green;
270   border-bottom: 1px solid green;
271 }
272
273 treechildren.gridlines:-moz-tree-row {
274   border: none;
275 }