Project

General

Profile

Download (16.1 KB) Statistics
| Branch: | Tag: | Revision:
1
/* normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
2

    
3
/* =============================================================================
4
   Normalize.css is intended to be used as an alternative to CSS resets.
5

    
6
   It is suggested that you read through the normalize.css file and customise it
7
   to meet the design requirements of a project rather including it as a "black
8
   box". @see http://nicolasgallagher.com/about-normalize-css/
9

    
10
   Also: @see http://meiert.com/en/blog/20080419/reset-style-sheets-are-bad/
11
         @see http://snook.ca/archives/html_and_css/no_css_reset/
12
   ========================================================================== */
13

    
14

    
15
/* =============================================================================
16
   HTML5 display definitions
17
   ========================================================================== */
18

    
19
/*
20
 * Corrects block display not defined in IE6/7/8/9 & FF3
21
 */
22

    
23
article,
24
aside,
25
details,
26
figcaption,
27
figure,
28
footer,
29
header,
30
hgroup,
31
menu,
32
nav,
33
section,
34
summary {
35
  display: block;
36
}
37

    
38
/*
39
 * Corrects inline-block display not defined in IE6/7/8/9 & FF3
40
 */
41

    
42
audio,
43
canvas,
44
video {
45
  display: inline-block;
46
  *display: inline;
47
  *zoom: 1;
48
}
49

    
50
/*
51
 * Prevents modern browsers from displaying 'audio' without controls
52
 * Remove excess height in iOS5 devices
53
 */
54

    
55
audio:not([controls]) {
56
  display: none;
57
  height: 0;
58
}
59

    
60
/*
61
 * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
62
 * Known issue: no IE6 support
63
 */
64

    
65
[hidden] {
66
  display: none;
67
}
68

    
69

    
70
/* =============================================================================
71
   Base
72
   ========================================================================== */
73

    
74
/* Instead of relying on the fonts that are available on a user's computer, you
75
   can use web fonts which, like images, are resources downloaded to the user's
76
   browser. Because of the bandwidth and rendering resources required, web fonts
77
   should be used with care.
78

    
79
   Numerous resources for web fonts can be found on Google. Here are a few
80
   websites where you can find Open Source fonts to download:
81
   - http://www.fontsquirrel.com/fontface
82
   - http://www.theleagueofmoveabletype.com
83

    
84
   In order to use these fonts, you will need to convert them into formats
85
   suitable for web fonts. We recommend the free-to-use Font Squirrel's
86
   Font-Face Generator:
87
     http://www.fontsquirrel.com/fontface/generator
88

    
89
   The following is an example @font-face declaration. This font can then be
90
   used in any ruleset using a property like this:  font-family: Example, serif;
91

    
92
   Since we're using Sass, you'll need to declare your font faces here, then you
93
   can add them to the font variables in the _base.scss partial.
94
*/
95

    
96
/*
97
@font-face {
98
  font-family: 'Example';
99
  src: url('../fonts/example.eot');
100
  src: url('../fonts/example.eot?iefix') format('eot'),
101
    url('../fonts/example.woff') format('woff'),
102
    url('../fonts/example.ttf') format('truetype'),
103
    url('../fonts/example.svg#webfontOkOndcij') format('svg');
104
  font-weight: normal;
105
  font-style: normal;
106
}
107
*/
108

    
109
/*
110
 * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
111
 *    http://clagnut.com/blog/348/#c790
112
 * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
113
 *    www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
114
 */
