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