/* ***** 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):
 *   Stefan Hermes <stefanh@inbox.com>
 *   Ian Neal <iann_bugzilla@blueyonder.co.uk>
 *
 * 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 ***** */

/* ===== mailWindow1.css ================================================
  == Styles for the main Mail window in the default layout scheme.
  ======================================================================= */

@import url("chrome://messenger/skin/");
@import url("chrome://messenger/skin/primaryToolbar.css");
@import url("chrome://messenger/skin/folderMenus.css");

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

#messengerWindow {
  -moz-appearance: none;
  background-color: #EEEEEE;
}

/* :::::
   :: Make sure the min height is small so we can
   :: resize the pane vertically -EDV
   ::::: */

#messagepanebox {
  min-height: 10px;
  height: 0px;
}

#messagepanebox:-moz-lwtheme {
  background-color: -moz-dialog;
}

#folderPaneBox {
  background-color: #D6DDE5;
}

#folderPaneBox:-moz-window-inactive {
  background-color: #E8E8E8;
}

#searchToolbar {
  -moz-appearance: none;
  background-color: #CDCDCD;
  background-image: url("chrome://communicator/skin/toolbar/toolbar-gradient34.png");
  background-repeat: repeat-x;
  border-bottom: 1px solid #9F9F9F;
}

#searchToolbar:-moz-lwtheme {
  background-image: none;
  background-color: transparent;
}

/* Leopard-styled "zero-width" vertical splitter */

#folderpane-splitter {
  border: solid #B3B3B3;
  border-width: 0 1px 0 0;
  min-width: 1px;
  background-image: none;
}

/* Make sure users find the splitter when it's collapsed... */

#folderpane-splitter[state="collapsed"] {
  min-width: 5px;
  background-color: #D6DDE5;
}

/* Thick horisontal splitter */

#threadpane-splitter {
  background-color: -moz-dialog;
  border: solid #B3B3B3;
  border-width: 0 0 0 1px;
}

/* Thick vertical splitter */

#threadpane-splitter[orient="vertical"] {
  border: solid #A5A5A5;
  border-width: 1px 0;
}

/* ..... tree adjustments ..... */
 
#folderTree {
  min-width: 1px;
  background-color: transparent;
}

#folderTree > treechildren::-moz-tree-row {
  background-color: transparent;
}

#folderTree > treechildren::-moz-tree-row(selected) {
  background-color: -moz-mac-secondaryhighlight;
}

#folderTree > treechildren::-moz-tree-row(selected, focus) {
  background-color: Highlight;
}

#threadTree {
  min-width: 1px;
}

#locationIcon {
  list-style-image: none;
}

/* ..... message pane adjustments ..... */

#msgHeaderView {
  border-left: none !important;
}

#messagepane {
  border: 1px solid transparent;
  border-right: none;
}

#messagepanebox[focusring="true"] > #messagepanewrapper > #messagepane {
  border-color: -moz-mac-focusring;
}

/* ..... folder pane adjustments ..... */

.folderview-cycler,
.folderview-cycler > .toolbarbutton-icon {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.folderview-cycler > .toolbarbutton-text {
  display: none;
}

.folderview-cycler[dir="prev"],
.folderview-cycler[dir="next"]:-moz-locale-dir(rtl) {
  list-style-image: url("chrome://messenger/skin/icons/spin-buttons.png");
  -moz-image-region: rect(0 15px 16px 0);
}

.folderview-cycler[dir="next"],
.folderview-cycler[dir="prev"]:-moz-locale-dir(rtl) {
  list-style-image: url("chrome://messenger/skin/icons/spin-buttons.png");
  -moz-image-region: rect(0 31px 16px 15px);
}

.folderview-cycler:active {
  list-style-image: url("chrome://messenger/skin/icons/spin-buttons-active.png") !important;
}

/* ..... tabmail ..... */

.tabmail-strip {
  border-bottom: 1px solid #A1A1A1;
  padding-bottom: 3px;
  background-color: #E8E8E8;
}

.tabmail-strip:-moz-lwtheme {
  background-color: transparent;
}

.tab-close-button {
  margin: 0;
}

.tab-scrollbutton-up,
.tab-scrollbutton-down {
  border: 0;
  padding: 0 4px;
  margin: 0;
}

.tab-scrollbutton-up:-moz-locale-dir(ltr),
.tab-scrollbutton-down:-moz-locale-dir(rtl) {
  border-right: 2px solid;
  -moz-border-right-colors: rgba(0, 0, 0, 0.19) transparent;
  list-style-image: url("chrome://messenger/skin/icons/tab-arrow-left.png");
  -moz-image-region: rect(0, 7px, 11px, 0);
}

.tab-scrollbutton-up[disabled="true"]:-moz-locale-dir(ltr),
.tab-scrollbutton-down[disabled="true"]:-moz-locale-dir(rtl) {
  -moz-image-region: rect(0, 14px, 11px, 7px);
  -moz-border-right-colors: transparent transparent;
}

.tab-scrollbutton-down:-moz-locale-dir(ltr),
.tab-scrollbutton-up:-moz-locale-dir(rtl) {
  border-left: 2px solid;
  -moz-border-left-colors: rgba(0, 0, 0, 0.19) transparent;
  list-style-image: url("chrome://messenger/skin/icons/tab-arrow-right.png");
  -moz-image-region: rect(0, 7px, 11px, 0);
}

.tab-scrollbutton-down[disabled="true"]:-moz-locale-dir(ltr),
.tab-scrollbutton-up[disabled="true"]:-moz-locale-dir(rtl) {
  -moz-image-region: rect(0, 14px, 11px, 7px);
  -moz-border-left-colors: transparent transparent;
}

.tab-scrollbutton-up:hover:not([disabled="true"]),
.tab-scrollbutton-down:hover:not([disabled="true"]) {
  background-color: rgba(0, 0, 0, 0.1);
}

.tab-scrollbutton-up:hover:active:not([disabled="true"]),
.tab-scrollbutton-down:hover:active:not([disabled="true"]) {
  background-color: rgba(0, 0, 0 , 0.2);
}

.tabmail-tab[type="message"] .tab-icon {
  margin-top: -2px;
}

.tabmail-tab[type="folder"][NewMessages="true"],
.tabmail-tab[type="folder"][IsServer="true"] {
  font-weight: bold;
}