115

    
116
html {
117
  /*
118
   * To use a 14px font size on the page, delete the 16px and 12px declarations.
119
   * To use a 12px font size on the page, delete the 16px and 14px declarations.
120
   */
121

    
122
  /* Use a 12px base font size */
123
  font-size: 75%; /* 16px x 75% = 12px */
124
  /* Use a 14px base font size */
125
  font-size: 87.5%; /* 16px x .875 = 14px */
126

    
127
  /* Use a 16px base font size */
128
  font-size: 100%; /* 1 */
129

    
130
  -webkit-text-size-adjust: 100%; /* 2 */
131
  -ms-text-size-adjust: 100%; /* 2 */
132

    
133
  /* Establish a vertical rhythm. */
134
  line-height: 1.5em;
135
}
136

    
137
/*
138
 * Instead of relying on the fonts that are available on a user's computer, you
139
 * can use web fonts which, like images, are resources downloaded to the user's
140
 * browser. Because of the bandwidth and rendering resources required, web fonts
141
 * should be used with care.
142
 *
143
 * Numerous resources for web fonts can be found on Google. Here are a few
144
 * websites where you can find Open Source fonts to download:
145
 * - http://www.fontsquirrel.com/fontface
146
 * - http://www.theleagueofmoveabletype.com
147
 *
148
 * In order to use these fonts, you will need to convert them into formats
149
 * suitable for web fonts. We recommend the free-to-use Font Squirrel's
150
 * Font-Face Generator:
151
 *   http://www.fontsquirrel.com/fontface/generator
152
 *
153
 * The following is an example @font-face declaration. This font can then be
154
 * used in any ruleset using a property like this:  font-family: Example, serif;
155

    
156
@font-face {
157
  font-family: 'Example';
158
  src: url('../fonts/example.eot');
159
  src: url('../fonts/example.eot?iefix') format('eot'),
160
    url('../fonts/example.woff') format('woff'),
161
    url('../fonts/example.ttf') format('truetype'),
162
    url('../fonts/example.svg#webfontOkOndcij') format('svg');
163
  font-weight: normal;
164
  font-style: normal;
165
}
166

    
167
 */
168

    
169
/*
170
 * Addresses font-family inconsistency between 'textarea' and other form elements.
171
 */
172

    
173
html,
174
button,
175
input,
176
select,
177
textarea {
178
  /* The following font family declarations are based on the Microsoft core web
179
   * fonts which are common fonts available on most computer systems. The DejaVu
180
   * and Nimbus Sans fonts are commonly available on Linux systems where the MS
181
   * fonts are less common. Tahoma and Helvetica are also widely available.
182
   *
183
   * A user's web browser will look at the comma-separated list and will
184
   * attempt to use each font in turn until it finds one that is available
185
   * on the user's computer. The final "generic" font (sans-serif, serif or
186
   * monospace) hints at what type of font to use if the web browser doesn't
187
   * find any of the fonts in the list.
188

    
189
  font-family: "Times New Roman", Times, Georgia, "DejaVu Serif", serif;
190
  font-family: Times, "Times New Roman", Georgia, "DejaVu Serif", serif;
191
  font-family: Georgia, "Times New Roman", "DejaVu Serif", serif;
192

    
193
  font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
194
  font-family: Tahoma, Verdana, "DejaVu Sans", sans-serif;
195
  font-family: Helvetica, Arial, "Nimbus Sans L", sans-serif;
196
  font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
197

    
198
  font-family: "Courier New", "DejaVu Sans Mono", monospace;
199

    
200
   */
201

    
202
  font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
203
}
204

    
205
/*
206
 * Addresses margins handled incorrectly in IE6/7
207
 */
208

    
209
body {
210
  margin: 0;
211
}
212

    
213

    
214
/* =============================================================================
215
   Links
216
   ========================================================================== */
217

    
218
/*
219
 * The order of link states are based on Eric Meyer's article:
220
 * http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states
221
 */
222

    
223
a:link {
224
}
225

    
226
a:visited {
227
}
228

    
229
a:hover,
230
a:focus {
231
}
232

    
233
a:active {
234
}
235

    
236
/*
237
 * Addresses outline displayed oddly in Chrome
238
 */
239

    
240
a:focus {
241
  outline: thin dotted;
242
}
243

    
244
/*
245
 * Improves readability when focused and also mouse hovered in all browsers
246
 * people.opera.com/patrickl/experiments/keyboard/test
247
 */
248

    
249
a:hover,
250
a:active {
251
  outline: 0;
252
}
253

    
254

    
255
/* =============================================================================
256
   Typography
257

    
258
   To achieve a pleasant vertical rhythm, we use Compass' Vertical Rhythm mixins
259
   so that the line height of our base font becomes the basic unit of vertical
260
   measurement. We use multiples of that unit to set the top and bottom margins
261
   for our block level elements and to set the line heights of any fonts.
262
   For more information, see http://24ways.org/2006/compose-to-a-vertical-rhythm
263
   ========================================================================== */
