2012-12-20 03:43:55 +01:00
|
|
|
/*! normalize.css v2.0.1 | MIT License | git.io/normalize */
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
// ==========================================================================
|
|
|
|
// HTML5 display definitions
|
|
|
|
// ==========================================================================
|
2012-12-20 03:43:55 +01:00
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Correct `block` display not defined in IE 8/9.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
article,
|
|
|
|
aside,
|
|
|
|
details,
|
|
|
|
figcaption,
|
|
|
|
figure,
|
|
|
|
footer,
|
|
|
|
header,
|
|
|
|
hgroup,
|
|
|
|
nav,
|
|
|
|
section,
|
|
|
|
summary {
|
2012-12-20 23:11:40 +01:00
|
|
|
display: block;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Correct `inline-block` display not defined in IE 8/9.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
audio,
|
|
|
|
canvas,
|
|
|
|
video {
|
2012-12-20 23:11:40 +01:00
|
|
|
display: inline-block;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Prevent modern browsers from displaying `audio` without controls.
|
|
|
|
// Remove excess height in iOS 5 devices.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
audio:not([controls]) {
|
2012-12-20 23:11:40 +01:00
|
|
|
display: none;
|
|
|
|
height: 0;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Address styling not present in IE 8/9.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
[hidden] {
|
2012-12-20 23:11:40 +01:00
|
|
|
display: none;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
// ==========================================================================
|
|
|
|
// Base
|
|
|
|
// ==========================================================================
|
2012-12-20 03:43:55 +01:00
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// 1. Set default font family to sans-serif.
|
|
|
|
// 2. Prevent iOS text size adjust after orientation change, without disabling
|
|
|
|
// user zoom.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
html {
|
2012-12-20 23:11:40 +01:00
|
|
|
font-family: sans-serif; // 1
|
|
|
|
-webkit-text-size-adjust: 100%; // 2
|
|
|
|
-ms-text-size-adjust: 100%; // 2
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Remove default margin.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
body {
|
2012-12-20 23:11:40 +01:00
|
|
|
margin: 0;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
// ==========================================================================
|
|
|
|
// Links
|
|
|
|
// ==========================================================================
|
2012-12-20 03:43:55 +01:00
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Address `outline` inconsistency between Chrome and other browsers.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
a:focus {
|
2012-12-20 23:11:40 +01:00
|
|
|
outline: thin dotted;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Improve readability when focused and also mouse hovered in all browsers.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
a:active,
|
|
|
|
a:hover {
|
2012-12-20 23:11:40 +01:00
|
|
|
outline: 0;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
// ==========================================================================
|
|
|
|
// Typography
|
|
|
|
// ==========================================================================
|
2012-12-20 03:43:55 +01:00
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Address variable `h1` font size within `section` and `article` contexts in
|
|
|
|
// Firefox 4+, Safari 5, and Chrome.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
h1 {
|
2012-12-20 23:11:40 +01:00
|
|
|
font-size: 2em;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Address styling not present in IE 8/9, Safari 5, and Chrome.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
abbr[title] {
|
2012-12-20 23:11:40 +01:00
|
|
|
border-bottom: 1px dotted;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
b,
|
|
|
|
strong {
|
2012-12-20 23:11:40 +01:00
|
|
|
font-weight: bold;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Address styling not present in Safari 5 and Chrome.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
dfn {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Address styling not present in IE 8/9.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
mark {
|
2012-12-20 23:11:40 +01:00
|
|
|
background: #ff0;
|
|
|
|
color: #000;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Correct font family set oddly in Safari 5 and Chrome.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
code,
|
|
|
|
kbd,
|
|
|
|
pre,
|
|
|
|
samp {
|
2012-12-20 23:11:40 +01:00
|
|
|
font-family: monospace, serif;
|
|
|
|
font-size: 1em;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Improve readability of pre-formatted text in all browsers.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
pre {
|
2012-12-20 23:11:40 +01:00
|
|
|
white-space: pre;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-wrap: break-word;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Set consistent quote types.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
q {
|
2012-12-20 23:11:40 +01:00
|
|
|
quotes: "\201C" "\201D" "\2018" "\2019";
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Address inconsistent and variable font size in all browsers.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
small {
|
2012-12-20 23:11:40 +01:00
|
|
|
font-size: 80%;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
sub,
|
|
|
|
sup {
|
2012-12-20 23:11:40 +01:00
|
|
|
font-size: 75%;
|
|
|
|
line-height: 0;
|
|
|
|
position: relative;
|
|
|
|
vertical-align: baseline;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
sup {
|
2012-12-20 23:11:40 +01:00
|
|
|
top: -0.5em;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
sub {
|
2012-12-20 23:11:40 +01:00
|
|
|
bottom: -0.25em;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
// ==========================================================================
|
|
|
|
// Embedded content
|
|
|
|
// ==========================================================================
|
2012-12-20 03:43:55 +01:00
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Remove border when inside `a` element in IE 8/9.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
img {
|
2012-12-20 23:11:40 +01:00
|
|
|
border: 0;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Correct overflow displayed oddly in IE 9.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
svg:not(:root) {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
// ==========================================================================
|
|
|
|
// Figures
|
|
|
|
// ==========================================================================
|
2012-12-20 03:43:55 +01:00
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Address margin not present in IE 8/9 and Safari 5.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
figure {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
// ==========================================================================
|
|
|
|
// Forms
|
|
|
|
// ==========================================================================
|
2012-12-20 03:43:55 +01:00
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Define consistent border, margin, and padding.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
fieldset {
|
2012-12-20 23:11:40 +01:00
|
|
|
border: 1px solid #c0c0c0;
|
|
|
|
margin: 0 2px;
|
|
|
|
padding: 0.35em 0.625em 0.75em;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// 1. Correct `color` not being inherited in IE 8/9.
|
|
|
|
// 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
legend {
|
2012-12-20 23:11:40 +01:00
|
|
|
border: 0; // 1
|
|
|
|
padding: 0; // 2
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// 1. Correct font family not being inherited in all browsers.
|
|
|
|
// 2. Correct font size not being inherited in all browsers.
|
|
|
|
// 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
button,
|
|
|
|
input,
|
|
|
|
select,
|
|
|
|
textarea {
|
2012-12-20 23:11:40 +01:00
|
|
|
font-family: inherit; // 1
|
|
|
|
font-size: 100%; // 2
|
|
|
|
margin: 0; // 3
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
|
|
|
// the UA stylesheet.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
button,
|
|
|
|
input {
|
2012-12-20 23:11:40 +01:00
|
|
|
line-height: normal;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
|
|
|
// and `video` controls.
|
|
|
|
// 2. Correct inability to style clickable `input` types in iOS.
|
|
|
|
// 3. Improve usability and consistency of cursor style between image-type
|
|
|
|
// `input` and others.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
button,
|
2012-12-20 23:08:09 +01:00
|
|
|
html input[type="button"], // 1
|
2012-12-20 03:43:55 +01:00
|
|
|
input[type="reset"],
|
|
|
|
input[type="submit"] {
|
2012-12-20 23:11:40 +01:00
|
|
|
-webkit-appearance: button; // 2
|
|
|
|
cursor: pointer; // 3
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Re-set default cursor for disabled elements.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
button[disabled],
|
|
|
|
html input[disabled] {
|
2012-12-20 23:11:40 +01:00
|
|
|
cursor: default;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// 1. Address box sizing set to `content-box` in IE 8/9.
|
|
|
|
// 2. Remove excess padding in IE 8/9.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
input[type="checkbox"],
|
|
|
|
input[type="radio"] {
|
2012-12-20 23:11:40 +01:00
|
|
|
box-sizing: border-box; // 1
|
|
|
|
padding: 0; // 2
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
|
|
|
// 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
|
|
|
// (include `-moz` to future-proof).
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
input[type="search"] {
|
2012-12-20 23:11:40 +01:00
|
|
|
-webkit-appearance: textfield; // 1
|
|
|
|
-moz-box-sizing: content-box;
|
|
|
|
-webkit-box-sizing: content-box; // 2
|
|
|
|
box-sizing: content-box;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Remove inner padding and search cancel button in Safari 5 and Chrome
|
|
|
|
// on OS X.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
input[type="search"]::-webkit-search-cancel-button,
|
|
|
|
input[type="search"]::-webkit-search-decoration {
|
2012-12-20 23:11:40 +01:00
|
|
|
-webkit-appearance: none;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Remove inner padding and border in Firefox 4+.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
button::-moz-focus-inner,
|
|
|
|
input::-moz-focus-inner {
|
2012-12-20 23:11:40 +01:00
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// 1. Remove default vertical scrollbar in IE 8/9.
|
|
|
|
// 2. Improve readability and alignment in all browsers.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
textarea {
|
2012-12-20 23:11:40 +01:00
|
|
|
overflow: auto; // 1
|
|
|
|
vertical-align: top; // 2
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
// ==========================================================================
|
|
|
|
// Tables
|
|
|
|
// ==========================================================================
|
2012-12-20 03:43:55 +01:00
|
|
|
|
2012-12-20 23:08:09 +01:00
|
|
|
//
|
|
|
|
// Remove most spacing between table cells.
|
|
|
|
//
|
2012-12-20 03:43:55 +01:00
|
|
|
|
|
|
|
table {
|
2012-12-20 23:11:40 +01:00
|
|
|
border-collapse: collapse;
|
|
|
|
border-spacing: 0;
|
2012-12-20 03:43:55 +01:00
|
|
|
}
|