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