264

    
265
/*
266
 * Addresses font sizes and margins set differently in IE6/7
267
 * Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
268
 */
269

    
270
h1 {
271
  font-size: 2em;
272
  /* Sets the line height to 2 units of vertical rhythm */
273
  line-height: 1.5em; /* 3rem / 2em = 1.5em */
274
  /* Sets 1 unit of vertical rhythm on the top and bottom margins. */
275
  margin-top: 0.75em; /* 1.5rem / 2em = .75em */
276
  margin-bottom: 0.75em;
277
}
278

    
279
h2 {
280
  font-size: 1.5em;
281
  line-height: 2em; /* 3rem / 1.5em = 2em */
282
  margin-top: 1em; /* 1.5rem / 1.5em = 1em */
283
  margin-bottom: 1em;
284
}
285

    
286
h3 {
287
  font-size: 1.17em;
288
  line-height: 1.282em; /* 1.5rem / 1.17em = 1.282em */
289
  margin-top: 1.282em;
290
  margin-bottom: 1.282em;
291
}
292

    
293
h4 {
294
  font-size: 1em;
295
  line-height: 1.5em; /* 1.5rem / 1em = 1.5em */
296
  margin-top: 1.5em;
297
  margin-bottom: 1.5em;
298
}
299

    
300
h5 {
301
  font-size: 0.83em;
302
  line-height: 1.807em; /* 1.5rem / 0.83em = 1.807em */
303
  margin-top: 1.807em;
304
  margin-bottom: 1.807em;
305
}
306

    
307
h6 {
308
  font-size: 0.75em;
309
  line-height: 2em; /* 1.5rem / .75em = 2em */
310
  margin-top: 2em;
311
  margin-bottom: 2em;
312
}
313

    
314
/* Thematic break */
315
hr {
316
  height: 1px;
317
  border: 1px solid #666;
318
  padding-bottom: -1px;
319
  margin: 1.5em 0;
320
}
321

    
322
/*
323
 * Addresses styling not present in IE7/8/9, S5, Chrome
324
 */
325

    
326
abbr[title] {
327
  border-bottom: 1px dotted;
328
  cursor: help;
329
  white-space: nowrap;
330
}
331

    
332
/*
333
 * Addresses style set to 'bolder' in FF3+, S4/5, Chrome
334
*/
335

    
336
b,
337
strong {
338
  font-weight: bold;
339
}
340

    
341
blockquote {
342
  /* Sets 1 unit of vertical rhythm on the top and bottom margin. */
343
  margin: 1.5em 30px;
344
}
345

    
346
/*
347
 * Addresses styling not present in S5, Chrome
348
 */
349

    
350
dfn {
351
  font-style: italic;
352
}
353

    
354
/*
355
 * Addresses styling not present in IE6/7/8/9
356
 */
357

    
358
mark {
359
  background: #ff0;
360
  color: #000;
361
}
362

    
363
/*
364
 * Addresses margins set differently in IE6/7
365
 */
366

    
367
p,
368
pre {
369
  /* Sets 1 unit of vertical rhythm on the top and bottom margin. */
370
  margin: 1.5em 0;
371
}
372

    
373
/*
374
 * Corrects font family set oddly in IE6, S4/5, Chrome
375
 * en.wikipedia.org/wiki/User:Davidgothberg/Test59
376
 */
377

    
378
pre,
379
code,
380
kbd,
381
samp,
382
tt,
383
var {
384
  font-family: "Courier New", "DejaVu Sans Mono", monospace, sans-serif;
385
  _font-family: 'courier new', monospace;
386
  font-size: 1em;
387
  line-height: 1.5em;
388
}
389

    
390
/*
391
 * Improves readability of pre-formatted text in all browsers
392
 */
