/* ***** 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 "MPL"); you may not use this file
 * except in compliance with the MPL. You may obtain a copy of
 * the MPL at http://www.mozilla.org/MPL/
 *
 * Software distributed under the MPL is distributed on an "AS
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 * implied. See the MPL for the specific language governing
 * rights and limitations under the MPL.
 *
 * The Original Code is Enigmail.
 *
 * The Initial Developer of the Original Code is Patrick Brunschwig.
 * Portions created by Patrick Brunschwig <patrick@mozilla-enigmail.org> are
 * Copyright (C) 2003 Patrick Brunschwig. All Rights Reserved.
 *
 * Contributor(s):
 *
 * 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 ***** */

/* Enigmail styles for SeaMonkey */

#button-enigmail-decrypt,
[typeid="button-enigmail-decrypt"]
  {
    list-style-image : url("chrome://enigmail/skin/enigmail-toolbar.png");
    -moz-image-region: rect(0px 30px 30px 0px);
  }

#button-enigmail-decrypt:hover,
[typeid="button-enigmail-decrypt"]
  {
    -moz-image-region: rect(30px 30px 60px 0px);
  }

#button-enigmail-decrypt[disabled],
[typeid="button-enigmail-decrypt"]
  {
    -moz-image-region: rect(60px 30px 90px 0px);
  }

toolbar[iconsize="small"]  #button-enigmail-decrypt
  {
    -moz-image-region: rect(0px 20px 20px 0px);
    list-style-image : url("chrome://enigmail/skin/enigmail-toolbar-small.png");
  }

toolbar[iconsize="small"] #button-enigmail-decrypt:hover
  {
    -moz-image-region: rect(20px 20px 40px 0px);
  }

toolbar[iconsize="small"] #button-enigmail-decrypt[disabled]
  {
    -moz-image-region: rect(40px 20px 60px 0px);
  }

#button-enigmail-send {
    -moz-image-region: rect(0px 30px 30px 0px);
   list-style-image      : url("chrome://enigmail/skin/enigmail-send.png");
}

#button-enigmail-send:hover {
    -moz-image-region: rect(30px 30px 60px 0px);
}

#button-enigmail-send[disabled] {
    -moz-image-region: rect(60px 30px 90px 0px);
}

toolbar[iconsize="small"] #button-enigmail-send {
  -moz-image-region: rect(0px 20px 20px 0px);
   list-style-image      : url("chrome://enigmail/skin/enigmail-send-small.png");
}

toolbar[iconsize="small"] #button-enigmail-send:hover {
  -moz-image-region: rect(20px 20px 40px 0px);
}

toolbar[iconsize="small"] #button-enigmail-send[disabled] {
  -moz-image-region: rect(40px 20px 60px 0px);
}


/*
#button-enigmail-decrypt
  {
    list-style-image      : url("chrome://enigmail/skin/enigdecrypt.gif");
  }

#button-enigmail-decrypt[disabled="true"],
#button-enigmail-decrypt[disabled="true"]:hover,
#button-enigmail-decrypt[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://enigmail/skin/enigdecrypt-dis.gif");
  }

#button-enigmail-decrypt:hover
  {
    list-style-image      : url("chrome://enigmail/skin/enigdecrypt-hov.gif");
  }

#button-enigmail-decrypt:hover:active
  {
    list-style-image      : url("chrome://enigmail/skin/enigdecrypt-act.gif");
  }

#button-enigmail-send
  {
    list-style-image      : url("chrome://enigmail/skin/enigsend.gif");
  }

#button-enigmail-send[disabled="true"],
#button-enigmail-send[disabled="true"]:hover,
#button-enigmail-send[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://enigmail/skin/enigsend-dis.gif");
  }

#button-enigmail-send:hover
  {
    list-style-image      : url("chrome://enigmail/skin/enigsend-hov.gif");
  }

#button-enigmail-send:hover:active
  {
    list-style-image      : url("chrome://enigmail/skin/enigsend-act.gif");
  }
*/

.action-box { width: 100px }

#expandedEnigmailBox {
  background-color:#d8e0e8;
  color: black;
}

.enigmailHeaderNameBox {
  width: 7.7em;
  background-color:#d8e0e8;
  color: black;
}

.enigmailHeaderValue {
  min-width: 50px;
  white-space: normal;
  color: WindowText;
  line-height: 1.4em;

  -moz-appearance: none !important;
  -moz-appearance: none;

  padding: 0px !important;
  margin: 0px !important;
  -moz-margin-start: 3px !important;
  border: none !important;
  background-color: transparent;
}

.enigmailHeaderBoxLabelNoSignature {
  background-color:#d8e0e8;
  color: black;
}

.enigmailHeaderBoxLabelSignatureOk {
  background-color:#ccffcc;
  color: black;
}

.enigmailHeaderBoxLabelSignatureVerified {
  background-color:#ccffff;
  color: black;
}

.enigmailHeaderBoxLabelSignatureNotOk {
  background-color:#FFD8FE;
  color: black;
}

.enigmailHeaderBoxLabelSignatureUnknown {
  background-color:#FFFFC9;
  color: black;
}

