/* browser/style/webmail-panes.css
   This file is part of Decimail; see http://decimail.org/
   (C) 2006-2007 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.
*/

/* Panes making up the webmail window */


#mailbox-pane,
#msglist-pane,
#message-pane {
  position: absolute;
  margin: 0;
  border-width: FRAME_WIDTH`ex';
  border-color: FRAMES;
  border-style: solid;
  padding: 0;
}


define(TOP_PANE,
       top: eval(MENUBAR_HEIGHT+FRAME_WIDTH+TOOLBAR_HEIGHT+FRAME_WIDTH)`ex';
       border-top-style: none;)

define(TOP_PANE_SMALL,
       top: 0;
       border-top-style: none;)

define(LEFT_PANE,
       left: 0;
       width: MAILBOX_WIDTH`ex';
       border-left-style: none;)

define(RIGHT_PANE,
       left: eval(MAILBOX_WIDTH+FRAME_WIDTH)`ex'; 
       right: 0;
       border-right-style: none;)

define(BOTTOM_PANE,
       bottom: eval(FOOTER_HEIGHT)`ex';
       border-bottom-style: none;)

define(BOTTOM_PANE_SMALL,
       bottom: 0;
       border-bottom-style: none;)


#mailbox-pane {
  TOP_PANE
  LEFT_PANE
  BOTTOM_PANE
  /* what about border-bottom-style ? */
  overflow: auto;
}


#msglist-pane {
  TOP_PANE
  RIGHT_PANE
  height: MSGLIST_HEIGHT`ex';
}


#message-pane {
  RIGHT_PANE
  BOTTOM_PANE
  top: eval(MENUBAR_HEIGHT+FRAME_WIDTH+TOOLBAR_HEIGHT+FRAME_WIDTH+MSGLIST_HEIGHT+FRAME_WIDTH)`ex';
}


.small #mailbox-pane {
  TOP_PANE_SMALL
  LEFT_PANE
  BOTTOM_PANE_SMALL
  /* what about border-bottom-style ? */
  overflow: auto;
}


.small #msglist-pane {
  TOP_PANE_SMALL
  RIGHT_PANE
  height: MSGLIST_HEIGHT`ex';
}


.small #message-pane {
  RIGHT_PANE
  BOTTOM_PANE_SMALL
  top: eval(MSGLIST_HEIGHT+FRAME_WIDTH)`ex';
}


