/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* ===== 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-box:-moz-lwtheme {
  background-color: transparent;
}

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

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

.sidebarheader-main:-moz-lwtheme {
  -moz-appearance: none;
  background-color: transparent;
  color: inherit;
}

#sidebar-panel-picker:not(:-moz-lwtheme) {
  /* would override hover/active styles, so let lwtheme do it in its own way */
  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://global/skin/icons/loading_16.png");
}

/* ::::: 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:-moz-lwtheme {
  text-shadow: none;
}

.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");
}
