f0d4e070eaf928baeddf7c935b9ae160e4940341
[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 /* ..... internal box ..... */
161
162 treecol:hover:active {
163   border: 1px solid #666699;
164   padding: 2px 3px 0px 5px;
165 }
166
167 treecolpicker:hover:active {
168   border: 1px solid #666699;
169 }
170
171 .treecol-image:hover:active {
172   padding: 2px 0px 0px 2px;
173 }
174
175 /* ::::: column drag and drop styles ::::: */
176
177 treecol[dragging="true"] {
178   border: 1px solid transparent;
179   background-color: #336699;
180   color: #000000;
181 }
182
183 treecol[insertafter="true"] {
184   border-right: 1px solid #000000;
185 }
186
187 treecol[insertbefore="true"] {
188   border-left: 1px solid #000000;
189 }
190
191 treechildren:-moz-tree-column(insertbefore) {
192   border-left: 1px solid #000000;
193 }
194
195 treechildren:-moz-tree-column(insertafter) {
196   border-right: 1px solid #000000;
197 }
198
199 /* ::::: sort direction indicator :::::  */
200
201 .treecol-sortdirection {
202   list-style-image: none;
203 }
204
205 .sortDirectionIndicator[sortDirection="ascending"] .treecol-sortdirection {
206   list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
207 }
208
209 .sortDirectionIndicator[sortDirection="descending"] .treecol-sortdirection {
210   list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
211 }
212
213 /* ::::: column picker :::::  */
214
215 .tree-columnpicker-icon {
216   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
217 }
218
219 /* ::::: twisty :::::  */
220
221 treechildren:-moz-tree-twisty {
222   padding-right: 2px;
223   width: 12px; /* The image's width is 12 pixels */
224   list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
225 }
226   
227 treechildren:-moz-tree-twisty(open) {
228   width: 12px; /* The image's width is 12 pixels */
229   list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
230 }
231
232 treechildren:-moz-tree-indentation {
233   width: 10px;
234 }
235
236 /* ::::: gridline style ::::: */
237
238 treechildren.gridlines:-moz-tree-cell {
239   border-right: 1px solid green;
240   border-bottom: 1px solid green;
241 }
242
243 treechildren.gridlines:-moz-tree-row {
244   border: none;
245 }