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

/* ===== messenger.css ==================================================
  == Styles shared throughout the Messenger application.
  ======================================================================= */

@import url("chrome://communicator/skin/");
@import url("chrome://communicator/skin/sidebar/sidebar.css");

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

/* ::::: primary toolbar buttons ::::: */

#button-getmsg {
  -moz-binding: url("chrome://communicator/skin/widgetBindings.xml#menubutton-dual-2");
  margin: 3px 3px 1px 3px;
  list-style-image: url("chrome://messenger/skin/btn1/getmsg.gif");
}

#button-getmsg[disabled="true"],
#button-getmsg[disabled="true"] > .menubutton-dual-stack
    > .menubutton-dual-button:hover,
#button-getmsg[disabled="true"] > .menubutton-dual-stack
    > .menubutton-dual-button:hover:active
{
  list-style-image: url("chrome://messenger/skin/btn1/getmsg-dis.gif");
}

#button-getmsg > .menubutton-dual-stack > .menubutton-dual-button:hover {
  list-style-image: url("chrome://messenger/skin/btn1/getmsg-hov.gif");
}

#button-getmsg > .menubutton-dual-stack
    > .menubutton-dual-button:hover:active
{
  list-style-image: url("chrome://messenger/skin/btn1/getmsg-act.gif");
}

#button-newmsg {
  list-style-image: url("chrome://messenger/skin/btn1/newmsg.gif");
}

#button-newmsg[disabled="true"],
#button-newmsg[disabled="true"]:hover,
#button-newmsg[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/newmsg-dis.gif");
}

#button-newmsg:hover {
  list-style-image: url("chrome://messenger/skin/btn1/newmsg-hov.gif");
}

#button-newmsg:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/newmsg-act.gif");
}

#button-reply {
  list-style-image: url("chrome://messenger/skin/btn1/reply.gif");
}

#button-reply[disabled="true"],
#button-reply[disabled="true"]:hover,
#button-reply[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/reply-dis.gif");
}

#button-reply:hover {
  list-style-image: url("chrome://messenger/skin/btn1/reply-hov.gif");
}

#button-reply:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/reply-act.gif");
}

#button-replyall {
  list-style-image: url("chrome://messenger/skin/btn1/replyall.gif");
}

#button-replyall[disabled="true"],
#button-replyall[disabled="true"]:hover,
#button-replyall[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/replyall-dis.gif");
}

#button-replyall:hover {
  list-style-image: url("chrome://messenger/skin/btn1/replyall-hov.gif");
}

#button-replyall:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/replyall-act.gif");
}

#button-forward {
  list-style-image: url("chrome://messenger/skin/btn1/forward.gif");
}

#button-forward[disabled="true"],
#button-forward[disabled="true"]:hover,
#button-forward[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/forward-dis.gif");
}

#button-forward:hover {
  list-style-image: url("chrome://messenger/skin/btn1/forward-hov.gif");
}

#button-forward:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/forward-act.gif");
}

#button-file {
  list-style-image: url("chrome://messenger/skin/btn1/file.gif");
}

#button-file[disabled="true"],
#button-file[disabled="true"]:hover,
#button-file[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/file-dis.gif");
}

#button-file:hover {
  list-style-image: url("chrome://messenger/skin/btn1/file-hov.gif");
}

#button-file:hover:active,
#button-file[open="true"] {
  list-style-image: url("chrome://messenger/skin/btn1/file-act.gif");
}

#button-next {
  list-style-image: url("chrome://messenger/skin/btn1/next.gif");
}

#button-next[disabled="true"],
#button-next[disabled="true"]:hover,
#button-next[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/next-dis.gif");
}

#button-next:hover {
  list-style-image: url("chrome://messenger/skin/btn1/next-hov.gif");
}

#button-next:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/next-act.gif");
}

#button-delete {
  list-style-image: url("chrome://messenger/skin/btn1/trash.gif");
}

#button-delete[disabled="true"],
#button-delete[disabled="true"]:hover,
#button-delete[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/trash-dis.gif");
}

#button-delete:hover {
  list-style-image: url("chrome://messenger/skin/btn1/trash-hov.gif");
}

#button-delete:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/trash-act.gif");
}

#button-mark {
  -moz-binding: url("chrome://communicator/skin/widgetBindings.xml#menubutton-dual-2");
  margin: 3px 3px 1px 3px;
  list-style-image: url("chrome://messenger/skin/btn1/mark.gif");
}

