1
|
/**
|
2
|
* @file
|
3
|
* Normalize.css is intended to be used as an alternative to CSS resets.
|
4
|
*
|
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-scss
|
8
|
*
|
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/
|
13
|
*
|
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/
|
16
|
*/
|
17
|
|
18
|
/**
|
19
|
* HTML5 display definitions
|
20
|
*/
|
21
|
|
22
|
/* Correct `block` display not defined in IE 8/9. */
|
23
|
article,
|
24
|
aside,
|
25
|
details,
|
26
|
figcaption,
|
27
|
figure,
|
28
|
footer,
|
29
|
header,
|
30
|
main,
|
31
|
nav,
|
32
|
section,
|
33
|
summary {
|
34
|
display: block;
|
35
|
}
|
36
|
|
37
|
/* Correct `inline-block` display not defined in IE 8/9. */
|
38
|
audio,
|
39
|
canvas,
|
40
|
video {
|
41
|
display: inline-block;
|
42
|
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
43
|
*display: inline;
|
44
|
*zoom: 1;
|
45
|
}
|
46
|
}
|
47
|
|
48
|
/**
|
49
|
* Prevent modern browsers from displaying `audio` without controls.
|
50
|
* Remove excess height in iOS 5 devices.
|
51
|
*/
|
52
|
audio:not([controls]) {
|
53
|
display: none;
|
54
|
height: 0;
|
55
|
}
|
56
|
|
57
|
/* Address styling not present in IE 8/9. */
|
58
|
[hidden] {
|
59
|
display: none;
|
60
|
}
|
61
|
|
62
|
/**
|
63
|
* Base
|
64
|
*
|
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.
|
69
|
*
|
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
|
74
|
*
|
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
|
79
|
*
|
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;
|
82
|
*
|
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 _init.scss partial.
|
85
|
*/
|
86
|
/*
|
87
|
@font-face {
|
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');
|
94
|
font-weight: normal;
|
95
|
font-style: normal;
|
96
|
}
|
97
|
*/
|
98
|
|
99
|
/**
|
100
|
* 1. Set default font family to sans-serif.
|
101
|
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
102
|
* user zoom.
|
103
|
* 3. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
|
104
|
* `em` units.
|
105
|
*/
|
106
|
html {
|
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);
|
113
|
}
|
114
|
|
115
|
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
116
|
/* Address `font-family` inconsistency between `textarea` and other form elements. */
|
117
|
button,
|
118
|
input,
|
119
|
select,
|
120
|
textarea {
|
121
|
font-family: $base-font-family;
|
122
|
}
|
123
|
}
|
124
|
|
125
|
/* Remove default margin. */
|
126
|
body {
|
127
|
margin: 0;
|
128
|
padding: 0;
|
129
|
}
|
130
|
|
131
|
/**
|
132
|
* Links
|
133
|
*
|
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
|
136
|
*/
|
137
|
a:link {
|
138
|
}
|
139
|
a:visited {
|
140
|
}
|
141
|
a:hover,
|
142
|
a:focus {
|
143
|
}
|
144
|
a:active {
|
145
|
}
|
146
|
|
147
|
/* Address `outline` inconsistency between Chrome and other browsers. */
|
148
|
a:focus {
|
149
|
outline: thin dotted;
|
150
|
}
|
151
|
|
152
|
/* Improve readability when focused and also mouse hovered in all browsers. */
|
153
|
a:active,
|
154
|
a:hover {
|
155
|
outline: 0;
|
156
|
}
|
157
|
|
158
|
/**
|
159
|
* Typography
|
160
|
*
|
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
|
166
|
*/
|
167
|
|
168
|
/* Set 1 unit of vertical rhythm on the top and bottom margin. */
|
169
|
p,
|
170
|
pre {
|
171
|
margin: rhythm(1) 0;
|
172
|
}
|
173
|
blockquote {
|
174
|
/* Also indent the quote on both sides. */
|
175
|
margin: rhythm(1) $indent-amount;
|
176
|
}
|
177
|
|
178
|
/**
|
179
|
* Address variable `h1` font-size and margin within `section` and `article`
|
180
|
* contexts in Firefox 4+, Safari 5, and Chrome.
|
181
|
*/
|
182
|
h1 {
|
183
|
/* Set the font-size and line-height while keeping a proper vertical rhythm. */
|
184
|
@include adjust-font-size-to( $h1-font-size );
|
185
|
|
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);
|
189
|
}
|
190
|
h2 {
|
191
|
@include adjust-font-size-to( $h2-font-size );
|
192
|
@include leader(1, $h2-font-size);
|
193
|
@include trailer(1, $h2-font-size);
|
194
|
}
|
195
|
h3 {
|
196
|
@include adjust-font-size-to( $h3-font-size );
|
197
|
@include leader(1, $h3-font-size);
|
198
|
@include trailer(1, $h3-font-size);
|
199
|
}
|
200
|
h4 {
|
201
|
@include adjust-font-size-to( $h4-font-size );
|
202
|
@include leader(1, $h4-font-size);
|
203
|
@include trailer(1, $h4-font-size);
|
204
|
}
|
205
|
h5 {
|
206
|
@include adjust-font-size-to( $h5-font-size );
|
207
|
@include leader(1, $h5-font-size);
|
208
|
@include trailer(1, $h5-font-size);
|
209
|
}
|
210
|
h6 {
|
211
|
@include adjust-font-size-to( $h6-font-size );
|
212
|
@include leader(1, $h6-font-size);
|
213
|
@include trailer(1, $h6-font-size);
|
214
|
}
|
215
|
|
216
|
/* Address styling not present in IE 8/9, Safari 5, and Chrome. */
|
217
|
abbr[title] {
|
218
|
border-bottom: 1px dotted;
|
219
|
}
|
220
|
|
221
|
/* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. */
|
222
|
b,
|
223
|
strong {
|
224
|
font-weight: bold;
|
225
|
}
|
226
|
|
227
|
/* Address styling not present in Safari 5 and Chrome. */
|
228
|
dfn {
|
229
|
font-style: italic;
|
230
|
}
|
231
|
|
232
|
/* Address differences between Firefox and other browsers. */
|
233
|
hr {
|
234
|
@include box-sizing(content-box);
|
235
|
height: 0;
|
236
|
border: 1px solid #666;
|
237
|
padding-bottom: -1px;
|
238
|
margin: rhythm(1) 0;
|
239
|
}
|
240
|
|
241
|
/* Address styling not present in IE 8/9. */
|
242
|
mark {
|
243
|
background: #ff0;
|
244
|
color: #000;
|
245
|
}
|
246
|
|
247
|
/* Correct font family set oddly in Safari 5 and Chrome. */
|
248
|
code,
|
249
|
kbd,
|
250
|
pre,
|
251
|
samp,
|
252
|
tt,
|
253
|
var {
|
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;
|
257
|
}
|
258
|
@include adjust-font-size-to( $base-font-size );
|
259
|
}
|
260
|
|
261
|
/* Improve readability of pre-formatted text in all browsers. */
|
262
|
pre {
|
263
|
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
264
|
white-space: pre;
|
265
|
white-space: pre-wrap;
|
266
|
word-wrap: break-word;
|
267
|
}
|
268
|
@else {
|
269
|
white-space: pre-wrap;
|
270
|
}
|
271
|
}
|
272
|
|
273
|
/* Set consistent quote types. */
|
274
|
q {
|
275
|
quotes: "\201C" "\201D" "\2018" "\2019";
|
276
|
}
|
277
|
|
278
|
/* Address inconsistent and variable font size in all browsers. */
|
279
|
small {
|
280
|
font-size: 80%;
|
281
|
}
|
282
|
|
283
|
/* Prevent `sub` and `sup` affecting `line-height` in all browsers. */
|
284
|
sub,
|
285
|
sup {
|
286
|
font-size: 75%;
|
287
|
line-height: 0;
|
288
|
position: relative;
|
289
|
vertical-align: baseline;
|
290
|
}
|
291
|
sup {
|
292
|
top: -0.5em;
|
293
|
}
|
294
|
sub {
|
295
|
bottom: -0.25em;
|
296
|
}
|
297
|
|
298
|
/**
|
299
|
* Lists
|
300
|
*/
|
301
|
dl,
|
302
|
menu,
|
303
|
ol,
|
304
|
ul {
|
305
|
/* Address margins set differently in IE 6/7. */
|
306
|
margin: rhythm(1) 0;
|
307
|
}
|
308
|
ol,
|
309
|
ul {
|
310
|
ol,
|
311
|
ul {
|
312
|
/* Turn off margins on nested lists. */
|
313
|
margin: 0;
|
314
|
}
|
315
|
}
|
316
|
dd {
|
317
|
margin: 0 0 0 $indent-amount; /* LTR */
|
318
|
}
|
319
|
|
320
|
/* Address paddings set differently in IE 6/7. */
|
321
|
menu,
|
322
|
ol,
|
323
|
ul {
|
324
|
padding: 0 0 0 $indent-amount; /* LTR */
|
325
|
}
|
326
|
|
327
|
@if $legacy-support-for-ie7 {
|
328
|
/* Correct list images handled incorrectly in IE 7. */
|
329
|
nav ul,
|
330
|
nav ol {
|
331
|
list-style: none;
|
332
|
list-style-image: none;
|
333
|
}
|
334
|
}
|
335
|
|
336
|
/**
|
337
|
* Embedded content and figures
|
338
|
*
|
339
|
* @todo Look into adding responsive embedded video.
|
340
|
*/
|
341
|
img {
|
342
|
/* Remove border when inside `a` element in IE 8/9. */
|
343
|
border: 0;
|
344
|
@if $legacy-support-for-ie7 {
|
345
|
/* Improve image quality when scaled in IE 7. */
|
346
|
-ms-interpolation-mode: bicubic;
|
347
|
}
|
348
|
|
349
|
/* Suppress the space beneath the baseline */
|
350
|
/* vertical-align: bottom; */
|
351
|
|
352
|
/* Responsive images */
|
353
|
max-width: 100%;
|
354
|
height: auto;
|
355
|
@if $legacy-support-for-ie8 {
|
356
|
.lt-ie9 & {
|
357
|
/* Correct IE 8 not scaling image height when resized. */
|
358
|
width: auto;
|
359
|
}
|
360
|
}
|
361
|
}
|
362
|
|
363
|
/* Correct overflow displayed oddly in IE 9. */
|
364
|
svg:not(:root) {
|
365
|
overflow: hidden;
|
366
|
}
|
367
|
|
368
|
/* Address margin not present in IE 8/9 and Safari 5. */
|
369
|
figure {
|
370
|
margin: 0;
|
371
|
}
|
372
|
|
373
|
/**
|
374
|
* Forms
|
375
|
*/
|
376
|
|
377
|
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
378
|
/* Correct margin displayed oddly in IE 6/7. */
|
379
|
form {
|
380
|
margin: 0;
|
381
|
}
|
382
|
}
|
383
|
|
384
|
/* Define consistent border, margin, and padding. */
|
385
|
fieldset {
|
386
|
margin: 0 2px;
|
387
|
/* Apply borders and padding that keep the vertical rhythm. */
|
388
|
border-color: #c0c0c0;
|
389
|
@include apply-side-rhythm-border(top, $width: 1px, $lines: 0.35);
|
390
|
@include apply-side-rhythm-border(bottom, $width: 1px, $lines: 0.65);
|
391
|
@include apply-side-rhythm-border(left, $width: 1px, $lines: 0.65);
|
392
|
@include apply-side-rhythm-border(right, $width: 1px, $lines: 0.65);
|
393
|
}
|
394
|
|
395
|
/**
|
396
|
* 1. Correct `color` not being inherited in IE 8/9.
|
397
|
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
398
|
* 3. Correct alignment displayed oddly in IE 6/7.
|
399
|
*/
|
400
|
legend {
|
401
|
border: 0; /* 1 */
|
402
|
padding: 0; /* 2 */
|
403
|
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
404
|
*margin-left: -7px; /* 3 */ /* LTR */
|
405
|
}
|
406
|
}
|
407
|
|
408
|
/**
|
409
|
* 1. Correct font family not being inherited in all browsers.
|
410
|
* 2. Correct font size not being inherited in all browsers.
|
411
|
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
412
|
* 4. Improve appearance and consistency with IE 6/7.
|
413
|
* 5. Keep form elements constrained in their containers.
|
414
|
*/
|
415
|
button,
|
416
|
input,
|
417
|
select,
|
418
|
textarea {
|
419
|
font-family: inherit; /* 1 */
|
420
|
font-size: 100%; /* 2 */
|
421
|
margin: 0; /* 3 */
|
422
|
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
423
|
vertical-align: baseline; /* 4 */
|
424
|
*vertical-align: middle; /* 4 */
|
425
|
}
|
426
|
max-width: 100%; /* 5 */
|
427
|
@include box-sizing(border-box); /* 5 */
|
428
|
}
|
429
|
|
430
|
/**
|
431
|
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
432
|
* the UA stylesheet.
|
433
|
*/
|
434
|
button,
|
435
|
input {
|
436
|
line-height: normal;
|
437
|
}
|
438
|
|
439
|
/**
|
440
|
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
441
|
* All other form control elements do not inherit `text-transform` values.
|
442
|
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
|
443
|
* Correct `select` style inheritance in Firefox 4+ and Opera.
|
444
|
*/
|
445
|
button,
|
446
|
select {
|
447
|
text-transform: none;
|
448
|
}
|
449
|
|
450
|
/**
|
451
|
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
452
|
* and `video` controls.
|
453
|
* 2. Correct inability to style clickable `input` types in iOS.
|
454
|
* 3. Improve usability and consistency of cursor style between image-type
|
455
|
* `input` and others.
|
456
|
* 4. Remove inner spacing in IE 7 without affecting normal text inputs.
|
457
|
* Known issue: inner spacing remains in IE 6.
|
458
|
*/
|
459
|
button,
|
460
|
html input[type="button"], /* 1 */
|
461
|
input[type="reset"],
|
462
|
input[type="submit"] {
|
463
|
-webkit-appearance: button; /* 2 */
|
464
|
cursor: pointer; /* 3 */
|
465
|
@if $legacy-support-for-ie7 {
|
466
|
*overflow: visible; /* 4 */
|
467
|
}
|
468
|
}
|
469
|
|
470
|
/**
|
471
|
* Re-set default cursor for disabled elements.
|
472
|
*/
|
473
|
button[disabled],
|
474
|
html input[disabled] {
|
475
|
cursor: default;
|
476
|
}
|
477
|
|
478
|
/**
|
479
|
* 1. Address box sizing set to `content-box` in IE 8/9.
|
480
|
* 2. Remove excess padding in IE 8/9.
|
481
|
* 3. Remove excess padding in IE 7.
|
482
|
* Known issue: excess padding remains in IE 6.
|
483
|
*/
|
484
|
input[type="checkbox"],
|
485
|
input[type="radio"] {
|
486
|
@include box-sizing(border-box); /* 1 */
|
487
|
padding: 0; /* 2 */
|
488
|
@if $legacy-support-for-ie7 {
|
489
|
*height: 13px; /* 3 */
|
490
|
*width: 13px; /* 3 */
|
491
|
}
|
492
|
}
|
493
|
|
494
|
/**
|
495
|
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
496
|
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
497
|
* (include `-moz` to future-proof).
|
498
|
*/
|
499
|
input[type="search"] {
|
500
|
-webkit-appearance: textfield; /* 1 */
|
501
|
@include box-sizing(content-box); /* 2 */
|
502
|
}
|
503
|
|
504
|
/**
|
505
|
* Remove inner padding and search cancel button in Safari 5 and Chrome
|
506
|
* on OS X.
|
507
|
*/
|
508
|
input[type="search"]::-webkit-search-cancel-button,
|
509
|
input[type="search"]::-webkit-search-decoration {
|
510
|
-webkit-appearance: none;
|
511
|
}
|
512
|
|
513
|
/* Remove inner padding and border in Firefox 4+. */
|
514
|
button::-moz-focus-inner,
|
515
|
input::-moz-focus-inner {
|
516
|
border: 0;
|
517
|
padding: 0;
|
518
|
}
|
519
|
|
520
|
/**
|
521
|
* 1. Remove default vertical scrollbar in IE 8/9.
|
522
|
* 2. Improve readability and alignment in all browsers.
|
523
|
*/
|
524
|
textarea {
|
525
|
overflow: auto; /* 1 */
|
526
|
vertical-align: top; /* 2 */
|
527
|
}
|
528
|
|
529
|
/* Drupal-style form labels. */
|
530
|
label {
|
531
|
display: block;
|
532
|
font-weight: bold;
|
533
|
}
|
534
|
|
535
|
/**
|
536
|
* Tables
|
537
|
*/
|
538
|
table {
|
539
|
/* Remove most spacing between table cells. */
|
540
|
border-collapse: collapse;
|
541
|
border-spacing: 0;
|
542
|
/* Prevent cramped-looking tables */
|
543
|
/* width: 100%; */
|
544
|
/* Add vertical rhythm margins. */
|
545
|
@include leader(1);
|
546
|
@include trailer(1);
|
547
|
}
|