/* ***** 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 Thunderbird Inline Edit Contact Panel.
 *
 * The Initial Developer of the Original Code is
 * the Mozilla Foundation.
 * Portions created by the Initial Developer are Copyright (C) 2008
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Mark Banner <bugzilla@standard8.plus.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 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 ***** */

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

.editContactPanel_rowLabel {
  text-align: end;
}

#editContactPanel {
  -moz-appearance: none;
  background-color: rgba(68,68,68,0.9);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  border-top-left-radius: 0px ;
  padding: 10px 8px 6px;
  margin-top: 4px;
  color: #ffffff;
}

#editContactPanel > #editContactContent {
  margin-top: 6px;
}

#editContactPanelIcon {
  list-style-image: url("chrome://messenger/skin/starred48.png");
  width: 48px;
  height: 48px;
}

#editContactPanelTitle {
  font-size: 130%;
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: 2px;
  -moz-margin-start: 9px;
  -moz-margin-end: 12px;
}

#editContactEmail {
  min-width: 20em;
}

/**** HUD style buttons ****/

#editContactPanel > hbox > button,
#editContactPanel > hbox > vbox > hbox > button,
#editContactPanel > #editContactPanelBottomButtons > button {
  -moz-appearance: none;
  background: url("chrome://messenger/skin/hud-style-button-middle-background.png") repeat-x #464646 center center;
  border-width: 3px;
  border-style: solid;
  border-radius: 20px;
  -moz-border-top-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  -moz-border-right-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  -moz-border-bottom-colors: rgba(128,128,128,0.35) rgba(0,0,0,0.5) rgba(255,255,255,0.15);
  -moz-border-left-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  padding: 0 9px;
  margin: 6px;
  min-width: 79px;
  min-height: 22px;
  color: #ffffff;
}

#editContactPanel > hbox > button:hover:active,
#editContactPanel > hbox > vbox > hbox > button:hover:active,
#editContactPanel > #editContactPanelBottomButtons > button:hover:active {
  background-color: #86888B;
}

#editContactPanel > hbox > button:focus,
#editContactPanel > hbox > vbox > hbox > button:focus,
#editContactPanel > #editContactPanelBottomButtons > button:focus {
  outline: 2px solid -moz-mac-focusring;
  outline-offset: -2px;
  -moz-outline-radius: 100%;
}

#editContactPanel > #editContactPanelBottomButtons > button[default="true"] {
  background-color: #666;
}

.editContactTextbox {
  -moz-appearance: none !important;
  cursor: text;
  margin: 2px 4px;
  border: 2px solid;
  -moz-border-top-colors: #1c1c1c #545454;
  -moz-border-right-colors: #1c1c1c #636363;
  -moz-border-bottom-colors: #1c1c1c #797979;
  -moz-border-left-colors: #1c1c1c #636363;
  border-radius: 1px;
  padding: 0;
  background-color: #666666;
  color: #ffffff;
}

.editContactTextbox[readonly="true"] {
  -moz-appearance: none;
  margin: 2px 4px;
  padding: 2px;
  border: none;
  background-color: inherit;
  color: #ffffff;
}

.editContactTextbox[focused="true"] {
  outline: 2px solid -moz-mac-focusring;
  padding: 1px;
  outline-offset: -1px;
  -moz-outline-radius: 1px;
  background-color: #eeeeee;
  color: #000000;
}

.editContactTextbox[focused="true"][readonly="true"] {
  outline: none;
  background-color: inherit;
  color: #ffffff;
}

#editContactAddressBookList {
  -moz-appearance: none;
  background: url("chrome://messenger/skin/hud-style-button-middle-background.png") repeat-x #464646 center center;
  border: 3px solid;
  border-radius: 5px;
  -moz-border-top-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  -moz-border-right-colors: rgba(53,53,53,1) rgba(53,53,53,1) rgba(162,162,162,1);
  -moz-border-bottom-colors: rgba(128,128,128,0.35) rgba(0,0,0,0.5) rgba(255,255,255,0.15);
  -moz-border-left-colors: rgba(0,0,0,0.35) rgba(26,26,26,0.5) rgba(255,255,255,0.4);
  margin: 0 3px !important;
  min-height: 22px;
  -moz-padding-start: 2px;
  color: #ffffff !important;
}

#editContactAddressBookList:focus {
  outline: 2px solid -moz-mac-focusring;
  outline-offset: -2px;
  -moz-outline-radius: 5px;
}

#editContactAddressBookList[disabled="true"] {
  color: GrayText !important;
}

#editContactAddressBookList > .menulist-dropmarker {
  -moz-appearance: none;
  display: -moz-box;
  background-color: transparent;
  border: 0;
  margin: 0;
  padding: 0;
}

#editContactAddressBookList > .menulist-dropmarker > .dropmarker-icon {
  list-style-image: url("chrome://messenger/skin/hud-style-dropmarker-double-arrows.png");
}

#contactMoveDisabledText {
  margin-left: 8px;
  width: 20em;
}
