/* ***** BEGIN LICENSE BLOCK *****
 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
 *
 * 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.org code.
 *
 * The Initial Developer of the Original Code is 
 * Netscape Communications Corporation.
 * Portions created by the Initial Developer are Copyright (C) 1998
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *  Joe Hewitt <hewitt@netscape.com>
 *  Dan Mosedale <dmose@netscape.com>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either 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 NPL, 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 NPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

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

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

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

/* ::::: primary toolbar masthead ::::: */

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

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

.toolbarbutton-1 {
  list-style-image: url("chrome://messenger/skin/icons/btn1.gif");
}

#button-send {
  -moz-image-region: rect(374px 49px 407px 0);
}

#button-send:hover {
  -moz-image-region: rect(374px 99px 407px 50px);
} 

#button-send:hover:active {
  -moz-image-region: rect(374px 149px 407px 100px);
} 

#button-send[disabled="true"] {
  -moz-image-region: rect(374px 199px 407px 150px) !important;
} 

#button-address {
  -moz-image-region: rect(306px 49px 339px 0);
}

#button-address:hover {
  -moz-image-region: rect(306px 99px 339px 50px);
} 

#button-address:hover:active {
  -moz-image-region: rect(306px 149px 339px 100px);
} 

#button-address[disabled="true"] {
  -moz-image-region: rect(306px 199px 339px 150px) !important;
} 

#button-attach {
  -moz-image-region: rect(340px 49px 373px 0);
}

#button-attach[buttonover="true"] {
  -moz-image-region: rect(340px 99px 373px 50px);
} 

#button-attach[buttondown="true"] {
  -moz-image-region: rect(340px 149px 373px 100px);
} 

#button-attach[disabled="true"] {
  -moz-image-region: rect(340px 199px 373px 150px) !important;
} 

#spellingButton {
  list-style-image: url("chrome://editor/skin/icons/btn1.gif");
  -moz-image-region: rect(272px 49px 305px 0);
}

#spellingButton:hover {
  -moz-image-region: rect(272px 99px 305px 50px);
}

#spellingButton:hover:active {
  -moz-image-region: rect(272px 149px 305px 100px);
}

#spellingButton[disabled="true"] {
  -moz-image-region: rect(272px 199px 305px 150px) !important;
}

#button-save {
  list-style-image: url("chrome://editor/skin/icons/btn1.gif");
  -moz-image-region: rect(238px 49px 271px 0);
}

#button-save[buttonover="true"] {
  -moz-image-region: rect(238px 99px 271px 50px);
} 

#button-save[buttondown="true"] {
  -moz-image-region: rect(238px 149px 271px 100px);
} 

#button-save[disabled="true"] {
  -moz-image-region: rect(238px 199px 271px 150px) !important;
} 

/* ::::: special toolbar colors ::::: */

#MsgHeadersToolbar {
  background: #B1BDC9;
}

#FormatToolbar {
  background: url("chrome://global/skin/toolbar/tb-mid.gif") #C7D0D9 repeat-x top;
}

#MsgHeadersToolbar > toolbargrippy,
#MsgHeadersToolbar > .toolbar-holder,
#FormatToolbar > toolbargrippy,
#FormatToolbar > .toolbar-holder {
  border-top: 1px solid #CED6DD;
  border-right: 1px solid #95A0AD;
  border-bottom: 1px solid #95A0AD;
  border-left: 1px solid #DAE3ED;
}

#MsgHeadersToolbar > toolbargrippy:hover:active,
#FormatToolbar > toolbargrippy:hover:active {
  border-color: #67737E;
}

.toolbox-top {
  border-bottom: none;
}

#attachmentbucket-sizer {
  border-top: none;
  border-bottom: none;
  background-color: #B1BDC9;
}

#compose-toolbar-sizer {
  border-top-width: 1px;
  -moz-border-top-colors: #EEF0F3;
}

/* ::::: autocomplete icons ::::: */

treechildren::-moz-tree-cell-text(default-match) {
  margin: 2px -3px 2px 15px;
  border: none;
}

treechildren::-moz-tree-image(local-abook) {
  margin: 2px -3px 2px 4px;
  list-style-image: url("chrome://messenger/skin/addressbook/icons/myaddrbk.gif");
}

treechildren::-moz-tree-image(remote-abook) {
  margin: 2px -4px 2px 3px;
  list-style-image: url("chrome://messenger/skin/addressbook/icons/directory.gif");
}

treechildren::-moz-tree-image(remote-err) {
  margin: 2px -4px 2px 3px;
  list-style-image: url("chrome://messenger/skin/addressbook/icons/directory-down.gif");
}

.identity-popup-item                                                            
{                                                                               
  -moz-binding: url(chrome://messenger/content/messengercompose/mailComposeBindings.xml#fromMenuitem);
}     
 
.composemenu-text-2
{
  font-style: italic;
  color: #8C99AB;
}
