1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
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/
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
14 * The Original Code is "Classic" theme of mozilla.org code.
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.
22 * Robert Kaiser <KaiRo@KaiRo.at>
23 * Joe Hewitt (hewitt@netscape.com)
24 * Dean Tessman (dean_tessman@hotmail.com)
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.
38 * ***** END LICENSE BLOCK ***** */
40 /* ===== tree.css =======================================================
41 == Styles used by the XUL tree element.
42 ======================================================================= */
44 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
46 /* ::::: tree ::::: */
49 -moz-border-radius: 5px;
51 border: 1px solid #9C9CFF;
52 background-color: #000000;
56 /* ::::: tree focusring ::::: */
58 .focusring > .tree-stack > .tree-rows > .tree-bodybox {
59 outline: 1px solid transparent;
63 .focusring:focus > .tree-stack > .tree-rows > .tree-bodybox {
64 outline: 1px dotted #008484;
67 /* ::::: tree rows ::::: */
69 treechildren::-moz-tree-row {
70 border: 1px solid transparent;
71 background-color: transparent;
76 treechildren::-moz-tree-row(selected) {
77 background-color: #008484;
81 treechildren::-moz-tree-row(selected, focus) {
82 background-color: #008484;
86 treechildren::-moz-tree-row(current, focus) {
87 border: 1px dotted #008484;
90 treechildren::-moz-tree-row(selected, current, focus) {
91 border: 1px dotted #FF9F00;
94 tree[seltype="cell"] > treechildren::-moz-tree-row,
95 tree[seltype="text"] > treechildren::-moz-tree-row {
97 background-color: transparent;
100 /* ::::: tree cells ::::: */
102 treechildren::-moz-tree-cell {
105 -moz-padding-start: 1px;
106 -moz-padding-end: 1px;
109 tree[seltype="cell"] > treechildren::-moz-tree-cell-text,
110 tree[seltype="text"] > treechildren::-moz-tree-cell-text,
111 treechildren::-moz-tree-cell-text {
115 tree[seltype="cell"] > treechildren::-moz-tree-cell {
116 border: 1px solid transparent;
120 tree[seltype="text"] > treechildren::-moz-tree-cell-text {
121 border: 1px solid transparent;
124 -moz-padding-start: 1px;
125 -moz-padding-end: 1px;
128 treechildren::-moz-tree-cell-text(selected) {
132 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
133 background-color: #008484;
135 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) {
139 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
140 background-color: #008484;
144 treechildren::-moz-tree-cell-text(selected, focus) {
148 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
149 background-color: #008484;
151 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
155 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
156 background-color: #008484;
160 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
161 border: 1px dotted #008484;
164 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
165 border: 1px dotted #008484;
168 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) {
169 border: 1px dotted #FF9F00;
172 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) {
173 border: 1px dotted #FF9F00;
176 /* ::::: lines connecting cells ::::: */
178 tree[seltype="cell"] > treechildren::-moz-tree-line,
179 tree[seltype="text"] > treechildren::-moz-tree-line,
180 treechildren::-moz-tree-line {
184 tree[seltype="cell"] > treechildren::-moz-tree-line,
185 tree[seltype="text"] > treechildren::-moz-tree-line,
186 treechildren::-moz-tree-line {
187 border: 1px dotted #9C9CFF;
190 tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
191 treechildren::-moz-tree-line(selected) {
192 border: 1px dotted #000000;
195 /* ::::: tree separator ::::: */
197 treechildren::-moz-tree-separator {
199 border: 1px solid #9C9CFF;
203 /* ::::: drop feedback ::::: */
205 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
206 tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
207 treechildren::-moz-tree-cell-text(dropOn) {
208 background-color: #008484;
212 treechildren::-moz-tree-drop-feedback {
213 background-color: #008484;
216 -moz-margin-start: 5px;
219 treechildren::-moz-tree-drop-feedback(selected) {
220 background-color: #FFCF00;
223 /* ::::: tree checkbox ::::: */
225 treechildren::-moz-tree-checkbox {
226 list-style-image: url("chrome://global/skin/tree/checkbox.gif");
229 treechildren::-moz-tree-checkbox(checked) {
230 list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif");
233 /* ::::: tree progress meter ::::: */
235 treechildren::-moz-tree-progressmeter {
237 border: 1px solid #FF9F00;
238 background-color: #000000;
242 treechildren::-moz-tree-progressmeter(progressUndetermined) {
243 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
244 background-color: #008484;
247 treechildren::-moz-tree-cell-text(progressmeter) {
251 /* ::::: tree columns ::::: */
254 -moz-box-align: center;
255 -moz-box-pack: center;
256 border: 1px solid #FF9F00;
257 background-color: #9C9CFF;
262 treecol:first-child {
263 -moz-border-radius-topleft: 3px;
267 -moz-border-radius-topright: 3px;
271 -moz-border-radius-topright: 3px;
272 -moz-box-align: center;
273 -moz-box-pack: center;
274 border: 1px solid transparent;
275 background-color: #000000;
284 margin: 0px !important;
285 padding: 0px !important;
288 treecol[hideheader="true"] {
293 /* ..... internal box ..... */
295 treecol:hover:active {
296 border: 1px solid #FFCF00;
299 -moz-padding-start: 5px;
300 -moz-padding-end: 3px;
303 treecolpicker:hover {
304 background-color: #FFCF00;
307 treecolpicker:hover:active {
308 border: 1px solid #FFCF00;
309 background-color: #FF9F00;
312 .treecol-image:hover:active {
315 -moz-padding-start: 2px;
316 -moz-padding-end: 0px;
319 /* ::::: column drag and drop styles ::::: */
321 treecol[dragging="true"] {
322 border: 1px solid transparent;
323 background-color: #008484;
327 treecol[insertafter="true"] {
328 border-right: 1px solid #FFCF00;
331 treecol[insertbefore="true"] {
332 border-left: 1px solid #FFCF00;
335 treechildren::-moz-tree-column(insertbefore) {
336 border-left: 1px solid #FFCF00;
339 treechildren::-moz-tree-column(insertafter) {
340 border-right: 1px solid #FFCF00;
343 /* ::::: sort direction indicator ::::: */
345 .treecol-sortdirection {
346 list-style-image: none;
347 width: 8px; /* The image's width is 7 pixels */
350 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"] {
351 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
354 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"] {
355 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
358 /* ::::: column picker ::::: */
360 .tree-columnpicker-icon {
361 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
364 treecolpicker:hover > .tree-columnpicker-icon,
365 treecolpicker:hover:active > .tree-columnpicker-icon {
366 list-style-image: url("chrome://global/skin/tree/columnpicker-hover.gif");
369 /* ::::: twisty ::::: */
371 treechildren::-moz-tree-twisty {
372 -moz-padding-end: 1px;
374 width: 11px; /* The image's width is 11 pixels */
375 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
378 treechildren::-moz-tree-twisty(open) {
379 width: 11px; /* The image's width is 11 pixels */
380 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
383 treechildren::-moz-tree-indentation {
387 /* ::::: gridline style ::::: */
389 treechildren.gridlines::-moz-tree-cell {
390 border-right: 1px solid #9C9CFF;
391 border-bottom: 1px solid #9C9CFF;
394 treechildren.gridlines::-moz-tree-row {
398 /* ::::: alternating background ::::: */
400 treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
401 background-color: #404000;
404 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
405 background-color: #008484;
409 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
410 background-color: #008484;
414 /* ::::: editable tree ::::: */
416 treechildren::-moz-tree-row(selected, editing) {
417 background-color: transparent;
421 treechildren::-moz-tree-cell-text(selected, editing) {
426 border: 1px solid #9C9CFF;
428 -moz-margin-start: -4px;