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 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
42 /* ===== tree.css =======================================================
43 == Styles used by the XUL tree element.
44 ======================================================================= */
46 /* ::::: tree ::::: */
50 border: 1px inset #CCD0DD;
51 background-color: #FFFFFF;
55 /* ::::: tree focusring ::::: */
57 /* deactivated, looks to bad for me in EarlyBlue
58 .focusring > .tree-rows > .tree-bodybox {
59 border: 1px solid transparent;
62 .focusring:focus > .tree-rows > .tree-bodybox {
63 border: 1px solid #000000;
67 /* ::::: tree rows ::::: */
69 tree[selstyle="primary"] > treechildren:-moz-tree-row,
70 treechildren:-moz-tree-row {
71 border: 1px solid transparent;
72 background-color: transparent;
77 treechildren:-moz-tree-row(selected) {
78 background-color: #808080;
81 treechildren:-moz-tree-row(selected, focus) {
82 background-color: #336699;
85 treechildren:-moz-tree-row(current, focus) {
86 border: 1px dotted #9999CC;
89 treechildren:-moz-tree-row(selected, current, focus) {
90 border: 1px dotted #666699;
93 /* ::::: tree cells ::::: */
95 treechildren:-moz-tree-cell {
96 padding: 0px 2px 0px 2px;
99 tree[selstyle="primary"] > treechildren:-moz-tree-cell-text,
100 treechildren:-moz-tree-cell-text {
102 border: 2px solid transparent;
105 treechildren:-moz-tree-cell-text(selected) {
109 tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, selected) {
110 background-color: #808080;
114 treechildren:-moz-tree-cell-text(selected, focus) {
118 tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, selected, focus) {
119 background-color: #336699;
123 tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, current, focus) {
124 border: 1px dotted #9999CC;
127 tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, selected, current, focus) {
128 border: 1px dotted #666699;
131 /* ::::: lines connecting cells ::::: */
133 tree[selstyle="primary"] > treechildren:-moz-tree-line,
134 treechildren:-moz-tree-line {
139 treechildren:-moz-tree-line {
140 border: 1px dotted grey;
143 treechildren:-moz-tree-line(selected, focus) {
144 border: 1px dotted black;
148 /* ::::: tree separator ::::: */
150 treechildren:-moz-tree-separator {
151 border: 1px outset #CCD0DD;
154 /* ::::: drop feedback ::::: */
156 tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, dropOn),
157 treechildren:-moz-tree-cell-text(dropOn) {
158 background-color: #336699;
162 treechildren:-moz-tree-drop-feedback {
163 background-color: #336699;
169 treechildren:-moz-tree-drop-feedback(selected) {
170 background-color: #FFFFFF;
173 /* ::::: tree progress meter ::::: */
175 treechildren:-moz-tree-progressmeter {
177 border: 1px inset #CCD0DD;
178 background-color: #999999;
182 treechildren:-moz-tree-progressmeter(progressUndetermined) {
183 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
184 background-color: #CCD0DD;
187 treechildren:-moz-tree-cell-text(progressmeter) {
191 /* ::::: tree columns ::::: */
194 -moz-box-align: center;
195 -moz-box-pack: center;
196 border: 1px outset #CCD0DD;
197 background-color: #CCD0DD;
203 -moz-box-align: center;
204 -moz-box-pack: center;
205 border: 1px solid transparent;
206 background-color: #CCD0DD;
215 margin: 0px !important;
216 padding: 0px !important;
219 treecol[hideheader="true"] {
224 /* ..... internal box ..... */
226 treecol:hover:active {
227 border: 1px solid #666699;
228 padding: 2px 3px 0px 5px;
231 treecolpicker:hover:active {
232 border: 1px solid #666699;
235 .treecol-image:hover:active {
236 padding: 2px 0px 0px 2px;
239 /* ::::: column drag and drop styles ::::: */
241 treecol[dragging="true"] {
242 border: 1px solid transparent;
243 background-color: #336699;
247 treecol[insertafter="true"] {
248 border-right: 1px solid #000000;
251 treecol[insertbefore="true"] {
252 border-left: 1px solid #000000;
255 treechildren:-moz-tree-column(insertbefore) {
256 border-left: 1px solid #000000;
259 treechildren:-moz-tree-column(insertafter) {
260 border-right: 1px solid #000000;
263 /* ::::: sort direction indicator ::::: */
265 .treecol-sortdirection {
266 list-style-image: none;
269 .sortDirectionIndicator[sortDirection="ascending"] .treecol-sortdirection {
270 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
273 .sortDirectionIndicator[sortDirection="descending"] .treecol-sortdirection {
274 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
277 /* ::::: column picker ::::: */
279 .tree-columnpicker-icon {
280 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
283 /* ::::: twisty ::::: */
285 treechildren:-moz-tree-twisty {
288 width: 11px; /* The image's width is 11 pixels */
289 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
292 treechildren:-moz-tree-twisty(open) {
293 width: 11px; /* The image's width is 11 pixels */
294 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
297 treechildren:-moz-tree-indentation {
301 /* ::::: gridline style ::::: */
303 treechildren.gridlines:-moz-tree-cell {
304 border-right: 1px solid green;
305 border-bottom: 1px solid green;
308 treechildren.gridlines:-moz-tree-row {