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

/* ===== messengercompose.css ===========================================
  == Styles for the main Messenger Compose window.
  ======================================================================= */

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

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

/* ::::: image precacheing ::::: */
 
#resource_bundle_messengercompose {
   -moz-binding          : url("chrome://messenger/skin/resources.xml#resource_bundle_messengercompose");
}
 
/* ::::: primary toolbar masthead ::::: */

#composeToolbar > .toolbar-holder > .toolbar-primary-icon {
  background-image: url("chrome://messenger/skin/messengercompose/icons/mast-msgcomp.gif");
}

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

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

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

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

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

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

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

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

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

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

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

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

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

#spellingButton {
  list-style-image: url("chrome://editor/skin/messengercompose/btn1/spell.gif");
}

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

#spellingButton:hover {
  list-style-image: url("chrome://editor/skin/messengercompose/btn1/spell-hov.gif");
} 

#spellingButton:hover:active {
  list-style-image: url("chrome://editor/skin/messengercompose/btn1/spell-act.gif");
}

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

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

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

#button-save:hover:active {
  list-style-image: url("chrome://editor/skin/btn1/savefile-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");
}

/* ::::: header toolbar ::::: */

#attachmentBucket {
  -moz-user-focus: normal;
}

/* ..... "From:" menulist menuitems ..... */

/* MOVE TO CONTENT */
.identity-popup-item {
  -moz-binding: url("chrome://messenger/content/messengercompose/mailComposeBindings.xml#fromMenuitem");
}

.composemenu-text-2 {
  color: gray;
  font-style: italic;
}

/* ::::: addressing widget ::::: */

#MsgHeadersToolbar {
  background: #B1BDC9;
}

#addressingWidgetTree {
  -moz-user-focus: none;
  width: 0px;
  height: 80px;
}  

#listcol-addressingWidget {
  width: 9em;
  border-right: 1px solid #C4CADC;
}

#addressingWidgetTree > treechildren > treeitem > treerow,
#addressingWidgetTree > treechildren > treeitem[selected="true"] > treerow {
  border: none;
  background-color: inherit;
  color: inherit;
}

.treecell-addressingWidget {
  border-bottom: 1px solid #C4CADC;
  padding: 0px;
  vertical-align: middle;
}

.treecell-addressingWidget:first-child {
  border-top: none;
}

.dummy-row-cell:first-child {
  border-top: none;
  border-bottom: 1px solid #C4CADC;
}

.aw-menulist {
  margin: 0px;
  border-top: none !important;
  border-left: none !important;
  border-color: #A5AECE;
}

.person-icon {
  -moz-user-focus: ignore;
  cursor: default !important;
  margin: 2px 4px 2px 4px;
  border: none;
  list-style-image: url("chrome://messenger/skin/addressbook/icons/person.gif");
}

/* ::::: status bar border tweaks ::::: */

statusbarpanel,
#component-bar,
.progressmeter-statusbar {
  border-top: 1px solid #E0ECF6 !important;
}

/* ::::: askSendFormat dialog ::::: */

#askSendFormat {
  width: 40em;
}

#askImageBox {
  vertical-align: top;
}

#convertYes {
  list-style-image: url("chrome://global/skin/icons/alert-question.gif");
}

#convertAltering {
  list-style-image: url("chrome://global/skin/icons/alert-question.gif");
}

#convertNo {
  list-style-image: url("chrome://global/skin/icons/alert-exclam.gif");
}

/* Workaround for bug 50217. Please remove this rule, when this bug is fixed. */
#convertDefault {
  list-style-image: url("chrome://global/skin/icons/alert-question.gif");
}

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

#compose-toolbar-sizer {
  border-top: none;
}

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

.label {
  color: #000000;
}
