2012-06-29 00:46:45 -04:00
|
|
|
//
|
2012-11-19 16:49:47 -05:00
|
|
|
// Reset CSS
|
2012-06-29 00:46:45 -04:00
|
|
|
// Adapted from http://github.com/necolas/normalize.css
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2011-08-17 01:58:01 -04:00
|
|
|
|
2012-10-01 02:19:55 -04:00
|
|
|
// HTML elements <IE9
|
2011-08-25 03:13:40 -04:00
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
article,
|
|
|
|
aside,
|
|
|
|
details,
|
|
|
|
figcaption,
|
|
|
|
figure,
|
|
|
|
footer,
|
|
|
|
header,
|
|
|
|
hgroup,
|
|
|
|
nav,
|
|
|
|
section {
|
2011-06-28 14:56:49 -04:00
|
|
|
display: block;
|
2011-08-25 03:13:40 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
audio,
|
|
|
|
canvas,
|
|
|
|
video {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Prevents modern browsers from displaying 'audio' without controls
|
|
|
|
// -------------------------
|
2012-01-20 16:16:40 -05:00
|
|
|
|
2011-08-25 03:13:40 -04:00
|
|
|
audio:not([controls]) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2012-01-20 16:16:40 -05:00
|
|
|
// Base settings
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
html {
|
|
|
|
font-size: 100%;
|
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
|
}
|
|
|
|
// Focus states
|
|
|
|
a:focus {
|
2012-01-27 21:33:25 -05:00
|
|
|
.tab-focus();
|
2012-01-20 16:16:40 -05:00
|
|
|
}
|
|
|
|
// Hover & Active
|
|
|
|
a:hover,
|
|
|
|
a:active {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
2011-08-25 03:13:40 -04:00
|
|
|
// Prevents sub and sup affecting line-height in all browsers
|
|
|
|
// -------------------------
|
2012-01-20 16:16:40 -05:00
|
|
|
|
2011-08-25 03:13:40 -04:00
|
|
|
sub,
|
|
|
|
sup {
|
2011-11-17 04:28:42 -05:00
|
|
|
position: relative;
|
2011-08-25 03:13:40 -04: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 16:16:40 -05:00
|
|
|
|
2011-08-25 03:13:40 -04:00
|
|
|
img {
|
2012-09-03 20:35:35 -04: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-26 01:07:53 -04:00
|
|
|
width: auto\9; /* IE8 need help adjusting responsive images */
|
2012-09-03 20:35:35 -04:00
|
|
|
height: auto; /* Part 2: Scale the height according to the width, otherwise you get stretching */
|
|
|
|
|
2012-04-16 18:09:05 -04:00
|
|
|
vertical-align: middle;
|
2011-11-17 04:28:42 -05:00
|
|
|
border: 0;
|
|
|
|
-ms-interpolation-mode: bicubic;
|
2011-08-25 03:13:40 -04:00
|
|
|
}
|
|
|
|
|
2012-05-24 23:18:52 -04:00
|
|
|
// Prevent max-width from affecting Google Maps
|
2012-10-01 13:48:57 -04:00
|
|
|
#map_canvas img,
|
|
|
|
.google-maps img {
|
2012-05-24 23:18:52 -04:00
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
|
2011-08-25 03:13:40 -04:00
|
|
|
// Forms
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
// Font size in all browsers, margin changes, misc consistency
|
|
|
|
button,
|
|
|
|
input,
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
margin: 0;
|
2011-11-17 04:28:42 -05:00
|
|
|
font-size: 100%;
|
2012-01-26 16:02:27 -05:00
|
|
|
vertical-align: middle;
|
2011-08-25 03:13:40 -04:00
|
|
|
}
|
|
|
|
button,
|
|
|
|
input {
|
2012-10-01 02:19:55 -04:00
|
|
|
line-height: normal;
|
2011-08-25 03:13:40 -04:00
|
|
|
}
|
|
|
|
button,
|
2012-09-18 14:23:16 -04:00
|
|
|
html input[type="button"], // Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls.
|
2011-08-25 03:13:40 -04:00
|
|
|
input[type="reset"],
|
|
|
|
input[type="submit"] {
|
2012-09-18 14:23:16 -04: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 03:13:40 -04:00
|
|
|
}
|
2012-11-01 12:44:51 -04:00
|
|
|
label,
|
|
|
|
select,
|
|
|
|
button,
|
|
|
|
input[type="button"],
|
|
|
|
input[type="reset"],
|
|
|
|
input[type="submit"],
|
|
|
|
input[type="radio"],
|
|
|
|
input[type="checkbox"] {
|
|
|
|
cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
|
|
|
|
}
|
2011-08-25 03:13:40 -04:00
|
|
|
input[type="search"] { // Appearance in Safari/Chrome
|
2012-10-30 05:22:09 -04:00
|
|
|
.box-sizing(content-box);
|
2012-04-16 18:09:05 -04:00
|
|
|
-webkit-appearance: textfield;
|
2011-08-25 03:13:40 -04:00
|
|
|
}
|
2012-01-19 16:02:00 -05:00
|
|
|
input[type="search"]::-webkit-search-decoration,
|
|
|
|
input[type="search"]::-webkit-search-cancel-button {
|
2011-08-25 03:13:40 -04: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 16:02:00 -05:00
|
|
|
}
|
2012-11-03 16:37:34 -04:00
|
|
|
|
|
|
|
|
|
|
|
// Printing
|
|
|
|
// -------------------------
|
|
|
|
// Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
|
|
|
|
* {
|
|
|
|
text-shadow: none !important;
|
|
|
|
color: #000 !important; // Black prints faster: h5bp.com/s
|
|
|
|
background: transparent !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
a,
|
|
|
|
a:visited {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
a[href]:after {
|
|
|
|
content: " (" attr(href) ")";
|
|
|
|
}
|
|
|
|
|
|
|
|
abbr[title]:after {
|
|
|
|
content: " (" attr(title) ")";
|
|
|
|
}
|
|
|
|
|
|
|
|
// Don't show links for images, or javascript/internal links
|
|
|
|
.ir a:after,
|
|
|
|
a[href^="javascript:"]:after,
|
|
|
|
a[href^="#"]:after {
|
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
|
|
|
|
pre,
|
|
|
|
blockquote {
|
|
|
|
border: 1px solid #999;
|
|
|
|
page-break-inside: avoid;
|
|
|
|
}
|
|
|
|
|
|
|
|
thead {
|
|
|
|
display: table-header-group; // h5bp.com/t
|
|
|
|
}
|
|
|
|
|
|
|
|
tr,
|
|
|
|
img {
|
|
|
|
page-break-inside: avoid;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-width: 100% !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
@page {
|
|
|
|
margin: 0.5cm;
|
|
|
|
}
|
|
|
|
|
|
|
|
p,
|
|
|
|
h2,
|
|
|
|
h3 {
|
|
|
|
orphans: 3;
|
|
|
|
widows: 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2,
|
|
|
|
h3 {
|
|
|
|
page-break-after: avoid;
|
|
|
|
}
|
2012-11-03 16:44:01 -04:00
|
|
|
}
|