/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* ===== messageBody.css =================================================
  == Styles for the body of a mail message.
  ======================================================================= */
@import url(chrome://communicator/skin/smileys.css);

@namespace url("http://www.w3.org/1999/xhtml");

mailattachcount {
  border: blue;
}

/* :::: message header ::::: */

.header-part1 {
  background-color: #EFEFEF;
}

.header-part2,
.header-part3 {
  background-color: #DEDEDE;
}

.headerdisplayname {
  display: inline;
  font-weight: bold;
  white-space: pre;
}

/* ::::: message text, incl. quotes ::::: */

.moz-text-flowed blockquote,
.moz-text-plain blockquote {
  margin: 0;
}

.moz-text-plain pre {
  margin: inherit;
  font-family: inherit;
}

.moz-text-plain[wrap="true"] {
  white-space: pre-wrap;
}

.moz-text-plain[wrap="false"] {
  white-space: pre;
}

.moz-text-plain[wrap="flow"] .moz-txt-sig {
  white-space: pre-wrap;
}

.moz-text-plain[graphical-quote="false"] blockquote {
  margin: inherit;
  border-left: inherit;
  -moz-padding-start: inherit;
}

.moz-text-plain[graphical-quote="true"] blockquote {
  margin: inherit;
  border-width: 2px;
  border-color: gray;
}

.moz-text-plain[graphical-quote="true"] .moz-txt-citetags {
  display: none;
}

.moz-txt-underscore {
  text-decoration: underline;
}

/* ::::: signature ::::: */

@media not print {
  div.moz-text-flowed > div.moz-txt-sig,
  div.moz-text-plain > pre > div.moz-txt-sig,
  pre.moz-signature {
    opacity: 0.6;
  }
}

/* ::::: attached images ::::: */
.moz-attached-image[overflowing="true"] {
  cursor: -moz-zoom-out;
}

.moz-attached-image[isshrunk="true"] {
  cursor: -moz-zoom-in;
  max-width: 100%;
}

/* ::::: vcard ::::: */

.moz-vcard-table {
  border-radius: 8px;
  border: thin solid gray;
  margin-top: 10px;
}

.moz-vcard-property {
  font-size: 80%;
  color: gray;
}

.moz-vcard-title-property {
}

.moz-vcard-badge {
  height: 32px;
  width: 32px;
  background-color: transparent;
  display: block;
  background-image: url("chrome://messenger/skin/addressbook/icons/addressbook-toolbar.png");
  -moz-image-region: rect(0px 32px 32px 0px);
}

.moz-vcard-badge:hover {
  -moz-image-region: rect(32px 32px 64px 0px);
}

@media (min-resolution: 2dppx) {
  .moz-vcard-badge {
    background-image: url("chrome://messenger/skin/addressbook/icons/addressbook-toolbar@2x.png");
    -moz-image-region: rect(0px 64px 64px 0px);
  }

  .moz-vcard-badge:hover {
    -moz-image-region: rect(64px 64px 128px 0px);
  }
}

.moz-vcard-badge:focus {
  outline: none;
}

/* Quote Levels Colors */

blockquote[type=cite] {
   color: blue !important;
   border-color: blue !important;
}

blockquote[type=cite] > blockquote {
   color: green !important;
   border-color: green !important;
}

blockquote[type=cite] > blockquote > blockquote {
   color: maroon !important;
   border-color: maroon !important;
}

/* Old style feeds, pre Tb3.0 */
#_mailrssiframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Attachment display styling (for inline attachments and printing) */
.mimeAttachmentHeader {
  border-style: none;
  border-top: 1px solid GrayText;
}

.mimeAttachmentHeaderName {
  color: GrayText;
  font-size: 80%;
  font-family: Arial, sans-serif;
}

.mimeAttachmentWrap {
  padding: 0 1em;
}

.mimeAttachmentTable {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.mimeAttachmentTable tr + tr > td {
  border-top: 1px solid GrayText;
}

.mimeAttachmentFile {
  word-wrap: break-word;
}

.mimeAttachmentSize {
  vertical-align: top;
  width: 10ch;
  text-align: right;
}

.mimeAttachmentFile,
.mimeAttachmentSize {
  padding: 0.25em 0;
}
