keep up with Classic trunk development
[themes.git] / EarlyBlue / global / tree.css
CommitLineData
128000f4 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>
e1597424 23 * Joe Hewitt (hewitt@netscape.com)
459f2165 24 * Dean Tessman (dean_tessman@hotmail.com)
128000f4 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");
f6e0a33f 41
e1597424 42/* ===== tree.css =======================================================
43 == Styles used by the XUL tree element.
44 ======================================================================= */
f6e0a33f 45
e1597424 46/* ::::: tree ::::: */
47
48tree {
49 border-spacing: 0px;
50 border: 1px inset #CCD0DD;
51 background-color: #FFFFFF;
52 color: #000000;
53}
54
b618d1fd 55/* ::::: tree focusring ::::: */
56
57/* deactivated, looks to bad for me in EarlyBlue
58.focusring > .tree-rows > .tree-bodybox {
59 border: 1px solid transparent;
60}
61
62.focusring:focus > .tree-rows > .tree-bodybox {
63 border: 1px solid #000000;
64}
65*/
66
e1597424 67/* ::::: tree rows ::::: */
68
b618d1fd 69tree[selstyle="primary"] > treechildren:-moz-tree-row,
e1597424 70treechildren:-moz-tree-row {
71 border: 1px solid transparent;
b618d1fd 72 background-color: transparent;
f2450795 73 min-height: 18px;
74 height: 1.3em;
e1597424 75}
76
77treechildren:-moz-tree-row(selected) {
78 background-color: #808080;
79}
80
81treechildren:-moz-tree-row(selected, focus) {
82 background-color: #336699;
83}
84
85treechildren:-moz-tree-row(current, focus) {
86 border: 1px dotted #9999CC;
87}
88
459f2165 89treechildren:-moz-tree-row(selected, current, focus) {
90 border: 1px dotted #666699;
91}
92
e1597424 93/* ::::: tree cells ::::: */
94
95treechildren:-moz-tree-cell {
96 padding: 0px 2px 0px 2px;
97}
98
b618d1fd 99tree[selstyle="primary"] > treechildren:-moz-tree-cell-text,
e1597424 100treechildren:-moz-tree-cell-text {
101 color: inherit;
102 border: 2px solid transparent;
103}
104
105treechildren:-moz-tree-cell-text(selected) {
106 color: #FFFFFF;
107}
108
b618d1fd 109tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, selected) {
110 background-color: #808080;
111 color: #FFFFFF;
112}
113
e1597424 114treechildren:-moz-tree-cell-text(selected, focus) {
115 color: #FFFFFF;
116}
117
b618d1fd 118tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, selected, focus) {
119 background-color: #336699;
120 color: #FFFFFF;
121}
122
123tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, current, focus) {
124 border: 1px dotted #9999CC;
125}
126
127tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, selected, current, focus) {
128 border: 1px dotted #666699;
129}
130
e1597424 131/* ::::: lines connecting cells ::::: */
132
b618d1fd 133tree[selstyle="primary"] > treechildren:-moz-tree-line,
e1597424 134treechildren:-moz-tree-line {
135 visibility: hidden;
136}
137
138/*
139treechildren:-moz-tree-line {
140 border: 1px dotted grey;
141}
142
143treechildren:-moz-tree-line(selected, focus) {
144 border: 1px dotted black;
145}
146*/
147
148/* ::::: tree separator ::::: */
149
150treechildren:-moz-tree-separator {
151 border: 1px outset #CCD0DD;
152}
153
154/* ::::: drop feedback ::::: */
155
b618d1fd 156tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, dropOn),
e1597424 157treechildren:-moz-tree-cell-text(dropOn) {
158 background-color: #336699;
159 color: #FFFFFF;
160}
161
162treechildren:-moz-tree-drop-feedback {
163 background-color: #336699;
164 width: 50px;
165 height: 2px;
166 margin-left: 5px;
167}
168
169treechildren:-moz-tree-drop-feedback(selected) {
170 background-color: #FFFFFF;
171}
172
f2450795 173/* ::::: tree progress meter ::::: */
174
175treechildren:-moz-tree-progressmeter {
176 margin: 0px 0px;
177 border: 1px inset #CCD0DD;
178 background-color: #999999;
179 color: #6699CC;
180}
181
182treechildren:-moz-tree-progressmeter(progressUndetermined) {
183 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
184 background-color: #CCD0DD;
185}
186
187treechildren:-moz-tree-cell-text(progressmeter) {
188 margin: 2px 4px;
189}
190
e1597424 191/* ::::: tree columns ::::: */
192
193treecol {
194 -moz-box-align: center;
195 -moz-box-pack: center;
196 border: 1px outset #CCD0DD;
197 background-color: #CCD0DD;
198 color: #000000;
199 padding: 1px 4px;
200}
201
202treecolpicker {
203 -moz-box-align: center;
204 -moz-box-pack: center;
205 border: 1px solid transparent;
206 background-color: #CCD0DD;
207 padding: 1px 0px;
208}
209
210.treecol-image {
211 padding: 1px;
212}
f6e0a33f 213
e1597424 214.treecol-text {
215 margin: 0px !important;
216 padding: 0px !important;
217}
218
cc973dd9 219treecol[hideheader="true"] {
220 border: none;
221 padding: 0;
222}
223
e1597424 224/* ..... internal box ..... */
225
226treecol:hover:active {
227 border: 1px solid #666699;
228 padding: 2px 3px 0px 5px;
229}
230
231treecolpicker:hover:active {
232 border: 1px solid #666699;
233}
234
235.treecol-image:hover:active {
236 padding: 2px 0px 0px 2px;
237}
238
239/* ::::: column drag and drop styles ::::: */
240
241treecol[dragging="true"] {
242 border: 1px solid transparent;
243 background-color: #336699;
244 color: #000000;
245}
246
247treecol[insertafter="true"] {
248 border-right: 1px solid #000000;
249}
250
251treecol[insertbefore="true"] {
252 border-left: 1px solid #000000;
253}
254
255treechildren:-moz-tree-column(insertbefore) {
256 border-left: 1px solid #000000;
257}
258
259treechildren:-moz-tree-column(insertafter) {
260 border-right: 1px solid #000000;
261}
262
263/* ::::: sort direction indicator ::::: */
264
265.treecol-sortdirection {
266 list-style-image: none;
267}
268
269.sortDirectionIndicator[sortDirection="ascending"] .treecol-sortdirection {
270 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
271}
272
273.sortDirectionIndicator[sortDirection="descending"] .treecol-sortdirection {
274 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
275}
276
277/* ::::: column picker ::::: */
278
279.tree-columnpicker-icon {
280 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
281}
282
283/* ::::: twisty ::::: */
284
285treechildren:-moz-tree-twisty {
286 padding-right: 2px;
f2450795 287 padding-top: 1px;
288 width: 11px; /* The image's width is 11 pixels */
e1597424 289 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
290}
f6e0a33f 291
e1597424 292treechildren:-moz-tree-twisty(open) {
f2450795 293 width: 11px; /* The image's width is 11 pixels */
e1597424 294 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
295}
296
297treechildren:-moz-tree-indentation {
f2450795 298 width: 11px;
e1597424 299}
300
301/* ::::: gridline style ::::: */
302
303treechildren.gridlines:-moz-tree-cell {
304 border-right: 1px solid green;
305 border-bottom: 1px solid green;
306}
307
308treechildren.gridlines:-moz-tree-row {
309 border: none;
b618d1fd 310}