/* ***** 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 "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is Mozilla Communicator client code, released
 * March 31, 1998.
 *
 * The Initial Developer of the Original Code is
 * Netscape Communications Corporation.
 * Portions created by the Initial Developer are Copyright (C) 1998-1999
 * the Initial Developer. 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 ***** */

/* ===== messageHeader.css ==============================================
  == Styles for the header toolbars of a mail message.
  ======================================================================= */

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


/* ::::: msg header toolbars ::::: */
#collapsedHeaderView,
#expandedHeaderView {
  min-width: 1px;
}

/* ::::: msg header buttons ::::: */
.headerContainer
{
  min-width: 1px;
}

/* ::::: attachment view ::::: */

#attachmentList
{
  margin: 0px;
}

/* XXX: Move all of the description attributes to the toolkit */

description {
  margin: 0 
}

descriptionitem
{
  padding: 0px;
  margin: 1px 1px 1px 1px;
  text-decoration: underline;
  color: blue;
  border: none !important;
}

description[selectable="true"]:focus > descriptionitem[selected="true"][current="true"] 
{
  border: 1px solid #B8B8B8;
  background-color: #C8C8C8;
}

descriptionitem[selected="true"] 
{
  border: 1px solid #B8B8B8;
  background-color: #C8C8C8;
}

description[selectable="true"]:focus > descriptionitem[selected="true"] 
{
  border: 1px solid #B8B8B8;
  background-color: #C8C8C8;
}

.descriptioncell-icon {
}

.attachmentBox 
{
  width: 15em;
}

#attachmentView[largeView="true"] .attachmentBox
{
  -moz-box-orient: vertical;
}

#attachmentView
{
  background-color: #E6E6E6;
  border: 1px solid #C8C8C8;
  -moz-border-radius: 7px;
  margin: 0px 6px 6px 6px;
  padding: 4px;  
  min-height: 30px;
}

#attachmentView[largeView="true"]
{
  min-height: 60px;
}

#attachmentView[attachmentOverflow="true"] {
  overflow: auto;
}

#attachment-splitter {
  min-height: 7px;
  border-top: 1px solid #C8C8C8;
  background-color: #E6E6E6;
}

/* ::::: msg header captions ::::: */

#msgHeaderView {
  background-color: #FFFFFF;
  border: none;
  font-family: Arial;
  font-size: 12px;
}

#msgHeaderView > deck {
  margin: 0 8px 0 8px;
  padding: 8px 0 4px 0;
  border-bottom: 1px solid #ccc;
}

#msgHeaderView textbox {
  background-color: transparent;
}

.headerNameBox {
  width: 8em;
  background-color: transparent;
  color: #8f8f8f;
}

.headerName {
  font-weight: bold;
  text-align: right;
  background-color: transparent;
  padding: 0px;
  margin-top: 0;
}



.headerValue {
  margin: 0;
  min-width: 50px;
  white-space: normal;
  background-color: transparent;
  padding: 0px;
}

.headerValueBox {
}

.headerValueUrl {
  cursor: pointer;
  color: #0000FF;
  text-decoration: underline;
}

.headerValueUrl:hover {
  color: red;
}

.headerValueBox[singleline="true"] {
  overflow: hidden;
}

#collapsedsubjectBox .collapsedHeaderDisplayName {
  font-weight: bold;
  color: #8f8f8f;
  margin-top: 0;
  -moz-margin-start: 8px; 
}

.subjectvalue {
  font-weight: bold;
  background-color: transparent;
}

.tagvalue {
  font-weight: bold;
  margin-left: 0px;
}

/* ::::: msg header email addresses ::::: */

.emailDisplayButton {
  margin: 0;
  padding: 0 10px 0 0 !important;
  background-color: transparent;
  background: url("chrome://messenger/skin/icons/arrow-dn-7.png") no-repeat center right;
}

.emailDisplayButton:hover {
  cursor: pointer;
  text-decoration: underline;
  color: blue;
}
 
/* ::::: email address twisty ::::: */

.addresstwisty {
  list-style-image:url("chrome://messenger/skin/icons/twisty-closed.gif");
}

.addresstwisty[open] {
  list-style-image:url("chrome://messenger/skin/icons/twisty-open.gif");
}

/* ::::: view expand and collapse twisties  ::::: */

.expandHeaderViewButton,
.collapsedHeaderViewButton  {

}

.expandHeaderViewButton {
  list-style-image:url("chrome://messenger/skin/icons/twisty-open.gif");
}

.collapsedHeaderViewButton  {
  list-style-image:url("chrome://messenger/skin/icons/twisty-closed.gif");
}


/* ::::: collapsed view styles ::::: */

#collapseddateValue {
  text-align: right;
}

mail-multi-emailHeaderField,
mail-headerfield {
  margin: 0;
  padding: 0;
}
