﻿/* --------------------------------------------------------------

   grid.css
   * Sets up an easy-to-use grid of 24 columns.

   By default, the grid is 950px wide, with 24 columns
   spanning 30px, and a 10px margin between columns.

   If you need fewer or more columns, namespaces or semantic
   element names, use the compressor script (lib/compress.rb)

-------------------------------------------------------------- */

/* A container should group all your columns. */
.container {
  width: 950px;
  margin: 0 auto;
  padding: 10px 0px 10px 10px;
}

/* Use this class on any .span / container to see the grid. */
.showgrid {
  background: url(Images/grid.png);
}


/* Columns
-------------------------------------------------------------- */

/* Sets up basic grid floating and margin. */
.column, .span-1, .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-10, .span-11, .span-12 {float:left;margin-right:20px;}

/* The last column in a row needs this class. */
.last { margin-right: 0; }

/* Use these classes to set the width of a column. */
.span-1 {width:60px;}
.span-2 {width:140px;}
.span-3 {width:220px;}
.span-4 {width:300px;}
.span-5 {width:380px;}
.span-6 {width:460px;}
.span-7 {width:540px;}
.span-8 {width:620px;}
.span-9 {width:700px;}
.span-10 {width:780px;}
.span-11 {width:860px;}
.span-12 {width:940px;margin-right:0;}

/* Use these classes to set the width of an input. */
input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12 {border-left-width:1px;border-right-width:1px;padding-left:5px;padding-right:5px;}

input.span-1, textarea.span-1 {width:48px;}
input.span-2, textarea.span-2 {width:128px;}
input.span-3, textarea.span-3 {width:208px;}
input.span-4, textarea.span-4 {width:288px;}
input.span-5, textarea.span-5 {width:368px;}
input.span-6, textarea.span-6 {width:448px;}
input.span-7, textarea.span-7 {width:528px;}
input.span-8, textarea.span-8 {width:608px;}
input.span-9, textarea.span-9 {width:688px;}
input.span-10, textarea.span-10 {width:768px;}
input.span-11, textarea.span-11 {width:848px;}
input.span-12, textarea.span-12 {width:928px;}

/* Add these to a column to append empty cols. */

.append-1 {padding-right:80px;}
.append-2 {padding-right:160px;}
.append-3 {padding-right:240px;}
.append-4 {padding-right:320px;}
.append-5 {padding-right:400px;}
.append-6 {padding-right:480px;}
.append-7 {padding-right:560px;}
.append-8 {padding-right:640px;}
.append-9 {padding-right:720px;}
.append-10 {padding-right:800px;}
.append-11 {padding-right:880px;}

/* Add these to a column to prepend empty cols. */

.prepend-1 {padding-left:80px;}
.prepend-2 {padding-left:160px;}
.prepend-3 {padding-left:240px;}
.prepend-4 {padding-left:320px;}
.prepend-5 {padding-left:400px;}
.prepend-6 {padding-left:480px;}
.prepend-7 {padding-left:560px;}
.prepend-8 {padding-left:640px;}
.prepend-9 {padding-left:720px;}
.prepend-10 {padding-left:800px;}
.prepend-11 {padding-left:880px;}


