/*
 * 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)
 */

/* ===== outliner.css ===================================================
  == Styles used by the XUL outline element.
  ======================================================================= */

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

/* ::::: outliner ::::: */

outliner {
  border: 2px solid;
  -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
  -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  background-color: -moz-Field;
  color: -moz-FieldText;
  margin: 0px 4px 0px 4px;
}

/* ::::: outliner rows ::::: */

outlinerchildren:-moz-outliner-row {
  border: 1px solid transparent;
  height: 18px;
}

outlinerchildren:-moz-outliner-row(selected) {
  background-color: -moz-Dialog;
}

outlinerchildren:-moz-outliner-row(selected, focus) {
  background-color: Highlight;
}

outlinerchildren:-moz-outliner-row(current, focus) {
  border: 1px dotted #F5DB95;
}

/* ::::: outliner cells ::::: */

outlinerchildren:-moz-outliner-cell {
  padding: 0px 2px 0px 2px;
}

outlinerchildren:-moz-outliner-cell-text {
  color: inherit;
}

outlinerchildren:-moz-outliner-cell-text(selected) {
  color: -moz-DialogText;
}

outlinerchildren:-moz-outliner-cell-text(selected, focus) {
  color: HighlightText;
}

outlinerchildren:-moz-outliner-cell-text(primary) {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

outlinerchildren:-moz-outliner-cell-text(primary, drop) {
  background-color: Highlight;
  color: HighlightText;
}

outlinerchildren:-moz-outliner-cell-text(primary, dropBefore) {
  border-top: 1px solid Highlight;
}

outlinerchildren:-moz-outliner-cell-text(selected, primary, dropBefore) {
  border-top: 1px solid HighlightText;
}

outlinerchildren:-moz-outliner-cell-text(primary, dropAfter) {
  border-bottom: 1px solid Highlight;
}

outlinerchildren:-moz-outliner-cell-text(selected, primary, dropAfter) {
  border-bottom: 1px solid HighlightText;
}


/* ::::: lines connecting cells ::::: */

outlinerchildren:-moz-outliner-line {
  border: 1px dotted ThreeDShadow;
}

outlinerchildren:-moz-outliner-line(selected, focus) {
  border: 1px dotted HighlightText;
}

outlinerchildren:-moz-outliner-separator {
  border-top: 1px solid ThreeDShadow;
  border-bottom: 1px solid ThreeDHighlight;
}

/* ::::: outliner columns ::::: */

outlinercol,
outlinercolpicker { 
  -moz-box-align: center;
  -moz-box-pack: center;
  border: 2px solid;
  -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
  -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
  background-color: -moz-Dialog;
  color: -moz-DialogText;
  padding: 0px 4px;
}

.outlinercol-image {
  padding: 0px 1px;
}

.outlinercol-text {
  margin: 0px !important;
}

/* ..... internal box ..... */

outlinercol:hover:active,
outlinercolpicker:hover:active {
  border-top: 2px solid;
  border-right: 1px solid;
  border-bottom: 1px solid;
  border-left: 2px solid;
  -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  -moz-border-right-colors: ThreeDShadow;
  -moz-border-bottom-colors: ThreeDShadow;
  -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  padding: 1px 4px 0px 5px;
}

.outlinercol-image:hover:active {
  padding: 1px 1px 0px 2px;
}

/* ::::: column drag and drop styles ::::: */

outlinercol[dragging="true"] {
  -moz-border-top-colors: ThreeDDarkShadow transparent !important;
  -moz-border-right-colors: ThreeDDarkShadow transparent!important;
  -moz-border-bottom-colors: ThreeDDarkShadow transparent !important;
  -moz-border-left-colors: ThreeDDarkShadow transparent !important;
  background-color: ThreeDShadow !important;
  color: ThreeDHighlight !important;
}

outlinercol[insertafter="true"] {
  -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
}

outlinercol[insertbefore="true"] {
  -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
}

outlinerchildren:-moz-outliner-column(insertbefore) {
  border-left: 1px solid ThreeDShadow;
}

outlinerchildren:-moz-outliner-column(insertafter) {
  border-right: 1px solid ThreeDShadow;
}

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

.outlinercol-sortdirection {
  list-style-image: none;
}

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

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

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

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

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

outlinerchildren:-moz-outliner-twisty {
  padding-right: 2px;
  width: 10px; /* The image's width is 10 pixels */
  list-style-image: url("chrome://global/skin/tree/twisty-clsd.gif");
}

outlinerchildren:-moz-outliner-twisty(open) {
  width: 10px; /* The image's width is 10 pixels */
  list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
}

outlinerchildren:-moz-outliner-indentation {
  width: 16px;
}
