/* $Id: ie.css,v 1.1 2008/02/15 16:22:09 johnalbin Exp $ */

/*
 * IE CSS
 *
 * CSS targeted specifically for Internet Explorer for Windows.
 *
 * Properties starting with an underscore _ are for IE 5 and 6 only.
 * Properties starting with head:first-child+body are for IE7 only.
 * Properties with a child selector (>) or sibling selector (+) are for IE7 only.
 *
 */

/*
 * Layout CSS
 */

/** body **/
  body
  {
    _text-align: center; /* 1st part of IE5/IE6quirks centering hack */
  }

  #page
  {
    _text-align: left; /* 2nd part of IE5/IE6quirks centering hack */
  }

/** main (container for everything else) **/
  #main
  {
    _zoom: 1; /* Otherwise with a liquid layout, sidebars disappear when resizing the windows in IE6 */
  }

/** floating divs **/
  #content,
  #navbar,
  #sidebar-left,
  .front #sidebar-right
  {
    _display: inline; /* display inline or double your floated margin! [1] */
    _overflow: hidden; /* in ie6, overflow auto is broken [2] and so is overflow visible [3] */
    _overflow-y: visible;
    _position:relative;
  }

  .sidebar-right #content-header, .sidebar-right #content-area {
    _margin-right:0px;
  }
  
  .not-front #sidebar-right {
    _position:relative;
    _left:200px;
    _margin-left:-200px;
    _z-index:99;
  }
  
  .book-navigation .page-links {
    _display:inline-block;
    _clear:both;
    _margin:0 auto;
    _background:none;
    _border:none;
  }
  
  #content-inner {
    _position:relative;
  }
  
  .not-front #content-area {
    _position:relative;
  }
  
  #content-top {
    _position:relative;
  }
  
  #sidebar-right-inner {
    _position:relative;
    _z-index:5;
  }
  
  .node .picture, .comment .picture {
    _position:relative;
  }
  
  .node .bottom-edge {
    _position:relative;
  }
  
  .fivestar-wrapper {
    _position:relative;
    _float:right;
    _width:115px;
    _display:inline;
    _margin-right:-1em;
  }
  
  .node {
    _position:relative;
    _display:inline-block;
  }
  
  .comment {
    _position:relative;
    _display:inline-block;
  }
  
  
  .node-inner {
    _position:relative;
    _margin-bottom:-7px;
  }
  
  .comment-inner {
    _position:relative;
    _margin-bottom:-7px;
  }
  
  .node h2.title, .node h3.title, .view-header h2 {
    _position:relative;
    _padding:0.25em 0.5em;
    _margin-left:0;
  }
  
  .node-type-resource h3.title {
    _background-color:white;
  }
  
  #sidebar-right h2, #sidebar-right h3 {
    _margin-left:0;
  }
  
  #sidebar-right .menu li.active {
    _position:relative;
    _display:inline-block;
  }
  
  .views-exposed-form .views-exposed-widget {
    _position:relative;
    _left:-12.5em;
    _top:-0.65em;
  }
  
  .node div.post-resource {
    _position:relative;
    _margin-left:-14em;
    _margin-right:0;
    _z-index:5;
  }
  
  .view-empty {
    _position:relative;
    _width:100%;
  }

/*
 * Tabs CSS - IE 5 and 6 don't support PNGs with alpha transparency.
 */

  ul.primary li a,
  ul.primary li a .tab,
  ul.secondary li a,
  ul.secondary li a .tab
  {
    _display: inline; /* Otherwise the blocks mistakenly get 100% width in IE5 */
    _di\splay: inline-block; /* Otherwise the blocks mistakenly get 100% width in IE6 */
  }

  ul.primary,
  ul.secondary
  {
    _width: 100%; /* Otherwise IE5 treats the ul as floated */
    _w\idth: auto; /* Reset to auto width for IE6 */
  }

  ul.primary li a
  {
    _background: url(images/tab-left-ie6.png) no-repeat left -38px;
  }

  ul.primary li a .tab
  {
    _background: url(images/tab-right-ie6.png) no-repeat right -38px;
  }

  ul.primary li a:hover
  {
    _background: url(images/tab-left-ie6.png) no-repeat left -76px;
  }

  ul.primary li a:hover .tab
  {
    _background: url(images/tab-right-ie6.png) no-repeat right -76px;
  }

  ul.primary li.active a,
  ul.primary li.active a:hover
  {
    _background: url(images/tab-left-ie6.png) no-repeat left 0;
  }

  ul.primary li.active a .tab,
  ul.primary li.active a:hover .tab
  {
    _background: url(images/tab-right-ie6.png) no-repeat right 0;
  }
  
  ul.menu li {
    _display:inline-block;
  }
  
  #search {
    _position:relative;
  }
  
  div.tabs ul.primary {
    _width:99%;
  }

/** Drupal nodes **/
  .node-unpublished .node-inner>*
  {
    position: relative; /* Otherwise these elements will appear below the "Unpublished" text. */
  }

/** Drupal admin tables **/
  .section-admin #content tr.even th,
  .section-admin #content tr.even td,
  .section-admin #content tr.odd th,
  .section-admin #content tr.odd td
  {
    border-bottom: 1px solid #ccc; /* IE doesn't display borders on table rows */
  }

/*
 * REFERECES
 *

1. http://www.positioniseverything.net/explorer/doubled-margin.html
2. http://browservulsel.blogspot.com/2005/04/ie-overflow-auto-scrollbar-overlap.html
3. http://www.howtocreate.co.uk/wrongWithIE/?chapter=overflow%3Avisible%3B

 *
 */

#search-box {
  position:relative;
  top:-24px;
}

#primary {
  margin:0;
  top:-24px;
}

.view-filters {
  float:right;
  left:0;
  margin-left:0;
  margin-bottom:-100%;
  position:relative;
  top:-2.5em;
}

.node-type-companion_site .view-filters {
  display:none;
}

.node div.post-resource.sign-in {
    display:none;
  }

.node-teaser div.post-resource.sign-in {
    display:block;
  }
  
#.content .fieldgroup.group-links {
  width:250px;
}