/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla 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/MPL/
 *
 * 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 the Initial Developer are Copyright (C) 1998-1999
 * 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 of 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 MPL, 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 MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

/* ===== sidebar.css ====================================================
  == Styles used by the Sidebar panel and Sidebar tabs.
  ======================================================================= */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  
#sidebar-box {
  border-left: 1px solid ThreeDShadow;
  border-right: 1px solid ThreeDHighlight;
  background-color: AppWorkspace;
}

/* ::::: sidebar header ::::: */

.sidebarheader-main {
  -moz-appearance: toolbar;
  border: 1px outset InactiveCaption;
  background-color: InactiveCaption;
  color: CaptionText;
  padding-top: 1px;
  padding-bottom: 1px;
  -moz-padding-start: 6px;
  -moz-padding-end: 2px;
}

#sidebar-panel-picker {
  color: inherit;
}

#sidebar-panel-picker > .toolbarbutton-dropmarker {
  padding: 0 2px;
  list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
}

.sidebar-header-text {
  font-weight: bold;
}

/* ..... close button ..... */

#sidebar-close-button {
  -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton-image");
  padding-top: 1px;
  padding-bottom: 1px;
  -moz-padding-start: 4px;
  -moz-padding-end: 3px;
  list-style-image: url("chrome://communicator/skin/icons/close-button.gif");
}

/* ::::: sidebar panel ::::: */

.sidebar-iframe-no-panels,
.loadarea {
  background-color: -moz-Field;
  color: -moz-FieldText;
}

.iframe-panel, .browser-sidebar {
  border-left: 1px solid ThreeDHighlight;
  border-bottom: 1px solid ThreeDShadow;
  border-right: 1px solid ThreeDShadow;
}  

/* ::::: loading info ::::: */

.text-panel-loading {
  margin: 5px 0px;
}

.text-panel-loading[loading="false"] {
  -moz-margin-start: 11px;
}

.image-panel-loading {
  margin: 5px;
  list-style-image: url("chrome://communicator/skin/icons/loading.gif");
}

/* ::::: sidebar tabs ::::: */

.box-texttab {
  -moz-binding: url("chrome://communicator/skin/sidebar/sidebarBindings.xml#sbtab");
  -moz-box-align: center;
  cursor: pointer;
  background-color: -moz-Dialog;
  color: -moz-DialogText;
}

.box-texttab,
.box-texttab[selected="true"],
.box-texttab[selected="true"]:hover,
.box-texttab[selected="true"]:hover:active {
  border: 2px solid;
  -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
  -moz-border-right-colors: ThreeDShadow ThreeDLightShadow;
  -moz-border-bottom-colors: ThreeDShadow  ThreeDLightShadow;
  -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
  padding-top: 2px;
  padding-bottom: 2px;
  -moz-padding-start: 0px;
  -moz-padding-end: 1px;
}

.box-texttab:hover {
  -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  -moz-border-bottom-colors: ThreeDDarkShadow  ThreeDShadow;
}

.box-texttab:hover:active {
  -moz-border-top-colors: ThreeDShadow ThreeDLightShadow;
  -moz-border-right-colors: ThreeDShadow ThreeDLightShadow;
  -moz-border-bottom-colors: ThreeDShadow  ThreeDLightShadow;
  -moz-border-left-colors: ThreeDShadow ThreeDLightShadow;
}

.sbtab-label {
  margin: 0px !important;
}

.sbtab-twisty {
  margin: 0px 7px;
  list-style-image: url("chrome://communicator/skin/sidebar/sbtab-twisty.gif");
}

.sbtab-texture {
  margin: 2px 0px;
  background: url("chrome://global/skin/toolbar/tbgrip-texture.gif") repeat-y;
  width: 12px;
  height: 12px;
}

.box-texttab[selected="true"] {
  font-weight: bold;
  cursor: default;
}

.sbtab-twisty[selected="true"] {
  list-style-image: url("chrome://communicator/skin/sidebar/sbtab-twisty-open.gif");
}

/* ::::: sidebar navigation buttons ::::: */

.sidebar-nav-button {
  -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton-image");
  padding: 5px 0px;
}

.tab-fwd {
  list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
}

.tab-back {
  list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
}