393

    
394
pre {
395
  white-space: pre;
396
  white-space: pre-wrap;
397
  word-wrap: break-word;
398
}
399

    
400
/*
401
 * 1. Addresses CSS quotes not supported in IE6/7
402
 * 2. Addresses quote property not supported in S4
403
 */
404

    
405
/* 1 */
406

    
407
q {
408
  quotes: none;
409
}
410

    
411
/* 2 */
412

    
413
q:before,
414
q:after {
415
  content: '';
416
  content: none;
417
}
418

    
419
/* @todo Determine how big element affects vertical rhythm. */
420
small {
421
  font-size: 75%;
422
}
423

    
424
/*
425
 * Prevents sub and sup affecting line-height in all browsers
426
 * gist.github.com/413930
427
 */
428

    
429
sub,
430
sup {
431
  font-size: 75%;
432
  line-height: 0;
433
  position: relative;
434
  vertical-align: baseline;
435
}
436

    
437
sup {
438
  top: -0.5em;
439
}
440

    
441
sub {
442
  bottom: -0.25em;
443
}
444

    
445

    
446
/* =============================================================================
447
   Lists
448
   ========================================================================== */
449

    
450
/*
451
 * Addresses margins set differently in IE6/7
452
 */
453

    
454
dl,
455
menu,
456
ol,
457
ul,
458
.item-list ul /* Drupal override */ {
459
  /* Sets 1 unit of vertical rhythm on the top and bottom margin. */
460
  margin: 1.5em 0;
461
}
462

    
463
.item-list ul li { /* Drupal override */
464
  margin: 0;
465
}
466

    
467
dd {
468
  margin: 0 0 0 30px; /* LTR */
469
}
470

    
471
ul ul, ul ol,
472
ol ul, ol ol,
473
.item-list ul ul, .item-list ul ol,
474
.item-list ol ul, .item-list ol ol {
475
  margin: 0; /* Turn off margins on nested lists. */
476
}
477

    
478
/*
479
 * Addresses paddings set differently in IE6/7
480
 */
481

    
482
menu,
483
ol,
484
ul,
485
.item-list ul /* Drupal override */ {
486
  padding: 0 0 0 30px; /* LTR */
487
}
488

    
489
/*
490
 * Corrects list images handled incorrectly in IE7
491
 */
492

    
493
nav ul,
494
nav ol {
495
  list-style: none;
496
  list-style-image: none;
497
}
498

    
499

    
500
/* =============================================================================
501
   Embedded content
502
   ========================================================================== */
503

    
504
/*
505
 * 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
506
 * 2. Improves image quality when scaled in IE7
507
 *    code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
508
 */
509

    
510
img {
511
  border: 0; /* 1 */
512
  -ms-interpolation-mode: bicubic; /* 2 */
513

    
514
  /* vertical-align: bottom; */ /* Suppress the space beneath the baseline */
515

    
516
  /* Responsive images */
517
  /* @todo Add responsive embedded video. */
518
  max-width: 100%;
519
  height: auto;
520
}
521

    
522
/*
523
 * Corrects overflow displayed oddly in IE9
524
 */
525

    
526
svg:not(:root) {
527
  overflow: hidden;
528
}
529

    
530

    
531
/* =============================================================================
532
   Figures
533
   ========================================================================== */
534

    
535
/*
536
 * Addresses margin not present in IE6/7/8/9, S5, O11
537
 */
538

    
539
figure {
540
  margin: 0;
541
}
542

    
543

    
544
/* =============================================================================
545
   Forms
546
   ========================================================================== */
547

    
548
/*
549
 * Corrects margin displayed oddly in IE6/7
550
 */
551

    
552
form {
553
  margin: 0;
554
}
555

    
556
/*
557
 * Define consistent border, margin, and padding
558
 */
559

    
560
fieldset {
561
  border: 1px solid #c0c0c0;
562
  margin: 0 2px;
563
  padding: 0.5em 0.625em 1em;
564
}
565

    
566
/*
567
 * 1. Corrects color not being inherited in IE6/7/8/9
568
 * 2. Corrects text not wrapping in FF3
569
 * 3. Corrects alignment displayed oddly in IE6/7
570
 */
