﻿
/* Layout */

ul.controls
{
    margin-top: 3px;    /* as per design's spec */
    margin-bottom: 10px;
    padding-bottom: 10px;   /* 8px padding plus 2px for horizontal line background image */
    zoom: 1;    /* TEMP HACK this is ie-only, should go in an ie-only stylesheet */
}

ul.controls:after
{
    /** self-clearing since the li's are floated. */
    content: ".";
    clear: both;
    display: block;
    height: 0px;
    visibility: hidden;
}

ul.controls li
{
    display: inline-block;
    /* individual li's will be floated */
}

table.controls
{
    float: left;
    width: 525px;
}

table.controls td
{
    height: 28px;   /* textbox controls are 24px high. add 2px to give space. */
    vertical-align: middle;
}

table.controls td.label
{
    text-align: right;
    padding-right: 1em;
}

table.controls td.field
{
    /** this is needed on the td element!! in order to ensure that td.label's
        don't take up any extra space than they need. */
    width: 100%;
}

table.controls td.field .textbox-small
{
    width: 100%;
    text-align: left;
}

table.controls td.field div.textbox-small input
{
    /* if using div technique, also need to specify width of input */
    width: 95%;     /* TEMP can't easily get flexible width this way... */
}

#share-control td
{
    height: 31px;   /* share control is 27px high. add 2px to give space. */
}

#invite-control
{
    float: right;
    width: 106px;
    margin-left: 24px;
    padding-left: 20px;
    min-height: 100px;  /* TEMP HACK to match table's expected height plus 13px padding */
}

#invite-control img
{
    margin-top: 2px;    /* to align with top of textbox */
    margin-bottom: 10px;
}

#bottom-divider
{
    clear: both;
    height: 2px;    /* height of horizontal line background image */
    padding-top: 10px;
}


/* Text and colors */

ul.controls, table.controls td.label, #share-control td.field
{
    font-size: 93%;     /* based on YUI Fonts CSS, translates to 12px (9pt) */
}

ul.controls
{
    background: transparent url(../images/site/h-divider_dark.png) repeat-x scroll center bottom;
}

ul.controls a
{
    color: #f63;
}

table.controls td.label
{
    font-weight: bold;
}

#invite-control
{
    text-align: center;
    background: transparent url(../images/site/v-divider.png) repeat-y scroll left center;
}

#bottom-divider
{
    background: transparent url(../images/site/h-divider_light.png) repeat-x scroll center bottom;
}


/* Controls */

#size-control
{
    float: left;
    margin-right: 1em;
}

#abuse-control
{
    float: right;
    margin-left: 1em;
}

#orig-control
{
    float: right;
    margin-left: 1em;
}


/* Share box (similar to Textbox using divs) */

#share-control td.field
{
   height: 27px;    /* the height of the before, during and after background images. */
}

#share-control td.field div.before
{
    float: left;
    width: 6px; /* the width of this background image. also equivalent to left padding. */
    height: /*100%;*/ 27px; /* TEMP hardcoding it to fix chrome */
    background: transparent url(../images/site/shareBox_L.png) no-repeat scroll right center;
}

#share-control td.field div.after
{
    float: left;
    width: 6px; /* the width of this background image. also equivalent to right padding. */
    height: /*100%;*/ 27px; /* TEMP hardcoding it to fix chrome */
    background: transparent url(../images/site/shareBox_R.png) no-repeat scroll left center;
    position: relative;
    left: -1px; /* TEMP HACK to compensate for mysterious 1px gap... */
}

#share-control td.field div.during
{
    float: left;
    /* automatic width based on textbox inside */
    height: 15px;   /* 27px height minus 6px padding on top and bottom each */
    padding: 6px 0px;
    background: transparent url(../images/site/shareBox_C.png) repeat-x scroll center center;
    font-size: 116;     /* based on YUI Fonts CSS, translates to 15px */
}


/* Share links */

#share-control span
{
    display: inline-block;
    min-width: 5em;
}

#share-control span a
{
    background-position: left;
    background-repeat: no-repeat;
    padding-left: 20px;
    padding-right: 8px;
}

#share-control span.delicious a
{
    background-image: url(../images/site/delicious-favicon.png);
}

#share-control span.digg a
{
    background-image: url(../images/site/digg-favicon.png);
}

#share-control span.facebook a
{
    background-image: url(../images/site/facebook-favicon.png);
}

#share-control span.twitter a
{
    background-image: url(../images/site/twitter-favicon.png);
}
