1 /* normalize.css v2.1.3 | MIT License | git.io/normalize */
2 /* normalize.scss v2.1.3 | MIT/GPLv2 License | bit.ly/normalize-with-compass */
5 // =============================================================================
6 // Variables and Imports
8 // If you have a base partial (or equivalent), you should move these lines to
9 // that file. @see http://compass-style.org/help/tutorials/best_practices/
10 // =============================================================================
12 // Set this to true to force CSS output to exactly match normalize.css.
13 $strict-normalize: true !default;
15 // The default font family.
16 $base-font-family: sans-serif !default;
18 // The base font size.
19 $base-font-size: 16px !default; // Override default set in Compass' Vertical Rhythm partial.
21 // The base line height determines the basic unit of vertical rhythm.
22 $base-line-height: 24px !default; // Override default set in Compass' Vertical Rhythm partial.
24 // The font sizes for h1-h6.
25 $h1-font-size: 2 * $base-font-size !default;
26 $h2-font-size: 1.5 * $base-font-size !default;
27 $h3-font-size: 1.17 * $base-font-size !default;
28 $h4-font-size: 1 * $base-font-size !default;
29 $h5-font-size: 0.83 * $base-font-size !default;
30 $h6-font-size: 0.67 * $base-font-size !default;
32 // The amount lists and blockquotes are indented.
33 $indent-amount: 40px !default;
35 // Set this to true to add support for IE 6.
36 $legacy-support-for-ie6: false !default; // Override default set in Compass' Support partial.
38 // Set this to true to add support for IE 7.
39 $legacy-support-for-ie7: false !default; // Override default set in Compass' Support partial.
41 // After the default variables are set, import the required Compass partials.
42 @import "compass/support";
43 @import "compass/css3/box-sizing";
44 @import "compass/typography/vertical_rhythm";
47 /* ==========================================================================
48 HTML5 display definitions
49 ========================================================================== */
52 * Correct `block` display not defined in IE 8/9.
71 * Correct `inline-block` display not defined in IE 8/9.
77 display: inline-block;
78 @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
85 * Prevent modern browsers from displaying `audio` without controls.
86 * Remove excess height in iOS 5 devices.
89 audio:not([controls]) {
95 * Address `[hidden]` styling not present in IE 8/9.
96 * Hide the `template` element in IE, Safari, and Firefox < 22.
104 /* ==========================================================================
106 ========================================================================== */
109 * 1. Set default font family to sans-serif.
110 * 2. Prevent iOS text size adjust after orientation change, without disabling
112 * 3. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
117 font-family: $base-font-family; /* 1 */
118 @if not $strict-normalize or $legacy-support-for-ie6 or $legacy-support-for-ie7 {
119 font-size: 100% * ($base-font-size / 16px); /* 3 */
121 -ms-text-size-adjust: 100%; /* 2 */
122 -webkit-text-size-adjust: 100%; /* 2 */
124 @if not $strict-normalize {
125 /* Establish a vertical rhythm unit using $base-line-height. */
126 @include adjust-leading-to(1);
130 @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
132 * Address `font-family` inconsistency between `textarea` and other form
140 font-family: $base-font-family;
145 * Remove default margin.
152 /* ==========================================================================
154 ========================================================================== */
157 * Remove the gray background color from active links in IE 10.
161 background: transparent;
165 * Address `outline` inconsistency between Chrome and other browsers.
169 outline: thin dotted;
173 * Improve readability when focused and also mouse hovered in all browsers.
181 /* ==========================================================================
183 ========================================================================== */
185 @if not $strict-normalize or $legacy-support-for-ie6 or $legacy-support-for-ie7 {
187 * Set 1 unit of vertical rhythm on the top and bottom margin.
196 /* Set 1 unit of vertical rhythm on the top and bottom margin. */
197 margin: rhythm(1) $indent-amount;
202 * Address variable `h1` font-size and margin within `section` and `article`
203 * contexts in Firefox 4+, Safari 5, and Chrome.
207 /* Set the font-size and line-height while keeping a proper vertical rhythm. */
208 @if not $strict-normalize or $legacy-support-for-ie6 or $legacy-support-for-ie7 {
209 @include adjust-font-size-to( $h1-font-size );
212 font-size: 1em * ($h1-font-size / $base-font-size);
215 /* Set 1 unit of vertical rhythm on the top and bottom margins. */
216 @include leader(1, $h1-font-size);
217 @include trailer(1, $h1-font-size);
220 @if not $strict-normalize or $legacy-support-for-ie6 or $legacy-support-for-ie7 {
222 @include adjust-font-size-to( $h2-font-size );
223 @include leader(1, $h2-font-size);
224 @include trailer(1, $h2-font-size);
228 @include adjust-font-size-to( $h3-font-size );
229 @include leader(1, $h3-font-size);
230 @include trailer(1, $h3-font-size);
234 @include adjust-font-size-to( $h4-font-size );
235 @include leader(1, $h4-font-size);
236 @include trailer(1, $h4-font-size);
240 @include adjust-font-size-to( $h5-font-size );
241 @include leader(1, $h5-font-size);
242 @include trailer(1, $h5-font-size);
246 @include adjust-font-size-to( $h6-font-size );
247 @include leader(1, $h6-font-size);
248 @include trailer(1, $h6-font-size);
253 * Address styling not present in IE 8/9, Safari 5, and Chrome.
257 border-bottom: 1px dotted;
261 * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
270 * Address styling not present in Safari 5 and Chrome.
278 * Address differences between Firefox and other browsers.
282 @include box-sizing(content-box);
287 * Address styling not present in IE 8/9.
296 * Correct font family set oddly in Safari 5 and Chrome.
303 font-family: monospace, serif;
304 @if $legacy-support-for-ie6 {
305 _font-family: 'courier new', monospace;
307 @if $strict-normalize {
311 @include adjust-font-size-to( $base-font-size );
316 * Improve readability of pre-formatted text in all browsers.
320 @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
322 white-space: pre-wrap;
323 word-wrap: break-word;
326 white-space: pre-wrap;
331 * Set consistent quote types.
335 quotes: "\201C" "\201D" "\2018" "\2019";
339 * Address inconsistent and variable font size in all browsers.
347 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
355 vertical-align: baseline;
366 /* ==========================================================================
368 ========================================================================== */
370 @if not $strict-normalize or $legacy-support-for-ie6 or $legacy-support-for-ie7 {
372 * Address margins set differently in IE 6/7.
382 @if not $strict-normalize {
393 margin: 0 0 0 $indent-amount;
397 * Address paddings set differently in IE 6/7.
403 padding: 0 0 0 $indent-amount;
407 @if $legacy-support-for-ie7 {
409 * Correct list images handled incorrectly in IE 7.
415 list-style-image: none;
419 /* ==========================================================================
421 ========================================================================== */
424 * Remove border when inside `a` element in IE 8/9.
429 @if $legacy-support-for-ie7 {
430 /* Improve image quality when scaled in IE 7. */
431 -ms-interpolation-mode: bicubic;
436 * Correct overflow displayed oddly in IE 9.
443 /* ==========================================================================
445 ========================================================================== */
448 * Address margin not present in IE 8/9 and Safari 5.
455 /* ==========================================================================
457 ========================================================================== */
459 @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
461 * Correct margin displayed oddly in IE 6/7.
470 * Define consistent border, margin, and padding.
475 /* Apply borders and padding that keep the vertical rhythm. */
476 border-color: #c0c0c0;
477 @include apply-side-rhythm-border(top, $width: 1px, $lines: 0.35);
478 @include apply-side-rhythm-border(bottom, $width: 1px, $lines: 0.65);
479 @include apply-side-rhythm-border(left, $width: 1px, $lines: 0.625);
480 @include apply-side-rhythm-border(right, $width: 1px, $lines: 0.625);
484 * 1. Correct `color` not being inherited in IE 8/9.
485 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
486 * 3. Correct alignment displayed oddly in IE 6/7.
492 @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
493 *margin-left: -7px; /* 3 */
498 * 1. Correct font family not being inherited in all browsers.
499 * 2. Correct font size not being inherited in all browsers.
500 * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
501 * 4. Improve appearance and consistency with IE 6/7.
508 font-family: inherit; /* 1 */
509 font-size: 100%; /* 2 */
511 @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
512 vertical-align: baseline; /* 4 */
513 *vertical-align: middle; /* 4 */
518 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
528 * Address inconsistent `text-transform` inheritance for `button` and `select`.
529 * All other form control elements do not inherit `text-transform` values.
530 * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
531 * Correct `select` style inheritance in Firefox 4+ and Opera.
536 text-transform: none;
540 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
541 * and `video` controls.
542 * 2. Correct inability to style clickable `input` types in iOS.
543 * 3. Improve usability and consistency of cursor style between image-type
544 * `input` and others.
545 * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
546 * Known issue: inner spacing remains in IE 6.
550 html input[type="button"], /* 1 */
552 input[type="submit"] {
553 -webkit-appearance: button; /* 2 */
554 cursor: pointer; /* 3 */
555 @if $legacy-support-for-ie7 {
556 *overflow: visible; /* 4 */
561 * Re-set default cursor for disabled elements.
565 html input[disabled] {
570 * 1. Address box sizing set to `content-box` in IE 8/9/10.
571 * 2. Remove excess padding in IE 8/9/10.
572 * 3. Remove excess padding in IE 7.
573 * Known issue: excess padding remains in IE 6.
576 input[type="checkbox"],
577 input[type="radio"] {
578 @include box-sizing(border-box); /* 1 */
580 @if $legacy-support-for-ie7 {
581 *height: 13px; /* 3 */
582 *width: 13px; /* 3 */
587 * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
588 * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
589 * (include `-moz` to future-proof).
592 input[type="search"] {
593 -webkit-appearance: textfield; /* 1 */
594 @include box-sizing(content-box); /* 2 */
598 * Remove inner padding and search cancel button in Safari 5 and Chrome
602 input[type="search"]::-webkit-search-cancel-button,
603 input[type="search"]::-webkit-search-decoration {
604 -webkit-appearance: none;
608 * Remove inner padding and border in Firefox 4+.
611 button::-moz-focus-inner,
612 input::-moz-focus-inner {
618 * 1. Remove default vertical scrollbar in IE 8/9.
619 * 2. Improve readability and alignment in all browsers.
623 overflow: auto; /* 1 */
624 vertical-align: top; /* 2 */
627 /* ==========================================================================
629 ========================================================================== */
632 * Remove most spacing between table cells.
636 border-collapse: collapse;