﻿/* --------------------------------------------------------------

   ie.css

   Contains every hack for Internet Explorer,
   so that our core files stay sweet and nimble.

-------------------------------------------------------------- */

/* Fixes IE margin bugs */
* html .grid_1, * html .grid_2,
* html .grid_3, * html .grid_4,
* html .grid_5, * html .grid_6,
* html .grid_7, * html .grid_8,
* html .grid_9, * html .grid_10,
* html .grid_11, * html .grid_12,
* html .grid_13, * html .grid_14,
* html .grid_15, * html .grid_16,
* html .grid_17, * html .grid_18,
* html .grid_19, * html .grid_20,
* html .grid_21, * html .grid_22,
* html .grid_23, * html .grid_24        { display:inline; overflow-x: hidden; }


/* Elements
-------------------------------------------------------------- */

/* Fixes incorrect styling of legend in IE6. */
* html legend                           { margin:0px -8px 16px 0; padding:0; }

/* Fixes wrong line-height on sup/sub in IE. */
sup                                     { vertical-align:text-top; }
sub                                     { vertical-align:text-bottom; }

/* Fixes IE7 missing wrapping of code elements. */
html>body p code                        { *white-space: normal; }

/* IE 6&7 has problems with setting proper <hr> margins. */
hr                                      { margin:-8px auto 11px; }

/* Explicitly set interpolation, allowing dynamically resized images to not look horrible */
img                                     { -ms-interpolation-mode:bicubic; }

/* Clearing
-------------------------------------------------------------- */

/* Makes clearfix actually work in IE */
.clearfix                               { display:inline-block; }
* html .clearfix                        { height:1%; }


/* Forms
-------------------------------------------------------------- */

/* Fixes padding on fieldset */
fieldset                                { padding-top:0; }
legend                                  { margin-top:-0.2em; margin-bottom:1em; margin-left:-0.5em; }

/* Makes classic textareas in IE 6 resemble other browsers */
textarea                                { overflow:auto; }

/* Makes labels behave correctly in IE 6 and 7 */
label                                   { vertical-align:middle; position:relative; top:-0.25em; }

/* Fixes rule that IE 6 ignores */
input.text, input.title, textarea       { background-color:#fff; border:1px solid #bbb; }
input.text:focus, input.title:focus     { border-color:#666; }
input.text, input.title, textarea,
select                                  { margin:0.5em 0; }
input.checkbox, input.radio             { position:relative; top:.25em; }

/* Fixes alignment of inline form elements */
form.inline div, form.inline p          { vertical-align:middle; }
form.inline input.checkbox,
form.inline input.radio,
form.inline input.button,
form.inline button                      { margin:0.5em 0; }
button, input.button                    { position:relative;top:0.25em; }