/* ***** 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-2001
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Joe Hewitt (hewitt@netscape.com)
 *
 * 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 ***** */

/* ===== 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 buttons ::::: */
 
.toolbarbutton-1 {
  list-style-image: url("chrome://messenger/skin/icons/btn1.gif");
}

#button-send {
  -moz-image-region: rect(294px 23px 315px 0px);
}

#button-send:hover {
  -moz-image-region: rect(294px 46px 315px 23px);
} 

#button-send:hover:active {
  -moz-image-region: rect(294px 69px 315px 46px);
} 

#button-send[disabled="true"] {
  -moz-image-region: rect(294px 92px 315px 69px) !important;
} 

#button-address {
  -moz-image-region: rect(231px 23px 252px 0px);
}

#button-address:hover {
  -moz-image-region: rect(231px 46px 252px 23px);
} 

#button-address:hover:active {
  -moz-image-region: rect(231px 69px 252px 46px);
} 

#button-address[disabled="true"] {
  -moz-image-region: rect(231px 92px 252px 69px) !important;
} 

#button-attach {
  -moz-image-region: rect(252px 23px 273px 0px);
}

#button-attach:hover {
  -moz-image-region: rect(252px 46px 273px 23px);
} 

#button-attach:hover:active {
  -moz-image-region: rect(252px 69px 273px 46px);
} 

#button-attach[disabled="true"] {
  -moz-image-region: rect(252px 92px 273px 69px) !important;
} 

#spellingButton {
  -moz-image-region: rect(378px 23px 399px 0px);
}

#spellingButton:hover {
  -moz-image-region: rect(378px 46px 399px 23px);
}

#spellingButton:hover:active {
  -moz-image-region: rect(378px 69px 399px 46px);
}

#spellingButton[disabled="true"] {
  -moz-image-region: rect(378px 92px 399px 69px) !important;
}

#button-save {
  -moz-image-region: rect(273px 23px 294px 0px);
}

#button-save:hover {
  -moz-image-region: rect(273px 46px 294px 23px);
} 

#button-save:hover:active {
  -moz-image-region: rect(273px 69px 294px 46px);
} 

#button-save[disabled="true"] {
  -moz-image-region: rect(273px 92px 294px 69px) !important;
} 

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

#content-frame {
  border-left: 1px solid ThreeDDarkShadow;
  border-right: 1px solid ThreeDLightShadow;
}

#appcontent {
  border-left: 1px solid ThreeDShadow;
  border-right: 1px solid ThreeDHighlight;
}

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

#compose-toolbar-sizer {
  border-top-width: 1px;
  border-left: none;
  border-right: none;
  -moz-border-top-colors: ThreeDHighlight;
}

#msgSubject {
  margin-top: 0px;
  margin-bottom: 4px;
}


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

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

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

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

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

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

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