/* ***** 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)
 *   Manuel Reimer (Manuel.Reimer@gmx.de)
 *
 * 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/messengericons.png");
}

#button-send {
  -moz-image-region: rect(330px 29px 359px 0);
}

#button-send:hover {
  -moz-image-region: rect(330px 59px 359px 30px);
} 

#button-send:hover:active {
  -moz-image-region: rect(330px 89px 359px 60px);
} 

#button-send[disabled="true"] {
  -moz-image-region: rect(330px 119px 359px 90px) !important;
} 

#button-address {
  -moz-image-region: rect(270px 29px 299px 0);
}

#button-address:hover {
  -moz-image-region: rect(270px 59px 299px 30px);
} 

#button-address:hover:active {
  -moz-image-region: rect(270px 89px 299px 60px);
} 

#button-address[disabled="true"] {
  -moz-image-region: rect(270px 119px 299px 90px) !important;
} 

#button-attach {
  -moz-image-region: rect(300px 29px 329px 0);
}

#button-attach:hover {
  -moz-image-region: rect(300px 59px 329px 30px);
} 

#button-attach:hover:active {
  -moz-image-region: rect(300px 89px 329px 60px);
} 

#button-attach[disabled="true"] {
  -moz-image-region: rect(300px 119px 329px 90px) !important;
} 

#spellingButton {
  list-style-image: url("chrome://editor/skin/icons/editoricons.png");
  -moz-image-region: rect(240px 29px 269px 0);
}

#spellingButton:hover {
  -moz-image-region: rect(240px 59px 269px 30px);
}

#spellingButton:hover:active {
  -moz-image-region: rect(240px 89px 269px 60px);
}

#spellingButton[disabled="true"] {
  -moz-image-region: rect(240px 119px 269px 90px) !important;
}

#button-save {
  list-style-image: url("chrome://editor/skin/icons/editoricons.png");
  -moz-image-region: rect(210px 29px 239px 0);
}

#button-save:hover {
  -moz-image-region: rect(210px 59px 239px 30px);
} 

#button-save:hover:active {
  -moz-image-region: rect(210px 89px 239px 60px);
} 

#button-save[disabled="true"] {
  -moz-image-region: rect(210px 119px 239px 90px) !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;
}

#MsgHeadersToolbar {
  min-height: 0px; /* this undoes the min-height in toolbar.css */
}

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

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

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

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

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