571

    
572
legend {
573
  border: 0; /* 1 */
574
  padding: 0;
575
  white-space: normal; /* 2 */
576
  *margin-left: -7px; /* 3 */ /* LTR */
577
}
578

    
579
/*
580
 * 1. Corrects font size not being inherited in all browsers
581
 * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
582
 * 3. Improves appearance and consistency in all browsers
583
 */
584

    
585
button,
586
input,
587
select,
588
textarea {
589
  font-size: 100%; /* 1 */
590
  margin: 0; /* 2 */
591
  vertical-align: baseline; /* 3 */
592
  *vertical-align: middle; /* 3 */
593
}
594

    
595
/*
596
 * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
597
 */
598

    
599
button,
600
input {
601
  line-height: normal; /* 1 */
602
}
603

    
604
/*
605
 * 1. Improves usability and consistency of cursor style between image-type 'input' and others
606
 * 2. Corrects inability to style clickable 'input' types in iOS
607
 * 3. Removes inner spacing in IE7 without affecting normal text inputs
608
 *    Known issue: inner spacing remains in IE6
609
 */
610

    
611
button,
612
input[type="button"],
613
input[type="reset"],
614
input[type="submit"] {
615
  cursor: pointer; /* 1 */
616
  -webkit-appearance: button; /* 2 */
617
  *overflow: visible;  /* 3 */
618
}
619

    
620
/*
621
 * Re-set default cursor for disabled elements
622
 */
623

    
624
button[disabled],
625
input[disabled] {
626
  cursor: default;
627
}
628

    
629
/*
630
 * 1. Addresses box sizing set to content-box in IE8/9
631
 * 2. Removes excess padding in IE8/9
632
 * 3. Removes excess padding in IE7
633
      Known issue: excess padding remains in IE6
634
 */
635

    
636
input[type="checkbox"],
637
input[type="radio"] {
638
  -webkit-box-sizing: border-box;
639
  -moz-box-sizing: border-box;
640
  box-sizing: border-box; /* 1 */
641
  padding: 0; /* 2 */
642
  *height: 13px; /* 3 */
643
  *width: 13px; /* 3 */
644
}
645

    
646
/*
647
 * 1. Addresses appearance set to searchfield in S5, Chrome
648
 * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
649
 */
650

    
651
input[type="search"] {
652
  -webkit-appearance: textfield; /* 1 */
653
  -webkit-box-sizing: content-box; /* 2 */
654
  -moz-box-sizing: content-box;
655
  box-sizing: content-box;
656
}
657

    
658
/*
659
 * Removes inner padding and search cancel button in S5, Chrome on OS X
660
 */
661

    
662
input[type="search"]::-webkit-search-decoration,
663
input[type="search"]::-webkit-search-cancel-button {
664
  -webkit-appearance: none;
665
}
666

    
667
/*
668
 * Removes inner padding and border in FF3+
669
 * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
670
 */
671

    
672
button::-moz-focus-inner,
673
input::-moz-focus-inner {
674
  border: 0;
675
  padding: 0;
676
}
677

    
678
/*
679
 * 1. Removes default vertical scrollbar in IE6/7/8/9
680
 * 2. Improves readability and alignment in all browsers
681
 */
682

    
683
textarea {
684
  overflow: auto; /* 1 */
685
  vertical-align: top; /* 2 */
686
}
687

    
688

    
689
/* =============================================================================
690
   Tables
691
   ========================================================================== */
692

    
693
/*
694
 * Remove most spacing between table cells
695
 */
696

    
697
table {
698
  border-collapse: collapse;
699
  border-spacing: 0;
700
  /* width: 100%; */ /* Prevent cramped-looking tables */
701
  /* Add vertical rhythm margins. */
702
  margin-top: 1.5em;
703
  margin-bottom: 1.5em;
704
}
705

    
706
/*
707
 * Drupal provides table styling which is only useful for its admin section
708
 * forms, so we override this default CSS. (We set it back in forms.css.)
709
 */
710

    
711
th {
712
  text-align: left; /* LTR */
713
  padding: 0;
714
  border-bottom: none;
715
}
716

    
717
tbody {
718
  border-top: none;
719
}
(12-12/19)