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>
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.
36 * ***** END LICENSE BLOCK ***** */
38 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
40 /******** Tree widget **********/
42 /** basic tree ****************************************************
43 * basic tree widget for use in main windows where no decoration
48 border : 1px inset #CCD0DD;
49 margin : 1px 3px 2px 3px;
50 background-color : white;
54 .tree-container-treerows[dragover="true"][dragdroptree="true"]
58 .tree-container-treerows
62 .tree-container-treerows[dragdroptree="true"]
66 treeitem[selected="true"] > treerow
69 background-color : #336699;
74 list-style-image : none;
79 border : 1px solid transparent;
82 treehead > treeitem > treerow,
90 padding : 0px 0px 1px 2px;
94 tree:focus > treechildren treeitem[selected="true"] > treerow,
95 treeitem[dd-dropon="true"] > treerow
98 background-color : #336699;
101 tree:focus > treechildren treeitem[selected="true"][current="true"] > treerow
103 border : 1px dotted #9999CC;
106 .treecell-header-image
108 list-style-image : inherit;
112 .treecell-inset-header,
113 .treecell-header-image
115 border : 1px outset #CCD0DD;
117 background-color : #CCD0DD;
121 .treecell-header-box,
122 .treecell-header-image-box
128 padding : 0px 4px 0px 4px;
131 .treecell-header-text
136 .treecell-header-image-box
138 padding : 0px 1px 0px 1px;
141 .treecell-header:hover:active,
142 .treecell-header-image:hover:active,
143 .treecell-inset-header:hover:active
145 border : 1px inset #CCD0DD;
148 .treecell-header:hover:active > .treecell-header-box,
149 .treecell-inset-header:hover:active > .treecell-header-box,
150 .treecell-header-image:hover:active > .treecell-header-image-box
152 border-top : 1px solid transparent;
154 border-bottom : none;
155 border-left : 1px solid transparent;
158 .treecell-header:hover:active > .treecell-header-box,
159 .treecell-inset-header:hover:active > .treecell-header-box
161 padding : 1px 4px 0px 5px;
164 .treecell-header-image:hover:active > .treecell-header-image-box
166 padding : 1px 1px 0px 2px;
174 /* slimline sidebar treeheaders */
175 .treecell-header.treecell-header-sidebarpanel,
176 .treecell-inset-header.treecell-header-sidebarpanel
178 padding : 0px 1px 1px 3px;
181 .treecell-header-sidebarpanel > .treecell-header-box
185 /** class="propertylist" ******************************************
186 * class for cells in grid-formatted property lists.
189 treecell.propertylist
191 border-right : 1px solid #CCD0DD;
192 border-bottom : 1px solid #CCD0DD;
196 .tree-cell-primary-icon,
197 .tree-cell-primary-icon-inline-edit-folder
199 list-style-image : inherit;
205 list-style-image : inherit;
211 list-style-image : url("chrome://global/skin/twisty-closed.gif");
212 -moz-user-focus : ignore;
216 .treecell-indent > .tree-cell-primary-icon
221 treeitem[container="true"] > treerow > .treecell-indent > .tree-cell-primary-icon
226 .tree-cell-twisty[disabled="true"]
228 list-style-image : none;
231 treeitem[container="true"][open="true"] > treerow > treecell > .tree-cell-twisty
233 list-style-image : url("chrome://global/skin/twisty-open.gif");
236 treeitem[empty="true"] > treerow > treecell > .tree-cell-twisty {
240 /* tree header with sort direction indicators */
242 .tree-header-sortdirection
244 list-style-image : none;
247 .sortDirectionIndicator[sortDirection="ascending"] > .treecell-header-box > .tree-header-sortdirection
249 list-style-image : url("chrome://global/skin/sortAscending.gif");
252 .sortDirectionIndicator[sortDirection="descending"] > .treecell-header-box > .tree-header-sortdirection
254 list-style-image : url("chrome://global/skin/sortDescending.gif");
257 /* column selection popup menu icon */
261 list-style-image : url("chrome://global/skin/columnselect.gif");
264 /* Inline Editable Treecells */
266 treerow[mode="inline-edit"]
268 border-top : none !important;
269 border-bottom : none !important;
270 background-color : transparent !important;
273 .inline-edit-cell-box
278 .inline-edit-cell-box[mode="edit"]
283 .inline-edit-cell-box[mode="edit"]