/* 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);
@import url(chrome://messenger/skin/messageQuotes.css);

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

mailattachcount {
  display: none;
}

/* :::: 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: 0;
  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 {
  border-style: none;
  padding: 0;
}

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

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

.moz-txt-formfeed {
  display: block;
  height: 100%;
}

/* ::::: images ::::: */
img {
  image-orientation: from-image;
}

img[overflowing]:not([shrinktofit]) {
  cursor: zoom-out;
  width: auto !important;
}

img[overflowing][shrinktofit] {
  cursor: zoom-in;
  max-width: 100% !important;
  height: auto !important;
}

@media print {
  img[shrinktofit] {
    max-width: 100% !important;
    height: auto !important;
  }
}

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

.moz-vcard-table {
  margin-top: 10px;
  border-radius: 5px;
  border-color: ThreeDLightShadow;
  border-width: 1px;
  border-style: solid;
  background-color: rgba(0, 0, 0, .1);
}

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

.moz-vcard-badge {
  margin-top: 2px;
  height: 32px;
  width: 32px;
  background-image: url("chrome://messenger/skin/addressbook/icons/contact-generic.png");
  background-size: 100% 100%;
  background-color: transparent;
  display: block;
  opacity: .7;
}

.moz-vcard-badge:hover {
  opacity: .8;
}

.moz-vcard-badge:active {
  opacity: 1;
}

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

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