Project

General

Profile

Download (12.9 KB) Statistics
| Branch: | Tag: | Revision:
1 0484f1af Andreas Kohlbecker
/**
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-with-compass
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
.item-list ul /* Drupal override FIXME, is this still required */ {
306
  /* Address margins set differently in IE 6/7. */
307
  // margin: rhythm(1) 0; don't know how to use rhythm so using $base-font-size ... */
308
  margin: $base-font-size 0;
309
}
310
ol,
311
ul {
312
  ol,
313
  ul {
314
    /* Turn off margins on nested lists. */
315
    margin: 0;
316
  }
317
}
318
dd {
319
  margin: 0 0 0 $indent-amount; /* LTR */
320
}
321
322
/* Address paddings set differently in IE 6/7. */
323
menu,
324
ol,
325
ul {
326
  padding: 0 0 0 $indent-amount; /* LTR */
327
}
328
329
@if $legacy-support-for-ie7 {
330
  /* Correct list images handled incorrectly in IE 7. */
331
  nav ul,
332
  nav ol {
333
    list-style: none;
334
    list-style-image: none;
335
  }
336
}
337
338
/**
339
 * Embedded content and figures
340
 *
341
 * @todo Look into adding responsive embedded video.
342
 */
343
img {
344
  /* Remove border when inside `a` element in IE 8/9. */
345
  border: 0;
346
  @if $legacy-support-for-ie7 {
347
    /* Improve image quality when scaled in IE 7. */
348
    -ms-interpolation-mode: bicubic;
349
  }
350
351
  /* Suppress the space beneath the baseline */
352
  /* vertical-align: bottom; */
353
354
  /* Responsive images */
355
  max-width: 100%;
356 5e6b5238 Andreas Kohlbecker
  height: auto;
357 0484f1af Andreas Kohlbecker
  @if $legacy-support-for-ie8 {
358 3101acc8 Andreas Kohlbecker
    .lt-ie9  {
359
      /* Correct IE 8 not scaling image height when resized. */
360
      width: auto;
361
    }
362 0484f1af Andreas Kohlbecker
  }
363
}
364
365
/* Correct overflow displayed oddly in IE 9. */
366
svg:not(:root) {
367
  overflow: hidden;
368
}
369
370
/* Address margin not present in IE 8/9 and Safari 5. */
371
figure {
372
  margin: 0;
373
}
374
375
/**
376
 * Forms
377
 */
378
379
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
380
  /* Correct margin displayed oddly in IE 6/7. */
381
  form {
382
    margin: 0;
383
  }
384
}
385
386
/* Define consistent border, margin, and padding. */
387
fieldset {
388
  margin: 0 2px;
389
  /* Apply borders and padding that keep the vertical rhythm. */
390
  border-color: #c0c0c0;
391
  @include apply-side-rhythm-border(top,    $width: 1px, $lines: 0.35);
392
  @include apply-side-rhythm-border(bottom, $width: 1px, $lines: 0.65);
393
  @include apply-side-rhythm-border(left,   $width: 1px, $lines: 0.65);
394
  @include apply-side-rhythm-border(right,  $width: 1px, $lines: 0.65);
395
}
396
397
/**
398
 * 1. Correct `color` not being inherited in IE 8/9.
399
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
400
 * 3. Correct alignment displayed oddly in IE 6/7.
401
 */
402
legend {
403
  border: 0; /* 1 */
404
  padding: 0; /* 2 */
405
  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
406
    *margin-left: -7px; /* 3 */ /* LTR */
407
  }
408
}
409
410
/**
411
 * 1. Correct font family not being inherited in all browsers.
412
 * 2. Correct font size not being inherited in all browsers.
413
 * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
414
 * 4. Improve appearance and consistency with IE 6/7.
415
 * 5. Keep form elements constrained in their containers.
416
 */
417
button,
418
input,
419
select,
420
textarea {
421
  font-family: inherit; /* 1 */
422
  font-size: 100%; /* 2 */
423
  margin: 0; /* 3 */
424
  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
425
    vertical-align: baseline; /* 4 */
426
    *vertical-align: middle; /* 4 */
427
  }
428
  max-width: 100%; /* 5 */
429
  @include box-sizing(border-box); /* 5 */
430
}
431
432
/**
433
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
434
 * the UA stylesheet.
435
 */
436
button,
437
input {
438
  line-height: normal;
439
}
440
441
/**
442
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
443
 * All other form control elements do not inherit `text-transform` values.
444
 * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
445
 * Correct `select` style inheritance in Firefox 4+ and Opera.
446
 */
447
button,
448
select {
449
  text-transform: none;
450
}
451
452
/**
453
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
454
 *    and `video` controls.
455
 * 2. Correct inability to style clickable `input` types in iOS.
456
 * 3. Improve usability and consistency of cursor style between image-type
457
 *    `input` and others.
458
 * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
459
 *    Known issue: inner spacing remains in IE 6.
460
 */
461
button,
462
html input[type="button"], /* 1 */
463
input[type="reset"],
464
input[type="submit"] {
465
  -webkit-appearance: button; /* 2 */
466
  cursor: pointer; /* 3 */
467
  @if $legacy-support-for-ie7 {
468
    *overflow: visible; /* 4 */
469
  }
470
}
471
472
/**
473
 * Re-set default cursor for disabled elements.
474
 */
475
button[disabled],
476
html input[disabled] {
477
  cursor: default;
478
}
479
480
/**
481
 * 1. Address box sizing set to `content-box` in IE 8/9.
482
 * 2. Remove excess padding in IE 8/9.
483
 * 3. Remove excess padding in IE 7.
484
 *    Known issue: excess padding remains in IE 6.
485
 */
486
input[type="checkbox"],
487
input[type="radio"] {
488
  @include box-sizing(border-box); /* 1 */
489
  padding: 0; /* 2 */
490
  @if $legacy-support-for-ie7 {
491
    *height: 13px; /* 3 */
492
    *width: 13px; /* 3 */
493
  }
494
}
495
496
/**
497
 * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
498
 * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
499
 *    (include `-moz` to future-proof).
500
 */
501
input[type="search"] {
502
  -webkit-appearance: textfield; /* 1 */
503
  @include box-sizing(content-box); /* 2 */
504
}
505
506
/**
507
 * Remove inner padding and search cancel button in Safari 5 and Chrome
508
 * on OS X.
509
 */
510
input[type="search"]::-webkit-search-cancel-button,
511
input[type="search"]::-webkit-search-decoration {
512
  -webkit-appearance: none;
513
}
514
515
/* Remove inner padding and border in Firefox 4+. */
516
button::-moz-focus-inner,
517
input::-moz-focus-inner {
518
  border: 0;
519
  padding: 0;
520
}
521
522
/**
523
 * 1. Remove default vertical scrollbar in IE 8/9.
524
 * 2. Improve readability and alignment in all browsers.
525
 */
526
textarea {
527
  overflow: auto; /* 1 */
528
  vertical-align: top; /* 2 */
529
}
530
531
/* Drupal-style form labels. */
532
label {
533
  display: block;
534
  font-weight: bold;
535
}
536
537
/**
538
 * Tables
539
 */
540
table {
541
  /* Remove most spacing between table cells. */
542
  border-collapse: collapse;
543
  border-spacing: 0;
544
  /* Prevent cramped-looking tables */
545
  /* width: 100%; */
546
  /* Add vertical rhythm margins. */
547
  @include leader(1);
548
  @include trailer(1);
549
}
550
551
td  {
552
  vertical-align: top;
553
  text-align: left;
554
}