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

/* ::::: 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: 24px;
  width: 24px;
  background-color: transparent;
  display: block;
  background-image: url("chrome://messenger/skin/addressbook/icons/abcard-large.png");
}

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

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

/* Old style feeds. */
#_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;
}