.enigmailLink {
  text-decoration: underline;
  color: blue;
  cursor: pointer;
}

.enigmailStrong {
  font-weight: bold;
}

.enigmailUidInactive {
  color: gray;
  font-style: italic;
}

.enigmailHeaderName {
  color: #888a85; /* lower contrast, TB3 */
  text-align: right;
  background-color: transparent;
  -moz-margin-end: 2px;
}

.enigmailHeaderSpacer {
  width: 2px;
}

.enigMsgHdrView-flat-button {
  min-width: 1px !important;
  -moz-appearance: none;
  color: GrayText;
  background-color: transparent;
  border: 2px solid transparent;
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 0 2px;
  border-radius: 2px;
  -moz-border-top-colors: none;
  -moz-border-right-colors: none;
  -moz-border-bottom-colors: none;
  -moz-border-left-colors: none;
  min-height: 1ex;
}

.enigMsgHdrView-flat-button:hover {
  color: -moz-buttonhovertext;
  background-color: -moz-buttonhoverface;
  -moz-border-top-colors: transparent threedhighlight threedlightshadow;
  -moz-border-right-colors: transparent threeddarkshadow threedshadow;
  -moz-border-bottom-colors: transparent threeddarkshadow threedshadow;
  -moz-border-left-colors: transparent threedhighlight threedlightshadow;
}

#enigmail-status-bar #enigmail-signed-status {
  list-style-image: none;
  visibility: collapse;
}

#enigmail-status-bar[signed="ok"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignOk.png");
  visibility: visible;
}

#enigmail-status-bar[signed="notok"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignNotOk.png");
  visibility: visible;
}

#enigmail-status-bar[signed="unknown"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignUnkown.png");
  visibility: visible;
}

#enigmail-status-bar[signed="inactive"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignInactive.png");
  visibility: visible;
}

#enigmail-status-bar #enigmail-encrypted-status {
  list-style-image: none;
  visibility: collapse;
}

#enigmail-status-bar[encrypted="ok"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncOk.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="notok"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncNotOk.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="inactive"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncInactive.png");
  visibility: visible;
}

/**
 *  Icons for composer status bar
 */

#enigmail-status-bar[signed="inactiveNull"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignNullInactive.png");
  visibility: visible;
}

#enigmail-status-bar[signed="inactivePlus"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignPlusInactive.png");
  visibility: visible;
}

#enigmail-status-bar[signed="inactiveMinus"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignMinusInactive.png");
  visibility: visible;
}

#enigmail-status-bar[signed="activeNull"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignNullActive.png");
  visibility: visible;
}

#enigmail-status-bar[signed="activePlus"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignPlusActive.png");
  visibility: visible;
}

#enigmail-status-bar[signed="activeMinus"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignMinusActive.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="activeNull"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncNullActive.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="activePlus"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncPlusActive.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="activeMinus"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncMinusActive.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="inactiveNull"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncNullInactive.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="inactivePlus"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncPlusInactive.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="inactiveMinus"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncMinusInactive.png");
  visibility: visible;
}

.enigmailPrefsTitle {
  font-weight: bold;
  height: 25px;
}

treechildren::-moz-tree-cell-text(enigmailSubkeyTitle) {
  font-weight: bold;
}

treechildren::-moz-tree-cell-text(enigmailOwnKey) {
  font-weight: bold;
}

treechildren::-moz-tree-cell-text(enigKeyInactive) {
  color: gray;
  font-style: italic;
}

treechildren::-moz-tree-column(enigDontEncrypt) {
  background-color: rgb(90%, 90%, 90%);
}

.enigmailExpandViewButton {
  width: 9px; /* The image's width is 9 pixels */
  list-style-image: url("chrome://enigmail/skin/twisty-clsd.png");
}

.enigmailCollapseViewButton {
  width: 9px; /* The image's width is 9 pixels */
  list-style-image: url("chrome://enigmail/skin/twisty-open.png");

}

treechildren::-moz-tree-image(enigSignedEncrypted)
{
  list-style-image: url("chrome://enigmail/skin/col-encrypted-signed.png");
}

treechildren::-moz-tree-image(enigSigned)
{
  list-style-image: url("chrome://enigmail/skin/col-encrypted-signed.png");
    -moz-image-region: rect(0px 24px 12px 12px);
}

treechildren::-moz-tree-image(enigEncrypted)
{
  list-style-image: url("chrome://enigmail/skin/col-encrypted-signed.png");
    -moz-image-region: rect(0px 12px 12px 0px);
}

/*

 the following styles are available for the key trust
   columnm in the key manager:
    enigmail_keyValid_unknown
    enigmail_keyValid_invalid
    enigmail_keyValid_disabled
    enigmail_keyValid_revoked
    enigmail_keyValid_expired
    enigmail_keyTrust_untrusted
    enigmail_keyTrust_marginal
    enigmail_keyTrust_full
    enigmail_keyTrust_ultimate
    enigmail_keyTrust_unknown

They can be applied using:
treechildren::-moz-tree-cell(STYLE) {}
treechildren::-moz-tree-cell-text(STYLE) {}
*/
