/* ***** BEGIN LICENSE BLOCK *****
 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
 *
 * 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.org code.
 *
 * The Initial Developer of the Original Code is 
 * Netscape Communications Corporation.
 * Portions created by the Initial Developer are Copyright (C) 1998
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *  Joe Hewitt <hewitt@netscape.com>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or 
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the NPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the NPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

/* ===== 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: #BEC3D3 #5D616E;
  -moz-border-right-colors: #F8FAFE #5D616E;
  -moz-border-bottom-colors: #F8FAFE #5D616E;
  -moz-border-left-colors: #BEC3D3 #5D616E;
  background-color: #FFFFFF;
  color: #000000;
  margin: 0px 4px 0px 4px;
}

outlinerchildren {
  -moz-user-select: none;
}

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

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

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

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

outlinerchildren:-moz-outliner-row(current, focus) {
  border-top-color: #000000;
  border-bottom-color: #000000;
}

/* ::::: 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: #000000;
}

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

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: #424F63;
  color: #FFFFFF;
}

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

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

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

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


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

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

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

outlinerchildren:-moz-outliner-separator {
  border-top: 1px solid #7A8490;
  border-bottom: 1px solid #FEFEFE;
}

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

outlinercol,
outlinercolpicker {
  -moz-box-align: center;
  -moz-box-pack: center;
  border: 2px solid;
  -moz-border-top-colors: #EEF0F3 #C7D0D9;
  -moz-border-right-colors: #63676B #A5ABB0;
  -moz-border-bottom-colors: #63676B #A5ABB0;
  -moz-border-left-colors: #EEF0F3 #C7D0D9;
  background-color: #C7D0D9;
  color: #000000;
  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: #A5ABB0 #C7D0D9;
  -moz-border-right-colors: #A5ABB0;
  -moz-border-bottom-colors: #A5ABB0;
  -moz-border-left-colors: #A5ABB0 #C7D0D9;
  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: #000000 #90A1B3 !important;
  -moz-border-right-colors: #000000 #90A1B3 !important;
  -moz-border-bottom-colors: #000000 #90A1B3 !important;
  -moz-border-left-colors: #000000 #90A1B3 !important;
  background-color: #90A1B3 !important;
  color: #FFFFFF !important;
}

outlinercol[insertafter="true"] {
  -moz-border-right-colors: #000000 #666666;
}

outlinercol[insertbefore="true"] {
  -moz-border-left-colors: #000000 #666666;
}

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

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

/* ::::: 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;
}
