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

#button-send {
  list-style-image: url("chrome://messenger/skin/icons/messengericons.png");
  -moz-image-region: rect(330px 29px 359px 0);
}

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

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

#button-address {
  list-style-image: url("chrome://messenger/skin/icons/messengericons.png");
  -moz-image-region: rect(270px 29px 299px 0);
}

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

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

#button-attach {
  list-style-image: url("chrome://messenger/skin/icons/messengericons.png");
  -moz-image-region: rect(300px 29px 329px 0);
}

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

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

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

#spellingButton:hover:active,
#spellingButton[open] {
  -moz-image-region: rect(240px 59px 269px 30px);
}

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

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

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

#button-save[disabled="true"] {
  -moz-image-region: rect(210px 89px 239px 60px) !important;
}

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

toolbar[iconsize="small"] > #button-send,
toolbar[iconsize="small"] > toolbarpaletteitem > #button-send {
  list-style-image: url("chrome://messenger/skin/icons/messengericons-small.png");
  -moz-image-region: rect(220px 19px 239px 0);
}

toolbar[iconsize="small"] > #button-send:hover:active {
  -moz-image-region: rect(220px 39px 239px 20px);
}

toolbar[iconsize="small"] > #button-send[disabled="true"] {
  -moz-image-region: rect(220px 59px 239px 40px) !important;
}

toolbar[iconsize="small"] > #button-address,
toolbar[iconsize="small"] > toolbarpaletteitem > #button-address {
  list-style-image: url("chrome://messenger/skin/icons/messengericons-small.png");
  -moz-image-region: rect(180px 19px 199px 0);
}

toolbar[iconsize="small"] > #button-address:hover:active {
  -moz-image-region: rect(180px 39px 199px 20px);
}

toolbar[iconsize="small"] > #button-address[disabled="true"] {
  -moz-image-region: rect(180px 59px 199px 40px) !important;
}

toolbar[iconsize="small"] > #button-attach,
toolbar[iconsize="small"] > toolbarpaletteitem > #button-attach {
  list-style-image: url("chrome://messenger/skin/icons/messengericons-small.png");
  -moz-image-region: rect(200px 19px 219px 0);
}

toolbar[iconsize="small"] > #button-attach:hover:active,
toolbar[iconsize="small"] > #button-attach[open] {
  -moz-image-region: rect(200px 39px 219px 20px);
}

toolbar[iconsize="small"] > #button-attach[disabled="true"] {
  -moz-image-region: rect(200px 59px 219px 40px) !important;
}

toolbar[iconsize="small"] > #spellingButton,
toolbar[iconsize="small"] > toolbarpaletteitem > #spellingButton {
  list-style-image: url("chrome://editor/skin/icons/editoricons-small.png");
  -moz-image-region: rect(160px 19px 179px 0);
}

toolbar[iconsize="small"] > #spellingButton:hover:active,
toolbar[iconsize="small"] > #spellingButton[open] {
  -moz-image-region: rect(160px 39px 179px 20px);
}

toolbar[iconsize="small"] > #spellingButton[disabled="true"] {
  -moz-image-region: rect(160px 59px 179px 40px) !important;
}

toolbar[iconsize="small"] > #button-save,
toolbar[iconsize="small"] > toolbarpaletteitem > #button-save {
  list-style-image: url("chrome://editor/skin/icons/editoricons-small.png");
  -moz-image-region: rect(140px 19px 159px 0);
}

toolbar[iconsize="small"] > #button-save:hover:active,
toolbar[iconsize="small"] > #button-save[open] {
  -moz-image-region: rect(140px 39px 159px 20px);
}

toolbar[iconsize="small"] > #button-save[disabled="true"] {
  -moz-image-region: rect(140px 59px 159px 40px) !important;
}

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

#compose-toolbar-sizer {
  height: 10px;
  background-color: -moz-dialog;
  border-top: 1px solid #A5A5A5;
  border-bottom: 1px solid #A5A5A5;
}

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

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

#FormatToolbar {
  border-bottom: none !important;
}

/* ::::: 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");
}