/* Border on right hand side of a column. */
.border {padding-right:9px;margin-right:10px;border-right:1px solid #eee;}

/* Border with more whitespace, spans one column. */
.colborder {padding-right:49px;margin-right:50px;border-right:1px solid #eee;}


/* Use these classes on an element to push it into the
next column, or to pull it into the previous column.  */

.pull-1 {margin-left:-80px;}
.pull-2 {margin-left:-160px;}
.pull-3 {margin-left:-240px;}
.pull-4 {margin-left:-320px;}
.pull-5 {margin-left:-400px;}
.pull-6 {margin-left:-480px;}
.pull-7 {margin-left:-560px;}
.pull-8 {margin-left:-640px;}
.pull-9 {margin-left:-720px;}
.pull-10 {margin-left:-800px;}
.pull-11 {margin-left:-880px;}
.pull-12 {margin-left:-960px;}

.pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12 {float:left;position:relative;}

.push-1 {margin:0 -80px 1.5em 80px;}
.push-2 {margin:0 -160px 1.5em 160px;}
.push-3 {margin:0 -240px 1.5em 240px;}
.push-4 {margin:0 -320px 1.5em 320px;}
.push-5 {margin:0 -400px 1.5em 400px;}
.push-6 {margin:0 -480px 1.5em 480px;}
.push-7 {margin:0 -560px 1.5em 560px;}
.push-8 {margin:0 -640px 1.5em 640px;}
.push-9 {margin:0 -720px 1.5em 720px;}
.push-10 {margin:0 -800px 1.5em 800px;}
.push-11 {margin:0 -880px 1.5em 880px;}
.push-12 {margin:0 -960px 1.5em 960px;}

.push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12 {float:right;position:relative;}


/* Misc classes and elements
-------------------------------------------------------------- */

/* In case you need to add a gutter above/below an element */
.prepend-top {
  margin-top:1.5em;
}
.append-bottom {
  margin-bottom:1.5em;
}

/* Use a .box to create a padded box inside a column.  */
.box {
  padding: 1.5em;
  margin-bottom: 1.5em;
  background: #E5ECF9;
}

/* Use this to create a horizontal ruler across a column. */
hr {
  background: #ddd;
  color: #ddd;
  clear: both;
  float: none;
  width: 100%;
  height: .1em;
  margin: 0 0 1.45em;
  border: none;
}

hr.space {
  background: #fff;
  color: #fff;
  visibility: hidden;
}


/* Clearing floats without extra markup
   Based on How To Clear Floats Without Structural Markup by PiE
   [http://www.positioniseverything.net/easyclearing.html] */

.clearfix:after, .container:after {
  content: "\0020";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
  overflow:hidden;
}
.clearfix, .container {display: block;}

/* Regular clearing
   apply to column that should drop below previous ones. */

.clear { clear:both; }




/*************************************************/
/* PAL:  Grid enhancements                       */
/*************************************************/

/* Draws box where left edge starts outside of column.  Right edge falls on
   column boundary. */
.left-pulled-box
{
    margin-left: -8px;
}

/* Need to accommodate 1-pixel border here... */
.shaded.left-pulled-box
{
    margin-left: -8px;
}

/* Need to make box a bit fatter... */
.left-pulled-box.span-1 {width:68px;}
.left-pulled-box.span-2 {width:148px;}
.left-pulled-box.span-3 {width:228px;}
.left-pulled-box.span-4 {width:308px;}
.left-pulled-box.span-5 {width:388px;}
.left-pulled-box.span-6 {width:468px;}
.left-pulled-box.span-7 {width:548px;}
.left-pulled-box.span-8 {width:628px;}
.left-pulled-box.span-9 {width:708px;}
.left-pulled-box.span-10 {width:788px;}
.left-pulled-box.span-11 {width:868px;}

/* Need to make box a bit fatter and also accommodate border... */
.left-pulled-box.shaded.span-1 {width:66px;}
.left-pulled-box.shaded.span-2 {width:146px;}
.left-pulled-box.shaded.span-3 {width:226px;}
.left-pulled-box.shaded.span-4 {width:306px;}
.left-pulled-box.shaded.span-5 {width:386px;}
.left-pulled-box.shaded.span-6 {width:466px;}
.left-pulled-box.shaded.span-7 {width:546px;}
.left-pulled-box.shaded.span-8 {width:626px;}
.left-pulled-box.shaded.span-9 {width:706px;}
.left-pulled-box.shaded.span-10 {width:786px;}
.left-pulled-box.shaded.span-11 {width:866px;}

/* Accomodate border... */
.shaded.span-1 {width:58px;}
.shaded.span-2 {width:138px;}
.shaded.span-3 {width:218px;}
.shaded.span-4 {width:298px;}
.shaded.span-5 {width:378px;}
.shaded.span-6 {width:458px;}
.shaded.span-7 {width:538px;}
.shaded.span-8 {width:618px;}
.shaded.span-9 {width:698px;}
.shaded.span-10 {width:778px;}
.shaded.span-11 {width:858px;}


.gutter {width: 20px; float: left; height: 10px;}

/* This allows us to suppress the gutter of a span-x class, if needed (similar to .last) */
.nogutter { margin-right: 0; }
