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 treechildren::-moz-tree-row {
71 border: 1px solid transparent;
72 background-color: transparent;
77 treechildren::-moz-tree-row(selected) {
78 background-color: #008484;
82 treechildren::-moz-tree-row(selected, focus) {
83 background-color: #008484;
87 treechildren::-moz-tree-row(current, focus) {
88 border: 1px dotted #FF9F00;
91 treechildren::-moz-tree-row(selected, current, focus) {
92 border: 1px dotted #FF9F00;
95 tree[selstyle="primary"] > treechildren::-moz-tree-row {
97 background-color: transparent;
100 /* ::::: tree cells ::::: */
102 treechildren::-moz-tree-cell {
103 padding: 0px 0px 1px 2px;
106 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text,
107 treechildren::-moz-tree-cell-text {
111 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary) {
112 border: 1px solid transparent;
113 padding: 0px 1px 1px 1px;
116 treechildren::-moz-tree-cell-text(selected) {
120 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected) {
121 background-color: #008484;
125 treechildren::-moz-tree-cell-text(selected, focus) {
129 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, focus) {
130 background-color: #008484;
134 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, current, focus) {
135 border: 1px dotted #FF9F00;
138 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, current, focus) {
139 border: 1px dotted #FF9F00;
142 /* ::::: lines connecting cells ::::: */
144 tree[selstyle="primary"] > treechildren::-moz-tree-line,
145 treechildren::-moz-tree-line {
150 treechildren::-moz-tree-line {
151 border: 1px dotted grey;
154 treechildren::-moz-tree-line(selected) {
155 border: 1px dotted black;
159 /* ::::: tree separator ::::: */
161 treechildren::-moz-tree-separator {
163 border: 1px solid #9C9CFF;
167 /* ::::: drop feedback ::::: */
169 tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, dropOn),
170 treechildren::-moz-tree-cell-text(dropOn) {
171 background-color: #008484;
175 treechildren::-moz-tree-drop-feedback {
176 background-color: #008484;
182 treechildren::-moz-tree-drop-feedback(selected) {
183 background-color: #FFCF00;
186 /* ::::: tree checkbox ::::: */
188 treechildren::-moz-tree-checkbox {
189 list-style-image: url("chrome://global/skin/tree/checkbox.gif");
192 treechildren::-moz-tree-checkbox(checked) {
193 list-style-image: url("chrome://global/skin/tree/checkbox-checked.gif");
196 /* ::::: tree progress meter ::::: */
198 treechildren::-moz-tree-progressmeter {
200 border: 1px solid #FF9F00;
201 background-color: #000000;
205 treechildren::-moz-tree-progressmeter(progressUndetermined) {
206 list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
207 background-color: #008484;
210 treechildren::-moz-tree-cell-text(progressmeter) {
214 /* ::::: tree columns ::::: */
217 -moz-box-align: center;
218 -moz-box-pack: center;
219 border: 1px solid #FF9F00;
220 background-color: #9C9CFF;
226 -moz-box-align: center;
227 -moz-box-pack: center;
228 border: 1px solid transparent;
229 background-color: #000000;
238 margin: 0px !important;
239 padding: 0px !important;
242 treecol[hideheader="true"] {
247 /* ..... internal box ..... */
249 treecol:hover:active {
250 border: 1px solid #FFCF00;
251 padding: 2px 3px 0px 5px;
254 treecolpicker:hover {
255 background-color: #FFCF00;
258 treecolpicker:hover:active {
259 border: 1px solid #FFCF00;
260 background-color: #FF9F00;
263 .treecol-image:hover:active {
264 padding: 2px 0px 0px 2px;
267 /* ::::: column drag and drop styles ::::: */
269 treecol[dragging="true"] {
270 border: 1px solid transparent;
271 background-color: #008484;
275 treecol[insertafter="true"] {
276 border-right: 1px solid #FFCF00;
279 treecol[insertbefore="true"] {
280 border-left: 1px solid #FFCF00;
283 treechildren::-moz-tree-column(insertbefore) {
284 border-left: 1px solid #FFCF00;
287 treechildren::-moz-tree-column(insertafter) {
288 border-right: 1px solid #FFCF00;
291 /* ::::: sort direction indicator ::::: */
293 .treecol-sortdirection {
294 list-style-image: none;
295 width: 8px; /* The image's width is 7 pixels */
298 .treecol-sortdirection[sortDirection="ascending"] {
299 list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
302 .treecol-sortdirection[sortDirection="descending"] {
303 list-style-image: url("chrome://global/skin/tree/sort-dsc.gif");
306 /* ::::: column picker ::::: */
308 .tree-columnpicker-icon {
309 list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
312 treecolpicker:hover > .tree-columnpicker-icon,
313 treecolpicker:hover:active > .tree-columnpicker-icon {
314 list-style-image: url("chrome://global/skin/tree/columnpicker-hover.gif");
317 /* ::::: twisty ::::: */
319 treechildren::-moz-tree-twisty {
322 width: 11px; /* The image's width is 11 pixels */
323 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
326 treechildren::-moz-tree-twisty(open) {
327 width: 11px; /* The image's width is 11 pixels */
328 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
331 treechildren::-moz-tree-indentation {
335 /* ::::: gridline style ::::: */
337 treechildren.gridlines::-moz-tree-cell {
338 border-right: 1px solid green;
339 border-bottom: 1px solid green;
342 treechildren.gridlines::-moz-tree-row {
346 /* ::::: alternating background ::::: */
348 treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
349 background-color: #6000CF;
352 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
353 background-color: #E7ADE7;
356 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
357 background-color: #E7ADE7;