#button-mark[disabled="true"],
#button-mark[disabled="true"] > .menubutton-dual-stack
    > .menubutton-dual-button:hover,
#button-mark[disabled="true"] > .menubutton-dual-stack
    > .menubutton-dual-button:hover:active
{
  list-style-image: url("chrome://messenger/skin/btn1/mark-dis.gif");
}

#button-mark > .menubutton-dual-stack > .menubutton-dual-button:hover {
  list-style-image: url("chrome://messenger/skin/btn1/mark-hov.gif");
}

#button-mark > .menubutton-dual-stack > .menubutton-dual-button:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/mark-act.gif");
}

#button-print {
  -moz-binding: url("chrome://communicator/skin/widgetBindings.xml#menubutton-dual-2");
  margin: 3px 3px 1px 3px;
  list-style-image: url("chrome://communicator/skin/btn1/print.gif");
}

#button-print[disabled="true"],
#button-print[disabled="true"] > .menubutton-dual-stack
    > .menubutton-dual-button:hover,
#button-print[disabled="true"] > .menubutton-dual-stack
    > .menubutton-dual-button:hover:active
{
  list-style-image: url("chrome://communicator/skin/btn1/print-dis.gif");
}

#button-print > .menubutton-dual-stack > .menubutton-dual-button:hover {
  list-style-image: url("chrome://communicator/skin/btn1/print-hov.gif");
}

#button-print > .menubutton-dual-stack > .menubutton-dual-button:hover:active {
  list-style-image: url("chrome://communicator/skin/btn1/print-act.gif");
}

#button-stop {
  list-style-image: url("chrome://communicator/skin/btn1/stop.gif");
}

#button-stop[disabled="true"],
#button-stop[disabled="true"]:hover,
#button-stop[disabled="true"]:hover:active {
  list-style-image: url("chrome://communicator/skin/btn1/stop-dis.gif");
}

#button-stop:hover {
  list-style-image: url("chrome://communicator/skin/btn1/stop-hov.gif");
}

#button-stop:hover:active {
  list-style-image: url("chrome://communicator/skin/btn1/stop-act.gif");
}

/* ::::: folder icons for menus ::::: */

.folderMenuItem {
  list-style-image: url("chrome://messenger/skin/icons/folder-closed.gif");
}

.folderMenuItem[open="true"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-open.gif");
}

/* ..... special folders ..... */

.folderMenuItem[SpecialFolder="Inbox"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-inbox.gif");
}

.folderMenuItem[SpecialFolder="Inbox"][open="true"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-inbox-open.gif");
}

.folderMenuItem[SpecialFolder="Sent"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-sent.gif");
}

.folderMenuItem[SpecialFolder="Sent"][open="true"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-sent-open.gif");
}

.folderMenuItem[SpecialFolder="Drafts"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-draft.gif");
}

.folderMenuItem[SpecialFolder="Drafts"][open="true"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-draft-open.gif");
}

.folderMenuItem[SpecialFolder="Templates"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-template.gif");
}

.folderMenuItem[SpecialFolder="Templates"][open="true"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-template-open.gif");
}

.folderMenuItem[SpecialFolder="Trash"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-trash.gif");
}

.folderMenuItem[SpecialFolder="Trash"][open="true"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-trash-open.gif");
}

/* ..... servers ..... */

.folderMenuItem[IsServer="true"] {
  list-style-image: url("chrome://messenger/skin/icons/server-mail.gif");
}

.folderMenuItem[IsServer="true"][ServerType="imap"][IsSecure="true"] {
  list-style-image: url("chrome://messenger/skin/icons/server-remote-lock.gif");
}

.folderMenuItem[IsServer="true"][ServerType="none"] {
  list-style-image: url("chrome://messenger/skin/icons/server-local.gif");
}

/* ..... newsgroups ..... */

.folderMenuItem[IsServer="true"][ServerType="nntp"][IsSecure="true"] {
  list-style-image: url("chrome://messenger/skin/icons/server-news-lock.gif");
}

.folderMenuItem[IsServer="true"][ServerType="nntp"] {
  list-style-image: url("chrome://messenger/skin/icons/server-news.gif");
}

.folderMenuItem[ServerType="nntp"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-newsgroup.gif");
}

/* ::::: button-like menus ::::: */

menu.push {
  margin: 2px;
  border: 1px outset #B4C3D4;
  padding: 2px;
  background: transparent;
  text-align: center;
}

