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
/* Ces éléments sont définis dans le fichier _init.scss
10
// If you have a base partial (or equivalent), you should move these lines to
11
// that file. NOTE: Edit the lines to remove "!default".
12
// @see http://compass-style.org/help/tutorials/best_practices/
13
// =============================================================================
15
// These 2 variables are copies of ones used in Compass' Vertical Rhythm module.
17
// The base font size.
18
$base-font-size: 16px !default;
20
// The base line height determines the basic unit of vertical rhythm.
21
$base-line-height: 24px !default;
23
// These 2 variables are copies of ones used in Compass' support module.
25
// Set this to true to add support for IE 6.
26
$legacy-support-for-ie6: false !default;
28
// Set this to true to add support for IE 7.
29
$legacy-support-for-ie7: false !default;
32
// Set this to true to force CSS output to exactly match normalize.css.
33
$strict-normalize: true !default;
35
// The default font family.
36
$base-font-family: sans-serif !default;
38
// The font sizes for h1-h6.
39
$h1-font-size: 2 * $base-font-size !default;
40
$h2-font-size: 1.5 * $base-font-size !default;
41
$h3-font-size: 1.17 * $base-font-size !default;
42
$h4-font-size: 1 * $base-font-size !default;
43
$h5-font-size: 0.83 * $base-font-size !default;
44
$h6-font-size: 0.67 * $base-font-size !default;
46
// The amount lists and blockquotes are indented.
47
$indent-amount: 40px !default;
49
// After the default variables are set, import the required Compass partials.
50
@import "compass/support";
51
@import "compass/css3/box-sizing";
52
@import "compass/typography/vertical_rhythm";
56
/* ==========================================================================
57
HTML5 display definitions
58
========================================================================== */
61
* Correct `block` display not defined in IE 8/9.
80
* Correct `inline-block` display not defined in IE 8/9.
86
display: inline-block;
87
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
94
* Prevent modern browsers from displaying `audio` without controls.
95
* Remove excess height in iOS 5 devices.
98
audio:not([controls]) {
104
* Address `[hidden]` styling not present in IE 8/9.
105
* Hide the `template` element in IE, Safari, and Firefox < 22.
113
/* ==========================================================================
115
========================================================================== */
118
* 1. Set default font family to sans-serif.
119
* 2. Prevent iOS text size adjust after orientation change, without disabling
121
* 3. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
126
font-family: $base-font-family; /* 1 */
127
@if not $strict-normalize or $legacy-support-for-ie6 or $legacy-support-for-ie7 {
128
font-size: 100% * ($base-font-size / 16px); /* 3 */
130
-ms-text-size-adjust: 100%; /* 2 */
131
-webkit-text-size-adjust: 100%; /* 2 */
133
@if not $strict-normalize {
134
/* Establish a vertical rhythm unit using $base-line-height. */
135
@include adjust-leading-to(1);
139
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
141
* Address `font-family` inconsistency between `textarea` and other form
149
font-family: $base-font-family;
154
* Remove default margin.
161
/* ==========================================================================
163
========================================================================== */
166
* Remove the gray background color from active links in IE 10.
170
background: transparent;
174
* Address `outline` inconsistency between Chrome and other browsers.
178
outline: thin dotted;
182
* Improve readability when focused and also mouse hovered in all browsers.
190
/* ==========================================================================
192
========================================================================== */
194
@if not $strict-normalize or $legacy-support-for-ie6 or $legacy-support-for-ie7 {
196
* Set 1 unit of vertical rhythm on the top and bottom margin.
205
/* Set 1 unit of vertical rhythm on the top and bottom margin. */
206
margin: rhythm(1) $indent-amount;
211
* Address variable `h1` font-size and margin within `section` and `article`
212
* contexts in Firefox 4+, Safari 5, and Chrome.
216
/* Set the font-size and line-height while keeping a proper vertical rhythm. */
217
@if not $strict-normalize or $legacy-support-for-ie6 or $legacy-support-for-ie7 {
218
@include adjust-font-size-to( $h1-font-size );
221
font-size: 1em * ($h1-font-size / $base-font-size);
224
/* Set 1 unit of vertical rhythm on the top and bottom margins. */
225
@include leader(1, $h1-font-size);
226
@include trailer(1, $h1-font-size);
229
@if not $strict-normalize or $legacy-support-for-ie6 or $legacy-support-for-ie7 {
231
@include adjust-font-size-to( $h2-font-size );
232
@include leader(1, $h2-font-size);
233
@include trailer(1, $h2-font-size);
237
@include adjust-font-size-to( $h3-font-size );
238
@include leader(1, $h3-font-size);
239
@include trailer(1, $h3-font-size);
243
@include adjust-font-size-to( $h4-font-size );
244
@include leader(1, $h4-font-size);
245
@include trailer(1, $h4-font-size);
249
@include adjust-font-size-to( $h5-font-size );
250
@include leader(1, $h5-font-size);
251
@include trailer(1, $h5-font-size);
255
@include adjust-font-size-to( $h6-font-size );
256
@include leader(1, $h6-font-size);
257
@include trailer(1, $h6-font-size);
262
* Address styling not present in IE 8/9, Safari 5, and Chrome.
266
border-bottom: 1px dotted;
270
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
279
* Address styling not present in Safari 5 and Chrome.
287
* Address differences between Firefox and other browsers.
291
@include box-sizing(content-box);
296
* Address styling not present in IE 8/9.
305
* Correct font family set oddly in Safari 5 and Chrome.
312
font-family: monospace, serif;
313
@if $legacy-support-for-ie6 {
314
_font-family: 'courier new', monospace;
320
* Improve readability of pre-formatted text in all browsers.
324
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
326
white-space: pre-wrap;
327
word-wrap: break-word;
330
white-space: pre-wrap;
335
* Set consistent quote types.
339
quotes: "\201C" "\201D" "\2018" "\2019";
343
* Address inconsistent and variable font size in all browsers.
351
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
359
vertical-align: baseline;
370
/* ==========================================================================
372
========================================================================== */
374
@if not $strict-normalize or $legacy-support-for-ie6 or $legacy-support-for-ie7 {
376
* Address margins set differently in IE 6/7.
386
@if not $strict-normalize {
397
margin: 0 0 0 $indent-amount;
401
* Address paddings set differently in IE 6/7.
407
padding: 0 0 0 $indent-amount;
411
@if $legacy-support-for-ie7 {
413
* Correct list images handled incorrectly in IE 7.
419
list-style-image: none;
423
/* ==========================================================================
425
========================================================================== */
428
* Remove border when inside `a` element in IE 8/9.
433
@if $legacy-support-for-ie7 {
434
/* Improve image quality when scaled in IE 7. */
435
-ms-interpolation-mode: bicubic;
440
* Correct overflow displayed oddly in IE 9.
447
/* ==========================================================================
449
========================================================================== */
452
* Address margin not present in IE 8/9 and Safari 5.
459
/* ==========================================================================
461
========================================================================== */
463
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
465
* Correct margin displayed oddly in IE 6/7.
474
* Define consistent border, margin, and padding.
479
/* Apply borders and padding that keep the vertical rhythm. */
480
border-color: #c0c0c0;
481
@include apply-side-rhythm-border(top, $width: 1px, $lines: 0.35);
482
@include apply-side-rhythm-border(bottom, $width: 1px, $lines: 0.65);
483
@include apply-side-rhythm-border(left, $width: 1px, $lines: 0.625);
484
@include apply-side-rhythm-border(right, $width: 1px, $lines: 0.625);
488
* 1. Correct `color` not being inherited in IE 8/9.
489
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
490
* 3. Correct alignment displayed oddly in IE 6/7.
496
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
497
*margin-left: -7px; /* 3 */
502
* 1. Correct font family not being inherited in all browsers.
503
* 2. Correct font size not being inherited in all browsers.
504
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
505
* 4. Improve appearance and consistency with IE 6/7.
512
font-family: inherit; /* 1 */
513
font-size: 100%; /* 2 */
515
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
516
vertical-align: baseline; /* 4 */
517
*vertical-align: middle; /* 4 */
522
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
532
* Address inconsistent `text-transform` inheritance for `button` and `select`.
533
* All other form control elements do not inherit `text-transform` values.
534
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
535
* Correct `select` style inheritance in Firefox 4+ and Opera.
540
text-transform: none;
544
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
545
* and `video` controls.
546
* 2. Correct inability to style clickable `input` types in iOS.
547
* 3. Improve usability and consistency of cursor style between image-type
548
* `input` and others.
549
* 4. Remove inner spacing in IE 7 without affecting normal text inputs.
550
* Known issue: inner spacing remains in IE 6.
554
html input[type="button"], /* 1 */
556
input[type="submit"] {
557
-webkit-appearance: button; /* 2 */
558
cursor: pointer; /* 3 */
559
@if $legacy-support-for-ie7 {
560
*overflow: visible; /* 4 */
565
* Re-set default cursor for disabled elements.
569
html input[disabled] {
574
* 1. Address box sizing set to `content-box` in IE 8/9/10.
575
* 2. Remove excess padding in IE 8/9/10.
576
* 3. Remove excess padding in IE 7.
577
* Known issue: excess padding remains in IE 6.
580
input[type="checkbox"],
581
input[type="radio"] {
582
@include box-sizing(border-box); /* 1 */
584
@if $legacy-support-for-ie7 {
585
*height: 13px; /* 3 */
586
*width: 13px; /* 3 */
591
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
592
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
593
* (include `-moz` to future-proof).
596
input[type="search"] {
597
-webkit-appearance: textfield; /* 1 */
598
@include box-sizing(content-box); /* 2 */
602
* Remove inner padding and search cancel button in Safari 5 and Chrome
606
input[type="search"]::-webkit-search-cancel-button,
607
input[type="search"]::-webkit-search-decoration {
608
-webkit-appearance: none;
612
* Remove inner padding and border in Firefox 4+.
615
button::-moz-focus-inner,
616
input::-moz-focus-inner {
622
* 1. Remove default vertical scrollbar in IE 8/9.
623
* 2. Improve readability and alignment in all browsers.
627
overflow: auto; /* 1 */
628
vertical-align: top; /* 2 */
631
/* ==========================================================================
633
========================================================================== */
636
* Remove most spacing between table cells.
640
border-collapse: collapse;