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 ::::: */
49 -moz-border-radius: 5px;
51 border: 1px solid #9C9CFF;
52 background-color: #000000;
56 /* ::::: tree focusring ::::: */
58 /* deactivated, looks too bad for me in LCARStrek
59 .focusring > .tree-rows > .tree-bodybox {
60 border: 1px solid transparent;
63 .focusring:focus > .tree-rows > .tree-bodybox {
64 border-color: #FFCF00;
68 /* ::::: tree rows ::::: */
70 tree[selstyle="primary"] > treechildren:-moz-tree-row,
71 treechildren:-moz-tree-row {
72 border: 1px solid transparent;
73 background-color: transparent;
78 treechildren:-moz-tree-row(selected) {
79 background-color: #008484;
83 treechildren:-moz-tree-row(selected, focus) {
84 background-color: #008484;
88 treechildren:-moz-tree-row(current, focus) {
89 border: 1px dotted #FF9F00;
92 treechildren:-moz-tree-row(selected, current, focus) {
93 border: 1px dotted #FF9F00;
96 /* ::::: tree cells ::::: */
98 treechildren:-moz-tree-cell {
99 padding: 0px 0px 1px 2px;
102 tree[selstyle="primary"] > treechildren:-moz-tree-cell-text,
103 treechildren:-moz-tree-cell-text {
105 border: 2px solid transparent;
109 treechildren:-moz-tree-cell-text(selected) {
113 tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, selected) {
114 background-color: #808080;
118 treechildren:-moz-tree-cell-text(selected, focus) {
122 tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, selected, focus) {
123 background-color: #336699;
127 tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, current, focus) {
128 border: 1px dotted #9999CC;
131 tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, selected, current, focus) {
132 border: 1px dotted #666699;
136 /* ::::: lines connecting cells ::::: */
138 tree[selstyle="primary"] > treechildren:-moz-tree-line,
139 treechildren:-moz-tree-line {
144 treechildren:-moz-tree-line {
145 border: 1px dotted grey;
148 treechildren:-moz-tree-line(selected) {
149 border: 1px dotted black;
153 /* ::::: tree separator ::::: */
155 treechildren:-moz-tree-separator {
156 border: 1px solid #9C9CFF;
159 /* ::::: drop feedback ::::: */
161 tree[selstyle="primary"] > treechildren:-moz-tree-cell-text(primary, dropOn),
162 treechildren:-moz-tree-cell-text(dropOn) {
163 background-color: #008484;
167 treechildren:-moz-tree-drop-feedback {
168 background-color: #008484;
174 treechildren:-moz-tree-drop-feedback(selected) {
175 background-color: #FFCF00;
178 /* ::::: tree progress meter ::::: */
180 treechildren:-moz-tree-progressmeter {
182 border: 1px solid #FF9F00;
183 background-color: #000000;
187 treechildren:-moz-tree-progressmeter(progressUndetermined) {
188 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
189 background-color: #008484;
192 treechildren:-moz-tree-cell-text(progressmeter) {
196 /* ::::: tree columns ::::: */
199 -moz-box-align: center;
200 -moz-box-pack: center;
201 border: 1px solid #FF9F00;
202 background-color: #9C9CFF;
208 -moz-box-align: center;
209 -moz-box-pack: center;
210 border: 1px solid transparent;
211 background-color: #000000;
220 margin: 0px !important;
221 padding: 0px !important;
224 treecol[hideheader="true"] {
229 /* ..... internal box ..... */
231 treecol:hover:active {
232 border: 1px solid #FFCF00;
233 padding: 2px 3px 0px 5px;
236 treecolpicker:hover {
237 background-color: #FFCF00;
240 treecolpicker:hover:active {
241 border: 1px solid #FFCF00;
242 background-color: #FF9F00;
245 .treecol-image:hover:active {
246 padding: 2px 0px 0px 2px;
249 /* ::::: column drag and drop styles ::::: */
251 treecol[dragging="true"] {
252 border: 1px solid transparent;
253 background-color: #008484;
257 treecol[insertafter="true"] {
258 border-right: 1px solid #FFCF00;
261 treecol[insertbefore="true"] {
262 border-left: 1px solid #FFCF00;
265 treechildren:-moz-tree-column(insertbefore) {
266 border-left: 1px solid #FFCF00;
269 treechildren:-moz-tree-column(insertafter) {
270 border-right: 1px solid #FFCF00;
273 /* ::::: sort direction indicator ::::: */
275 .treecol-sortdirection {
276 list-style-image: none;
279 .sortDirectionIndicator[sortDirection="ascending"] .treecol-sortdirection {
280 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
283 .sortDirectionIndicator[sortDirection="descending"] .treecol-sortdirection {
284 list-style-image: url("chrome://global/skin/tree/sort-desc.gif");
287 /* ::::: column picker ::::: */
289 .tree-columnpicker-icon {
290 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
293 treecolpicker:hover > .tree-columnpicker-icon,
294 treecolpicker:hover:active > .tree-columnpicker-icon {
295 list-style-image: url("chrome://global/skin/tree/columnpicker-hover.gif");
298 /* ::::: twisty ::::: */
300 treechildren:-moz-tree-twisty {
303 width: 11px; /* The image's width is 11 pixels */
304 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
307 treechildren:-moz-tree-twisty(open) {
308 width: 11px; /* The image's width is 11 pixels */
309 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
312 treechildren:-moz-tree-indentation {
316 /* ::::: gridline style ::::: */
318 treechildren.gridlines:-moz-tree-cell {
319 border-right: 1px solid green;
320 border-bottom: 1px solid green;
323 treechildren.gridlines:-moz-tree-row {