3 * Normalize.css is intended to be used as an alternative to CSS resets.
5 * This file is a slight fork of these original sources:
6 * - normalize.css v2.1.2 | MIT License | git.io/normalize
7 * - normalize.scss v2.1.2 | MIT/GPLv2 License | bit.ly/normalize-with-compass
9 * It's suggested that you read the normalize.scss file and customise it to meet
10 * your needs, rather then including the file in your project and overriding the
11 * defaults later in your CSS.
12 * @see http://nicolasgallagher.com/about-normalize-css/
14 * Also: @see http://meiert.com/en/blog/20080419/reset-style-sheets-are-bad/
15 * @see http://snook.ca/archives/html_and_css/no_css_reset/
19 * HTML5 display definitions
22 /* Correct `block` display not defined in IE 8/9. */
37 /* Correct `inline-block` display not defined in IE 8/9. */
41 display: inline-block;
42 @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
49 * Prevent modern browsers from displaying `audio` without controls.
50 * Remove excess height in iOS 5 devices.
52 audio:not([controls]) {
57 /* Address styling not present in IE 8/9. */
65 * Instead of relying on the fonts that are available on a user's computer, you
66 * can use web fonts which, like images, are resources downloaded to the user's
67 * browser. Because of the bandwidth and rendering resources required, web fonts
68 * should be used with care.
70 * Numerous resources for web fonts can be found on Google. Here are a few
71 * websites where you can find Open Source fonts to download:
72 * - http://www.fontsquirrel.com/fontface
73 * - http://www.theleagueofmoveabletype.com
75 * In order to use these fonts, you will need to convert them into formats
76 * suitable for web fonts. We recommend the free-to-use Font Squirrel's
77 * Font-Face Generator:
78 * http://www.fontsquirrel.com/fontface/generator
80 * The following is an example @font-face declaration. This font can then be
81 * used in any ruleset using a property like this: font-family: Example, serif;
83 * Since we're using Sass, you'll need to declare your font faces here, then you
84 * can add them to the font variables in the _base.scss partial.
88 font-family: 'Example';
89 src: url('../fonts/example.eot');
90 src: url('../fonts/example.eot?iefix') format('eot'),
91 url('../fonts/example.woff') format('woff'),
92 url('../fonts/example.ttf') format('truetype'),
93 url('../fonts/example.svg#webfontOkOndcij') format('svg');
100 * 1. Set default font family to sans-serif.
101 * 2. Prevent iOS text size adjust after orientation change, without disabling
103 * 3. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
107 font-family: $base-font-family; /* 1 */
108 font-size: 100% * ($base-font-size / 16px); /* 3 */
109 -ms-text-size-adjust: 100%; /* 2 */
110 -webkit-text-size-adjust: 100%; /* 2 */
111 // Establish a vertical rhythm unit using $base-line-height.
112 @include adjust-leading-to(1);
115 @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
116 /* Address `font-family` inconsistency between `textarea` and other form elements. */
121 font-family: $base-font-family;
125 /* Remove default margin. */
134 * The order of link states are based on Eric Meyer's article:
135 * http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states
147 /* Address `outline` inconsistency between Chrome and other browsers. */
149 outline: thin dotted;
152 /* Improve readability when focused and also mouse hovered in all browsers. */
161 * To achieve a pleasant vertical rhythm, we use Compass' Vertical Rhythm mixins
162 * so that the line height of our base font becomes the basic unit of vertical
163 * measurement. We use multiples of that unit to set the top and bottom margins
164 * for our block level elements and to set the line heights of any fonts.
165 * For more information, see http://24ways.org/2006/compose-to-a-vertical-rhythm
168 /* Set 1 unit of vertical rhythm on the top and bottom margin. */
174 /* Also indent the quote on both sides. */
175 margin: rhythm(1) $indent-amount;
179 * Address variable `h1` font-size and margin within `section` and `article`
180 * contexts in Firefox 4+, Safari 5, and Chrome.
183 /* Set the font-size and line-height while keeping a proper vertical rhythm. */
184 @include adjust-font-size-to( $h1-font-size );
186 /* Set 1 unit of vertical rhythm on the top and bottom margins. */
187 @include leader(1, $h1-font-size);
188 @include trailer(1, $h1-font-size);
191 @include adjust-font-size-to( $h2-font-size );
192 @include leader(1, $h2-font-size);
193 @include trailer(1, $h2-font-size);
196 @include adjust-font-size-to( $h3-font-size );
197 @include leader(1, $h3-font-size);
198 @include trailer(1, $h3-font-size);
201 @include adjust-font-size-to( $h4-font-size );
202 @include leader(1, $h4-font-size);
203 @include trailer(1, $h4-font-size);
206 @include adjust-font-size-to( $h5-font-size );
207 @include leader(1, $h5-font-size);
208 @include trailer(1, $h5-font-size);
211 @include adjust-font-size-to( $h6-font-size );
212 @include leader(1, $h6-font-size);
213 @include trailer(1, $h6-font-size);
216 /* Address styling not present in IE 8/9, Safari 5, and Chrome. */
218 border-bottom: 1px dotted;
221 /* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. */
227 /* Address styling not present in Safari 5 and Chrome. */
232 /* Address differences between Firefox and other browsers. */
234 @include box-sizing(content-box);
236 border: 1px solid #666;
237 padding-bottom: -1px;
241 /* Address styling not present in IE 8/9. */
247 /* Correct font family set oddly in Safari 5 and Chrome. */
254 font-family: $font-monospace; // The value of $font-monospace ends with ", serif".
255 @if $legacy-support-for-ie6 {
256 _font-family: 'courier new', monospace;
258 @include adjust-font-size-to( $base-font-size );
261 /* Improve readability of pre-formatted text in all browsers. */
263 @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
265 white-space: pre-wrap;
266 word-wrap: break-word;
269 white-space: pre-wrap;
273 /* Set consistent quote types. */
275 quotes: "\201C" "\201D" "\2018" "\2019";
278 /* Address inconsistent and variable font size in all browsers. */
283 /* Prevent `sub` and `sup` affecting `line-height` in all browsers. */
289 vertical-align: baseline;
305 /* Address margins set differently in IE 6/7. */
312 /* Turn off margins on nested lists. */
317 margin: 0 0 0 $indent-amount;
320 /* Address paddings set differently in IE 6/7. */
324 padding: 0 0 0 $indent-amount;
327 @if $legacy-support-for-ie7 {
328 /* Correct list images handled incorrectly in IE 7. */
332 list-style-image: none;
337 * Embedded content and figures
339 * @todo Look into adding responsive embedded video.
342 /* Remove border when inside `a` element in IE 8/9. */
344 @if $legacy-support-for-ie7 {
345 /* Improve image quality when scaled in IE 7. */
346 -ms-interpolation-mode: bicubic;
349 /* Suppress the space beneath the baseline */
350 /* vertical-align: bottom; */
352 /* Responsive images */
355 @if $legacy-support-for-ie8 {
356 /* Correct IE 8 not scaling image height when resized. */
361 /* Correct overflow displayed oddly in IE 9. */
366 /* Address margin not present in IE 8/9 and Safari 5. */
375 @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
376 /* Correct margin displayed oddly in IE 6/7. */
382 /* Define consistent border, margin, and padding. */
385 /* Apply borders and padding that keep the vertical rhythm. */
386 border-color: #c0c0c0;
387 @include apply-side-rhythm-border(top, $width: 1px, $lines: 0.35);
388 @include apply-side-rhythm-border(bottom, $width: 1px, $lines: 0.65);
389 @include apply-side-rhythm-border(left, $width: 1px, $lines: 0.65);
390 @include apply-side-rhythm-border(right, $width: 1px, $lines: 0.65);
394 * 1. Correct `color` not being inherited in IE 8/9.
395 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
396 * 3. Correct alignment displayed oddly in IE 6/7.
401 @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
402 *margin-left: -7px; /* 3 */
407 * 1. Correct font family not being inherited in all browsers.
408 * 2. Correct font size not being inherited in all browsers.
409 * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
410 * 4. Improve appearance and consistency with IE 6/7.
411 * 5. Keep form elements constrained in their containers.
417 font-family: inherit; /* 1 */
418 font-size: 100%; /* 2 */
420 @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
421 vertical-align: baseline; /* 4 */
422 *vertical-align: middle; /* 4 */
424 max-width: 100%; /* 5 */
425 @include box-sizing(border-box); /* 5 */
429 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
438 * Address inconsistent `text-transform` inheritance for `button` and `select`.
439 * All other form control elements do not inherit `text-transform` values.
440 * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
441 * Correct `select` style inheritance in Firefox 4+ and Opera.
445 text-transform: none;
449 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
450 * and `video` controls.
451 * 2. Correct inability to style clickable `input` types in iOS.
452 * 3. Improve usability and consistency of cursor style between image-type
453 * `input` and others.
454 * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
455 * Known issue: inner spacing remains in IE 6.
458 html input[type="button"], /* 1 */
460 input[type="submit"] {
461 -webkit-appearance: button; /* 2 */
462 cursor: pointer; /* 3 */
463 @if $legacy-support-for-ie7 {
464 *overflow: visible; /* 4 */
469 * Re-set default cursor for disabled elements.
472 html input[disabled] {
477 * 1. Address box sizing set to `content-box` in IE 8/9.
478 * 2. Remove excess padding in IE 8/9.
479 * 3. Remove excess padding in IE 7.
480 * Known issue: excess padding remains in IE 6.
482 input[type="checkbox"],
483 input[type="radio"] {
484 @include box-sizing(border-box); /* 1 */
486 @if $legacy-support-for-ie7 {
487 *height: 13px; /* 3 */
488 *width: 13px; /* 3 */
493 * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
494 * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
495 * (include `-moz` to future-proof).
497 input[type="search"] {
498 -webkit-appearance: textfield; /* 1 */
499 @include box-sizing(content-box); /* 2 */
503 * Remove inner padding and search cancel button in Safari 5 and Chrome
506 input[type="search"]::-webkit-search-cancel-button,
507 input[type="search"]::-webkit-search-decoration {
508 -webkit-appearance: none;
511 /* Remove inner padding and border in Firefox 4+. */
512 button::-moz-focus-inner,
513 input::-moz-focus-inner {
519 * 1. Remove default vertical scrollbar in IE 8/9.
520 * 2. Improve readability and alignment in all browsers.
523 overflow: auto; /* 1 */
524 vertical-align: top; /* 2 */
527 /* Drupal-style form labels. */
537 /* Remove most spacing between table cells. */
538 border-collapse: collapse;
540 /* Prevent cramped-looking tables */
542 /* Add vertical rhythm margins. */