/* browser/style/messagelist.css
   This file is part of Decimail; see http://decimail.org/
   (C) 2006-2017 Philip Endecott

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   any later version.
  
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
  
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/


/* The message list pane */

#msglist-pane {
  overflow: scroll;
}


#msglist-pane table {
  table-layout: fixed;
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  TEXT_CS
}

#flags {
  width: 3%;
}

#subject {
  width: 33%;
}

#from {
  width: 33%;
}

#date {
  width: 20%;
}

#size {
  width: 9%;
}

#spacer {
  /* Needs to be wider than the scrollbar.  No good way to do this. */
  width: 2%;
}


#msglist-pane thead {
  margin: 0;
  padding: 0;
  height: eval(MSGLIST_HEADER_HEIGHT)`ex';
  DEFAULT_CS
}

#msglist-pane th {
  margin: 0;
  border: 2px outset beige;
  text-align: left;
  font-weight: normal;
}

#msglist-pane th,
#msglist-pane td {
  padding: 0 1ex;
}

#msglist-pane td.flags {
  padding: 0 1px;
}

#msglist-pane td.size {
  text-align: right;
}

#msglist-pane tbody {
/*  height: eval(MSGLIST_HEIGHT-MSGLIST_HEADER_HEIGHT)`ex'; */
/*  overflow: auto; */
}

#msglist-pane tbody tr {
  CLICKABLE
}

#msglist-pane tbody tr:hover {
  TEXT_HOVER_CS
}

#msglist-pane tbody tr td {
  white-space: nowrap;
  overflow: hidden;
}

#msglist-pane tbody tr td:hover {
  /* It would be good if values could be un-truncated when hovered over, but
     there doesn't seem to be a good way to do it.  If you just set overflow:
     visible it is overlayed on the neighbouring cell because the background
     isn't extended.  Hence the float or absolute tricks below - except these
     don't work because of Mozilla bug #339388. */
  /* overflow: visible;
  position: absolute;
  float: left; 
  background-color: TEXT_BACKGROUND FIXME; */
}

#msglist-pane .unseen {
  font-weight: bold;
}

#msglist-pane .deleted {
  text-decoration: line-through;
}


#msglist-pane th.sort {
  background: url(imgs/sortarrow.png) center right no-repeat;
}

#msglist-pane th.rsort {
  background: url(imgs/rsortarrow.png) center right no-repeat;
}


