/*
 * The contents of this file are subject to the Netscape Public
 * License Version 1.1 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of
 * the License at http://www.mozilla.org/NPL/
 *
 * Software distributed under the License is distributed on an "AS
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * rights and limitations under the License.
 *
 * The Original Code is Mozilla Communicator client code, released
 * March 31, 1998.
 *
 * The Initial Developer of the Original Code is Netscape
 * Communications Corporation. Portions created by Netscape are
 * Copyright (C) 1998-2001 Netscape Communications Corporation. All
 * Rights Reserved.
 *
 * Contributor(s):
 *   Joe Hewitt (hewitt@netscape.com)
 */

/* ===== tree.css =======================================================
  == Styles used by XUL tree-related elements.
  ======================================================================= */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* ::::: tree ::::: */

tree {
  border: none;
  border-spacing: 0px;
  background-color: #FFFFFF;
  color: #000000;
}

tree.inset {
  margin: 2px 4px;
  border-top: 1px solid #A8B5C6;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  border-left: 1px solid #A8B5C6;
}

tree.inset > .tree-container-treerows {
  border: 1px solid #757C8A;
}

/* ::::: treeitem ::::: */

treeitem {
  list-style-image: none;
}

/* ::::: treerow ::::: */

treerow {
  border-right: 1px solid transparent;
  border-left: 1px solid transparent;
}

treeitem[selected="true"] > treerow {
  background-color: #C2D0D0;
  color: #000000;
}

tree:focus > treechildren treeitem[selected="true"] > treerow,
treeitem[dd-dropon="true"] > treerow {
  background-color: #486380;
  color: #FFFFFF;
}

tree:focus > treechildren treeitem[selected="true"][current="true"] > treerow,
tree:focus > treechildren treeitem[selected="true"][current="true"] > treerow > treecell {
  border-color: #768AA0;
}

treehead > treeitem > treerow,
treehead > treerow {
  border: none;
}

/* :::::: treecell ::::: */

treecell {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  padding: 0px 0px 1px 2px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ::::: iconic treecell ::::: */

.tree-cell-icon,
.tree-cell-primary-icon,
.tree-cell-primary-icon-inline-edit-folder {
  padding-right: 2px;
  list-style-image: inherit;
}

.treecell-indent > .tree-cell-primary-icon {
  padding-left: 14px;
}

treeitem[container="true"] > treerow > .treecell-indent > .tree-cell-primary-icon {
  padding-left: 0px;
}

/* :::::: header treecell ::::: */

.treecell-header,
.treecell-inset-header,
.treecell-header-image {
  border-top: 1px solid #EDEDED !important;
  border-right: 1px solid #6E7070 !important;
  border-bottom: 1px solid #6E7070 !important;
  border-left: 1px solid #EDEDED !important;
  padding: 0px;
  background-color: #C2D0D0;
  color: #000000;
}

.treecell-header-box,
.treecell-header-image-box {
  border-top: 1px solid #C2D0D0;
  border-right: 1px solid #A4ACAC;
  border-bottom: 1px solid #A4ACAC;
  border-left: 1px solid #C2D0D0;
  vertical-align: middle;
}

.treecell-header-box {
  padding: 0px 4px 0px 4px;
}

.treecell-header-image-box {
  padding: 0px 1px 0px 1px;
}

.treecell-header:hover:active,
.treecell-header-image:hover:active,
.treecell-inset-header:hover:active {
  border: 1px solid #A4ACAC !important;
}

.treecell-header:hover:active > .treecell-header-box,
.treecell-inset-header:hover:active > .treecell-header-box,
.treecell-header-image:hover:active > .treecell-header-image-box {
  border-top: 1px solid transparent;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid transparent;
}

.treecell-header:hover:active > .treecell-header-box,
.treecell-inset-header:hover:active > .treecell-header-box {
  padding: 1px 4px 0px 5px;
}

.treecell-header-image:hover:active > .treecell-header-image-box {
  padding: 1px 1px 0px 2px;
}

.treecell-image {
  padding: 0px;
}

/* ::::: property list treecell ::::: */

treecell.propertylist {
  border-right: 1px solid #C2D0D0;
  border-bottom: 1px solid #C2D0D0;
  padding-left: 5px;
}

/* ::::: treecell-editable ::::: */

treerow[mode="inline-edit"] {
  background-color: transparent !important;
}

treerow[mode="inline-edit"] > .treecell-editable {
  border: none;
}

.inline-edit-cell-box {
  margin-left: 2px;
}

.inline-edit-cell-box[mode="edit"] {
  margin-left: 0px;
}

.textfield-inline-edit {
  margin: 0px !important;
  border: 1px solid #000000 !important;
}

.textfield-inline-edit > .textfield-internal-box {
  border: none !important;
  padding: 1px !important;
}

/* ::::: twisty ::::: */

.tree-cell-twisty {
  -moz-user-focus: ignore;
  padding-right: 2px;
  list-style-image: url("chrome://global/skin/tree/twisty-clsd.gif");
}

treeitem[container="true"][open="true"] > treerow > treecell > .tree-cell-twisty {
  list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
}

.tree-cell-twisty[disabled="true"] {
  list-style-image: none;
}

treeitem[empty="true"] > treerow > treecell > .tree-cell-twisty {
  visibility: hidden;
}

/* ::::: sort direction indicator ::::: */

.tree-header-sortdirection {
  list-style-image: none;
}

.sortDirectionIndicator[sortDirection="ascending"] > .treecell-header-box > .tree-header-sortdirection {
  list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
}

.sortDirectionIndicator[sortDirection="descending"] > .treecell-header-box > .tree-header-sortdirection {
  list-style-image: url("chrome://global/skin/tree/sort-dsc.gif");
}

/* ::::: column picker ::::: */

.treecell-popup-icon {
  list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
}

