2012-06-29 04:46:45 +00:00
|
|
|
//
|
|
|
|
// Modals
|
|
|
|
// Adapted from http://github.com/necolas/normalize.css
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2011-08-17 05:58:01 +00:00
|
|
|
|
2011-08-25 07:13:40 +00:00
|
|
|
// Display in IE6-9 and FF3
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
article,
|
|
|
|
aside,
|
|
|
|
details,
|
|
|
|
figcaption,
|
|
|
|
figure,
|
|
|
|
footer,
|
|
|
|
header,
|
|
|
|
hgroup,
|
|
|
|
nav,
|
|
|
|
section {
|
2011-06-28 18:56:49 +00:00
|
|
|
display: block;
|
2011-08-25 07:13:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Display block in IE6-9 and FF3
|
|
|
|
// -------------------------
|
2012-01-20 21:16:40 +00:00
|
|
|
|
2011-08-25 07:13:40 +00:00
|
|
|
audio,
|
|
|
|
canvas,
|
|
|
|
video {
|
|
|
|
display: inline-block;
|
|
|
|
*display: inline;
|
|
|
|
*zoom: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Prevents modern browsers from displaying 'audio' without controls
|
|
|
|
// -------------------------
|
2012-01-20 21:16:40 +00:00
|
|
|
|
2011-08-25 07:13:40 +00:00
|
|
|
audio:not([controls]) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2012-01-20 21:16:40 +00:00
|
|
|
// Base settings
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
html {
|
|
|
|
font-size: 100%;
|
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
|
}
|
|
|
|
// Focus states
|
|
|
|
a:focus {
|
2012-01-28 02:33:25 +00:00
|
|
|
.tab-focus();
|
2012-01-20 21:16:40 +00:00
|
|
|
}
|
|
|
|
// Hover & Active
|
|
|
|
a:hover,
|
|
|
|
a:active {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
2011-08-25 07:13:40 +00:00
|
|
|
// Prevents sub and sup affecting line-height in all browsers
|
|
|
|
// -------------------------
|
2012-01-20 21:16:40 +00:00
|
|
|
|
2011-08-25 07:13:40 +00:00
|
|
|
sub,
|
|
|
|
sup {
|
2011-11-17 09:28:42 +00:00
|
|
|
position: relative;
|
2011-08-25 07:13:40 +00:00
|
|
|
font-size: 75%;
|
|
|
|
line-height: 0;
|
|
|
|
vertical-align: baseline;
|
|
|
|
}
|
|
|
|
sup {
|
|
|
|
top: -0.5em;
|
|
|
|
}
|
|
|
|
sub {
|
|
|
|
bottom: -0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Img border in a's and image quality
|
|
|
|
// -------------------------
|
2012-01-20 21:16:40 +00:00
|
|
|
|
2011-08-25 07:13:40 +00:00
|
|
|
img {
|
2012-09-04 00:35:35 +00:00
|
|
|
/* Responsive images (ensure images don't scale beyond their parents) */
|
|
|
|
max-width: 100%; /* Part 1: Set a maxium relative to the parent */
|
2012-09-03 08:13:42 +00:00
|
|
|
width: auto\9; /* IE7-8 need help adjusting responsive images */
|
2012-09-04 00:35:35 +00:00
|
|
|
height: auto; /* Part 2: Scale the height according to the width, otherwise you get stretching */
|
|
|
|
|
2012-04-16 22:09:05 +00:00
|
|
|
vertical-align: middle;
|
2011-11-17 09:28:42 +00:00
|
|
|
border: 0;
|
|
|
|
-ms-interpolation-mode: bicubic;
|
2011-08-25 07:13:40 +00:00
|
|
|
}
|
|
|
|
|
2012-05-25 03:18:52 +00:00
|
|
|
// Prevent max-width from affecting Google Maps
|
2012-10-01 17:48:57 +00:00
|
|
|
#map_canvas img,
|
|
|
|
.google-maps img {
|
2012-05-25 03:18:52 +00:00
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
|
2011-08-25 07:13:40 +00:00
|
|
|
// Forms
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
// Font size in all browsers, margin changes, misc consistency
|
|
|
|
button,
|
|
|
|
input,
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
margin: 0;
|
2011-11-17 09:28:42 +00:00
|
|
|
font-size: 100%;
|
2012-01-26 21:02:27 +00:00
|
|
|
vertical-align: middle;
|
2011-08-25 07:13:40 +00:00
|
|
|
}
|
|
|
|
button,
|
|
|
|
input {
|
|
|
|
*overflow: visible; // Inner spacing ie IE6/7
|
2011-11-17 09:28:42 +00:00
|
|
|
line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
|
2011-08-25 07:13:40 +00:00
|
|
|
}
|
|
|
|
button::-moz-focus-inner,
|
|
|
|
input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
|
|
|
|
padding: 0;
|
2011-11-17 09:28:42 +00:00
|
|
|
border: 0;
|
2011-08-25 07:13:40 +00:00
|
|
|
}
|
|
|
|
button,
|
2012-09-18 18:23:16 +00:00
|
|
|
html input[type="button"], // Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls.
|
2011-08-25 07:13:40 +00:00
|
|
|
input[type="reset"],
|
|
|
|
input[type="submit"] {
|
2012-09-18 18:23:16 +00:00
|
|
|
-webkit-appearance: button; // Corrects inability to style clickable `input` types in iOS.
|
|
|
|
cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
|
2011-08-25 07:13:40 +00:00
|
|
|
}
|
|
|
|
input[type="search"] { // Appearance in Safari/Chrome
|
|
|
|
-webkit-box-sizing: content-box;
|
|
|
|
-moz-box-sizing: content-box;
|
|
|
|
box-sizing: content-box;
|
2012-04-16 22:09:05 +00:00
|
|
|
-webkit-appearance: textfield;
|
2011-08-25 07:13:40 +00:00
|
|
|
}
|
2012-01-19 21:02:00 +00:00
|
|
|
input[type="search"]::-webkit-search-decoration,
|
|
|
|
input[type="search"]::-webkit-search-cancel-button {
|
2011-08-25 07:13:40 +00:00
|
|
|
-webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
|
|
|
|
}
|
|
|
|
textarea {
|
|
|
|
overflow: auto; // Remove vertical scrollbar in IE6-9
|
|
|
|
vertical-align: top; // Readability and alignment cross-browser
|
2012-01-19 21:02:00 +00:00
|
|
|
}
|