menu.push:hover:active,
menu.push[open] {
  border-style: inset;
  padding: 3px 1px 1px 3px;
}

menu.push[disabled="true"],
menu.push[disabled="true"]:hover,
menu.push[disabled="true"]:hover:active {
  border: 1px solid #85959E;
  color: #85959E;
}

/* ::::: Mail Filter dialog :::::: */

.enabledcol {
  list-style-image: url("chrome://messenger/skin/icons/readcol-read.gif");
}

.enabledcol[value="true"] {
  list-style-image: url("chrome://messenger/skin/icons/readcol-unread.gif");
}

searchattribute {
  -moz-binding: url("chrome://messenger/content/mailWidgets.xml#searchattribute");
}

searchoperator {
  -moz-binding: url("chrome://messenger/content/mailWidgets.xml#searchoperator");
}

searchvalue {
  -moz-binding: url("chrome://messenger/content/mailWidgets.xml#searchvalue");
}

searchterm {
  -moz-binding: url("chrome://messenger/content/mailWidgets.xml#searchterm");
}

/* ::::: tree focus-ring border adjustments ::::: */

/* ..... status bar adjustments ..... */

#status-bar {
  border-left: 1px solid #63717B;
  border-top: none;
}

#status-bar > :first-child {
  border-left: 1px solid #000000;
}

#subscribeWindow > statusbar {
  color: #000000;
}

#subscribeWindow > statusbar,
#subscribeWindow > statusbar > :first-child {
  border-left: none;
  background-color: transparent;
}

/* ..... splitter adjustments ..... */

#sidebar-splitter {
  border: none;
}

#sidebar-splitter > .splitter-internal-box {
  border-right: none;
}

#threadpane-splitter,
#threadpane-splitter > .splitter-internal-box {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

#threadpane-splitter[state="collapsed"] {
  border-bottom: 1px solid #000000;
}

#threadpane-splitter[state="collapsed"] > .splitter-internal-box {
  border-bottom: 1px solid #63717B;
}

.gray-vertical-splitter,
.gray-vertical-splitter > .splitter-internal-box {
  border-right: none;
}

.gray-vertical-splitter > .splitter-internal-box {
  border-bottom: none;
}

#sidebar-panels-splitter,
#sidebar-panels-splitter > .splitter-internal-box {
  border-top: none;
}

/* ..... sidebar adjustments ..... */

.sidebarheader-main {
  border-bottom: 1px solid #000000;
}

/* ..... tree adjustments ..... */

#folderTree {
  border-bottom: 1px solid #C6D3D6;
  border-left: 1px solid #63717B;
}

#folderTree > .tree-container-treerows {
  border-bottom: 1px solid #7B969C;
  border-left: 1px solid #000000;
}

#threadTree {
  border-top: 1px solid #63717B;
  border-right: none;
  border-bottom: 1px solid #C6D3D6;
  border-left: 1px solid #63717B;
}

#threadTree > .tree-container-treerows {
  border-left: 1px solid #000000;
  border-bottom: 1px solid #7B969C;
}

#folderTree > treechildren,
#threadTree > treechildren {
  border: 1px solid transparent;
}

#folderTree:focus > treechildren,
#threadTree[focusring="true"] > treechildren {
  border: 1px solid black;
}

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

#messagepanebox {
  border-top: 1px solid #63717B;
  border-left: 1px solid #63717B;
  border-bottom: 1px solid #000000;
}

#msgHeaderView {
  border-top: 1px solid #000000;
  border-right: 1px solid #7B969C;
  border-left: 1px solid #000000;
}

#messagepane {
  border-left: 1px solid #000000;
}

#messagepanebox[focusring="true"] {
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  border-left: 1px solid #000000;
}

/* ..... account central adjustments ..... */

#accountCentralBox
{
  border-left: 1px solid #63717B;
  border-bottom: 1px solid #000000;
}

[name="accountCentralPane"]
{
  border-left: 1px solid #000000;
}

/* ::::: account wizard :::::: */

.awIdentityLabel {
  width: 8em;
  margin-left: 5px;
}

/* ::::: account central :::::: */

#accountCentralBox {
  background-color: #FFFFFF;
}

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

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

/* ::::: miscellany :::::: */

[hide] {
   display: none;
}

dummy.usesMailWidgets {
  -moz-binding: url("chrome://messenger/content/mailWidgets.xml#dummy");
}

spring.spacer {
  width: 5px;
  height: 5px;
}

