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