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