/* Enigmail styles */

@import url("chrome://messenger/skin/");

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

#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
  {
    -moz-image-region: rect(30px 30px 60px 0px);
  }

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

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) !important;
  }

#button-enigmail-send {
   -moz-image-region: rect(0px 30px 30px 0px);
   list-style-image      : url("chrome://enigmail/skin/enigmail-settings.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) !important;
}

toolbar[iconsize="small"] #button-enigmail-send {
  -moz-image-region: rect(0px 20px 20px 0px);
   list-style-image      : url("chrome://enigmail/skin/enigmail-settings-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) !important;
}

.action-box { width: 100px }

#expandedEnigmailBox {
 background-color:#d8e0e8 !important;
}

.enigmailHeaderBoxLabelSignatureOk {
}

.enigmailHeaderBoxLabelSignatureNotOk {
 color: #ff0000;
}

.enigmailHeaderBoxLabelSignatureUnknown {
 color: #E800FF;
}

#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;
}

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

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

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