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)
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.
37 * ***** END LICENSE BLOCK ***** */
39 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
41 /* ===== tree.css =======================================================
42 == Styles used by the XUL tree element.
43 ======================================================================= */
45 /* ::::: tree ::::: */
49 border: 1px inset #CCD0DD;
50 background-color: #FFFFFF;
54 /* ::::: tree rows ::::: */
56 treechildren:-moz-tree-row {
57 border: 1px solid transparent;
61 treechildren:-moz-tree-row(selected) {
62 background-color: #808080;
65 treechildren:-moz-tree-row(selected, focus) {
66 background-color: #336699;
69 treechildren:-moz-tree-row(current, focus) {
70 border: 1px dotted #9999CC;
73 /* ::::: tree cells ::::: */
75 treechildren:-moz-tree-cell {
76 padding: 0px 2px 0px 2px;
79 treechildren:-moz-tree-cell-text {
81 border: 2px solid transparent;
84 treechildren:-moz-tree-cell-text(selected) {
88 treechildren:-moz-tree-cell-text(selected, focus) {
92 /* ::::: lines connecting cells ::::: */
94 treechildren:-moz-tree-line {
99 treechildren:-moz-tree-line {
100 border: 1px dotted grey;
103 treechildren:-moz-tree-line(selected, focus) {
104 border: 1px dotted black;
108 /* ::::: tree separator ::::: */
110 treechildren:-moz-tree-separator {
111 border: 1px outset #CCD0DD;
114 /* ::::: drop feedback ::::: */
116 treechildren:-moz-tree-cell-text(dropOn) {
117 background-color: #336699;
121 treechildren:-moz-tree-drop-feedback {
122 background-color: #336699;
128 treechildren:-moz-tree-drop-feedback(selected) {
129 background-color: #FFFFFF;
132 /* ::::: tree columns ::::: */
135 -moz-box-align: center;
136 -moz-box-pack: center;
137 border: 1px outset #CCD0DD;
138 background-color: #CCD0DD;
144 -moz-box-align: center;
145 -moz-box-pack: center;
146 border: 1px solid transparent;
147 background-color: #CCD0DD;
156 margin: 0px !important;
157 padding: 0px !important;
160 /* ..... internal box ..... */
162 treecol:hover:active {
163 border: 1px solid #666699;
164 padding: 2px 3px 0px 5px;
167 treecolpicker:hover:active {
168 border: 1px solid #666699;
171 .treecol-image:hover:active {
172 padding: 2px 0px 0px 2px;
175 /* ::::: column drag and drop styles ::::: */
177 treecol[dragging="true"] {
178 border: 1px solid transparent;
179 background-color: #336699;
183 treecol[insertafter="true"] {
184 border-right: 1px solid #000000;
187 treecol[insertbefore="true"] {
188 border-left: 1px solid #000000;
191 treechildren:-moz-tree-column(insertbefore) {
192 border-left: 1px solid #000000;
195 treechildren:-moz-tree-column(insertafter) {
196 border-right: 1px solid #000000;
199 /* ::::: sort direction indicator ::::: */
201 .treecol-sortdirection {
202 list-style-image: none;
205 .sortDirectionIndicator[sortDirection="ascending"] .treecol-sortdirection {
206 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
209 .sortDirectionIndicator[sortDirection="descending"] .treecol-sortdirection {
210 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
213 /* ::::: column picker ::::: */
215 .tree-columnpicker-icon {
216 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
219 /* ::::: twisty ::::: */
221 treechildren:-moz-tree-twisty {
223 width: 12px; /* The image's width is 12 pixels */
224 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
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");
232 treechildren:-moz-tree-indentation {
236 /* ::::: gridline style ::::: */
238 treechildren.gridlines:-moz-tree-cell {
239 border-right: 1px solid green;
240 border-bottom: 1px solid green;
243 treechildren.gridlines:-moz-tree-row {