compass-pattern-primer 0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +7 -0
  2. data/lib/compass-pattern-primer.rb +31 -0
  3. data/stylesheets/compass-pattern-primer.scss +12 -0
  4. data/stylesheets/compass-pattern-primer/_base.scss +10 -0
  5. data/stylesheets/compass-pattern-primer/_modules.scss +8 -0
  6. data/stylesheets/compass-pattern-primer/_reset.scss +10 -0
  7. data/stylesheets/compass-pattern-primer/base/_buttons.scss +24 -0
  8. data/stylesheets/compass-pattern-primer/base/_forms.scss +26 -0
  9. data/stylesheets/compass-pattern-primer/base/_links.scss +24 -0
  10. data/stylesheets/compass-pattern-primer/base/_page.scss +16 -0
  11. data/stylesheets/compass-pattern-primer/base/_search.scss +19 -0
  12. data/stylesheets/compass-pattern-primer/base/_typography.scss +142 -0
  13. data/stylesheets/compass-pattern-primer/modules/_control.scss +3 -0
  14. data/stylesheets/compass-pattern-primer/modules/_feedback.scss +9 -0
  15. data/stylesheets/compass-pattern-primer/modules/_options.scss +3 -0
  16. data/stylesheets/compass-pattern-primer/modules/_pagination.scss +3 -0
  17. data/stylesheets/compass-pattern-primer/partials/_colors.scss +29 -0
  18. data/stylesheets/compass-pattern-primer/partials/_extendables.scss +188 -0
  19. data/stylesheets/compass-pattern-primer/partials/_functions.scss +8 -0
  20. data/stylesheets/compass-pattern-primer/partials/_mixins.scss +145 -0
  21. data/stylesheets/compass-pattern-primer/partials/variables/_variables.scss +18 -0
  22. data/stylesheets/compass-pattern-primer/partials/variables/base/_buttons.scss +68 -0
  23. data/stylesheets/compass-pattern-primer/partials/variables/base/_colors.scss +1 -0
  24. data/stylesheets/compass-pattern-primer/partials/variables/base/_forms.scss +10 -0
  25. data/stylesheets/compass-pattern-primer/partials/variables/base/_links.scss +31 -0
  26. data/stylesheets/compass-pattern-primer/partials/variables/base/_page.scss +30 -0
  27. data/stylesheets/compass-pattern-primer/partials/variables/base/_search.scss +20 -0
  28. data/stylesheets/compass-pattern-primer/partials/variables/base/_typography.scss +202 -0
  29. data/stylesheets/compass-pattern-primer/partials/variables/modules/_control.scss +24 -0
  30. data/stylesheets/compass-pattern-primer/partials/variables/modules/_feedback.scss +22 -0
  31. data/stylesheets/compass-pattern-primer/partials/variables/modules/_options.scss +23 -0
  32. data/stylesheets/compass-pattern-primer/partials/variables/modules/_pagination.scss +26 -0
  33. data/stylesheets/compass-pattern-primer/reset/_reset.scss +19 -0
  34. data/stylesheets/compass-pattern-primer/reset/libraries/_eric_meyer_reset.scss +51 -0
  35. data/stylesheets/compass-pattern-primer/reset/libraries/_formalize.scss +378 -0
  36. data/stylesheets/compass-pattern-primer/reset/libraries/_normalize.scss +935 -0
  37. data/templates/project/ie.scss +4 -0
  38. data/templates/project/manifest.rb +26 -0
  39. data/templates/project/pattern-primer.html +401 -0
  40. data/templates/project/print.scss +1 -0
  41. data/templates/project/screen.scss +3 -0
  42. metadata +112 -0
@@ -0,0 +1,935 @@
1
+ $legacy-support-for-ie6: true !default;
2
+ $legacy-support-for-ie7: true !default;
3
+
4
+ @mixin normalize() {
5
+ @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
6
+
7
+ /*! normalize.css v1.1.0 | MIT License | git.io/normalize */
8
+
9
+ /* ==========================================================================
10
+ HTML5 display definitions
11
+ ========================================================================== */
12
+
13
+ /**
14
+ * Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.
15
+ */
16
+
17
+ article,
18
+ aside,
19
+ details,
20
+ figcaption,
21
+ figure,
22
+ footer,
23
+ header,
24
+ hgroup,
25
+ main,
26
+ nav,
27
+ section,
28
+ summary {
29
+ display: block;
30
+ }
31
+
32
+ /**
33
+ * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
34
+ */
35
+
36
+ audio,
37
+ canvas,
38
+ video {
39
+ display: inline-block;
40
+ *display: inline;
41
+ *zoom: 1;
42
+ }
43
+
44
+ /**
45
+ * Prevent modern browsers from displaying `audio` without controls.
46
+ * Remove excess height in iOS 5 devices.
47
+ */
48
+
49
+ audio:not([controls]) {
50
+ display: none;
51
+ height: 0;
52
+ }
53
+
54
+ /**
55
+ * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4.
56
+ * Known issue: no IE 6 support.
57
+ */
58
+
59
+ [hidden] {
60
+ display: none;
61
+ }
62
+
63
+ /* ==========================================================================
64
+ Base
65
+ ========================================================================== */
66
+
67
+ /**
68
+ * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
69
+ * `em` units.
70
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
71
+ * user zoom.
72
+ */
73
+
74
+ html {
75
+ font-size: 100%; /* 1 */
76
+ -webkit-text-size-adjust: 100%; /* 2 */
77
+ -ms-text-size-adjust: 100%; /* 2 */
78
+ }
79
+
80
+ /**
81
+ * Address `font-family` inconsistency between `textarea` and other form
82
+ * elements.
83
+ */
84
+
85
+ html,
86
+ button,
87
+ input,
88
+ select,
89
+ textarea {
90
+ font-family: sans-serif;
91
+ }
92
+
93
+ /**
94
+ * Address margins handled incorrectly in IE 6/7.
95
+ */
96
+
97
+ body {
98
+ margin: 0;
99
+ }
100
+
101
+ /* ==========================================================================
102
+ Links
103
+ ========================================================================== */
104
+
105
+ /**
106
+ * Address `outline` inconsistency between Chrome and other browsers.
107
+ */
108
+
109
+ a:focus {
110
+ outline: thin dotted;
111
+ }
112
+
113
+ /**
114
+ * Improve readability when focused and also mouse hovered in all browsers.
115
+ */
116
+
117
+ a:active,
118
+ a:hover {
119
+ outline: 0;
120
+ }
121
+
122
+ /* ==========================================================================
123
+ Typography
124
+ ========================================================================== */
125
+
126
+ /**
127
+ * Address font sizes and margins set differently in IE 6/7.
128
+ * Address font sizes within `section` and `article` in Firefox 4+, Safari 5,
129
+ * and Chrome.
130
+ */
131
+
132
+ h1 {
133
+ font-size: 2em;
134
+ margin: 0.67em 0;
135
+ }
136
+
137
+ h2 {
138
+ font-size: 1.5em;
139
+ margin: 0.83em 0;
140
+ }
141
+
142
+ h3 {
143
+ font-size: 1.17em;
144
+ margin: 1em 0;
145
+ }
146
+
147
+ h4 {
148
+ font-size: 1em;
149
+ margin: 1.33em 0;
150
+ }
151
+
152
+ h5 {
153
+ font-size: 0.83em;
154
+ margin: 1.67em 0;
155
+ }
156
+
157
+ h6 {
158
+ font-size: 0.67em;
159
+ margin: 2.33em 0;
160
+ }
161
+
162
+ /**
163
+ * Address styling not present in IE 7/8/9, Safari 5, and Chrome.
164
+ */
165
+
166
+ abbr[title] {
167
+ border-bottom: 1px dotted;
168
+ }
169
+
170
+ /**
171
+ * Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
172
+ */
173
+
174
+ b,
175
+ strong {
176
+ font-weight: bold;
177
+ }
178
+
179
+ blockquote {
180
+ margin: 1em 40px;
181
+ }
182
+
183
+ /**
184
+ * Address styling not present in Safari 5 and Chrome.
185
+ */
186
+
187
+ dfn {
188
+ font-style: italic;
189
+ }
190
+
191
+ /**
192
+ * Address differences between Firefox and other browsers.
193
+ * Known issue: no IE 6/7 normalization.
194
+ */
195
+
196
+ hr {
197
+ -moz-box-sizing: content-box;
198
+ box-sizing: content-box;
199
+ height: 0;
200
+ }
201
+
202
+ /**
203
+ * Address styling not present in IE 6/7/8/9.
204
+ */
205
+
206
+ mark {
207
+ background: #ff0;
208
+ color: #000;
209
+ }
210
+
211
+ /**
212
+ * Address margins set differently in IE 6/7.
213
+ */
214
+
215
+ p,
216
+ pre {
217
+ margin: 1em 0;
218
+ }
219
+
220
+ /**
221
+ * Correct font family set oddly in IE 6, Safari 4/5, and Chrome.
222
+ */
223
+
224
+ code,
225
+ kbd,
226
+ pre,
227
+ samp {
228
+ font-family: monospace, serif;
229
+ _font-family: 'courier new', monospace;
230
+ font-size: 1em;
231
+ }
232
+
233
+ /**
234
+ * Improve readability of pre-formatted text in all browsers.
235
+ */
236
+
237
+ pre {
238
+ white-space: pre;
239
+ white-space: pre-wrap;
240
+ word-wrap: break-word;
241
+ }
242
+
243
+ /**
244
+ * Address CSS quotes not supported in IE 6/7.
245
+ */
246
+
247
+ q {
248
+ quotes: none;
249
+ }
250
+
251
+ /**
252
+ * Address `quotes` property not supported in Safari 4.
253
+ */
254
+
255
+ q:before,
256
+ q:after {
257
+ content: '';
258
+ content: none;
259
+ }
260
+
261
+ /**
262
+ * Address inconsistent and variable font size in all browsers.
263
+ */
264
+
265
+ small {
266
+ font-size: 80%;
267
+ }
268
+
269
+ /**
270
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
271
+ */
272
+
273
+ sub,
274
+ sup {
275
+ font-size: 75%;
276
+ line-height: 0;
277
+ position: relative;
278
+ vertical-align: baseline;
279
+ }
280
+
281
+ sup {
282
+ top: -0.5em;
283
+ }
284
+
285
+ sub {
286
+ bottom: -0.25em;
287
+ }
288
+
289
+ /* ==========================================================================
290
+ Lists
291
+ ========================================================================== */
292
+
293
+ /**
294
+ * Address margins set differently in IE 6/7.
295
+ */
296
+
297
+ dl,
298
+ menu,
299
+ ol,
300
+ ul {
301
+ margin: 1em 0;
302
+ }
303
+
304
+ dd {
305
+ margin: 0 0 0 40px;
306
+ }
307
+
308
+ /**
309
+ * Address paddings set differently in IE 6/7.
310
+ */
311
+
312
+ menu,
313
+ ol,
314
+ ul {
315
+ padding: 0 0 0 40px;
316
+ }
317
+
318
+ /**
319
+ * Correct list images handled incorrectly in IE 7.
320
+ */
321
+
322
+ nav ul,
323
+ nav ol {
324
+ list-style: none;
325
+ list-style-image: none;
326
+ }
327
+
328
+ /* ==========================================================================
329
+ Embedded content
330
+ ========================================================================== */
331
+
332
+ /**
333
+ * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
334
+ * 2. Improve image quality when scaled in IE 7.
335
+ */
336
+
337
+ img {
338
+ border: 0; /* 1 */
339
+ -ms-interpolation-mode: bicubic; /* 2 */
340
+ }
341
+
342
+ /**
343
+ * Correct overflow displayed oddly in IE 9.
344
+ */
345
+
346
+ svg:not(:root) {
347
+ overflow: hidden;
348
+ }
349
+
350
+ /* ==========================================================================
351
+ Figures
352
+ ========================================================================== */
353
+
354
+ /**
355
+ * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
356
+ */
357
+
358
+ figure {
359
+ margin: 0;
360
+ }
361
+
362
+ /* ==========================================================================
363
+ Forms
364
+ ========================================================================== */
365
+
366
+ /**
367
+ * Correct margin displayed oddly in IE 6/7.
368
+ */
369
+
370
+ form {
371
+ margin: 0;
372
+ }
373
+
374
+ /**
375
+ * Define consistent border, margin, and padding.
376
+ */
377
+
378
+ fieldset {
379
+ border: 1px solid #c0c0c0;
380
+ margin: 0 2px;
381
+ padding: 0.35em 0.625em 0.75em;
382
+ }
383
+
384
+ /**
385
+ * 1. Correct color not being inherited in IE 6/7/8/9.
386
+ * 2. Correct text not wrapping in Firefox 3.
387
+ * 3. Correct alignment displayed oddly in IE 6/7.
388
+ */
389
+
390
+ legend {
391
+ border: 0; /* 1 */
392
+ padding: 0;
393
+ white-space: normal; /* 2 */
394
+ *margin-left: -7px; /* 3 */
395
+ }
396
+
397
+ /**
398
+ * 1. Correct font size not being inherited in all browsers.
399
+ * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5,
400
+ * and Chrome.
401
+ * 3. Improve appearance and consistency in all browsers.
402
+ */
403
+
404
+ button,
405
+ input,
406
+ select,
407
+ textarea {
408
+ font-size: 100%; /* 1 */
409
+ margin: 0; /* 2 */
410
+ vertical-align: baseline; /* 3 */
411
+ *vertical-align: middle; /* 3 */
412
+ }
413
+
414
+ /**
415
+ * Address Firefox 3+ setting `line-height` on `input` using `!important` in
416
+ * the UA stylesheet.
417
+ */
418
+
419
+ button,
420
+ input {
421
+ line-height: normal;
422
+ }
423
+
424
+ /**
425
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
426
+ * All other form control elements do not inherit `text-transform` values.
427
+ * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+.
428
+ * Correct `select` style inheritance in Firefox 4+ and Opera.
429
+ */
430
+
431
+ button,
432
+ select {
433
+ text-transform: none;
434
+ }
435
+
436
+ /**
437
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
438
+ * and `video` controls.
439
+ * 2. Correct inability to style clickable `input` types in iOS.
440
+ * 3. Improve usability and consistency of cursor style between image-type
441
+ * `input` and others.
442
+ * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
443
+ * Known issue: inner spacing remains in IE 6.
444
+ */
445
+
446
+ button,
447
+ html input[type="button"], /* 1 */
448
+ input[type="reset"],
449
+ input[type="submit"] {
450
+ -webkit-appearance: button; /* 2 */
451
+ cursor: pointer; /* 3 */
452
+ *overflow: visible; /* 4 */
453
+ }
454
+
455
+ /**
456
+ * Re-set default cursor for disabled elements.
457
+ */
458
+
459
+ button[disabled],
460
+ html input[disabled] {
461
+ cursor: default;
462
+ }
463
+
464
+ /**
465
+ * 1. Address box sizing set to content-box in IE 8/9.
466
+ * 2. Remove excess padding in IE 8/9.
467
+ * 3. Remove excess padding in IE 7.
468
+ * Known issue: excess padding remains in IE 6.
469
+ */
470
+
471
+ input[type="checkbox"],
472
+ input[type="radio"] {
473
+ box-sizing: border-box; /* 1 */
474
+ padding: 0; /* 2 */
475
+ *height: 13px; /* 3 */
476
+ *width: 13px; /* 3 */
477
+ }
478
+
479
+ /**
480
+ * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
481
+ * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
482
+ * (include `-moz` to future-proof).
483
+ */
484
+
485
+ input[type="search"] {
486
+ -webkit-appearance: textfield; /* 1 */
487
+ -moz-box-sizing: content-box;
488
+ -webkit-box-sizing: content-box; /* 2 */
489
+ box-sizing: content-box;
490
+ }
491
+
492
+ /**
493
+ * Remove inner padding and search cancel button in Safari 5 and Chrome
494
+ * on OS X.
495
+ */
496
+
497
+ input[type="search"]::-webkit-search-cancel-button,
498
+ input[type="search"]::-webkit-search-decoration {
499
+ -webkit-appearance: none;
500
+ }
501
+
502
+ /**
503
+ * Remove inner padding and border in Firefox 3+.
504
+ */
505
+
506
+ button::-moz-focus-inner,
507
+ input::-moz-focus-inner {
508
+ border: 0;
509
+ padding: 0;
510
+ }
511
+
512
+ /**
513
+ * 1. Remove default vertical scrollbar in IE 6/7/8/9.
514
+ * 2. Improve readability and alignment in all browsers.
515
+ */
516
+
517
+ textarea {
518
+ overflow: auto; /* 1 */
519
+ vertical-align: top; /* 2 */
520
+ }
521
+
522
+ /* ==========================================================================
523
+ Tables
524
+ ========================================================================== */
525
+
526
+ /**
527
+ * Remove most spacing between table cells.
528
+ */
529
+
530
+ table {
531
+ border-collapse: collapse;
532
+ border-spacing: 0;
533
+ }
534
+
535
+ } @else {
536
+
537
+ /*! normalize.css v2.1.0 | MIT License | git.io/normalize */
538
+
539
+ /* ==========================================================================
540
+ HTML5 display definitions
541
+ ========================================================================== */
542
+
543
+ /**
544
+ * Correct `block` display not defined in IE 8/9.
545
+ */
546
+
547
+ article,
548
+ aside,
549
+ details,
550
+ figcaption,
551
+ figure,
552
+ footer,
553
+ header,
554
+ hgroup,
555
+ main,
556
+ nav,
557
+ section,
558
+ summary {
559
+ display: block;
560
+ }
561
+
562
+ /**
563
+ * Correct `inline-block` display not defined in IE 8/9.
564
+ */
565
+
566
+ audio,
567
+ canvas,
568
+ video {
569
+ display: inline-block;
570
+ }
571
+
572
+ /**
573
+ * Prevent modern browsers from displaying `audio` without controls.
574
+ * Remove excess height in iOS 5 devices.
575
+ */
576
+
577
+ audio:not([controls]) {
578
+ display: none;
579
+ height: 0;
580
+ }
581
+
582
+ /**
583
+ * Address styling not present in IE 8/9.
584
+ */
585
+
586
+ [hidden] {
587
+ display: none;
588
+ }
589
+
590
+ /* ==========================================================================
591
+ Base
592
+ ========================================================================== */
593
+
594
+ /**
595
+ * 1. Set default font family to sans-serif.
596
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
597
+ * user zoom.
598
+ */
599
+
600
+ html {
601
+ font-family: sans-serif; /* 1 */
602
+ -webkit-text-size-adjust: 100%; /* 2 */
603
+ -ms-text-size-adjust: 100%; /* 2 */
604
+ }
605
+
606
+ /**
607
+ * Remove default margin.
608
+ */
609
+
610
+ body {
611
+ margin: 0;
612
+ }
613
+
614
+ /* ==========================================================================
615
+ Links
616
+ ========================================================================== */
617
+
618
+ /**
619
+ * Address `outline` inconsistency between Chrome and other browsers.
620
+ */
621
+
622
+ a:focus {
623
+ outline: thin dotted;
624
+ }
625
+
626
+ /**
627
+ * Improve readability when focused and also mouse hovered in all browsers.
628
+ */
629
+
630
+ a:active,
631
+ a:hover {
632
+ outline: 0;
633
+ }
634
+
635
+ /* ==========================================================================
636
+ Typography
637
+ ========================================================================== */
638
+
639
+ /**
640
+ * Address variable `h1` font-size and margin within `section` and `article`
641
+ * contexts in Firefox 4+, Safari 5, and Chrome.
642
+ */
643
+
644
+ h1 {
645
+ font-size: 2em;
646
+ margin: 0.67em 0;
647
+ }
648
+
649
+ /**
650
+ * Address styling not present in IE 8/9, Safari 5, and Chrome.
651
+ */
652
+
653
+ abbr[title] {
654
+ border-bottom: 1px dotted;
655
+ }
656
+
657
+ /**
658
+ * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
659
+ */
660
+
661
+ b,
662
+ strong {
663
+ font-weight: bold;
664
+ }
665
+
666
+ /**
667
+ * Address styling not present in Safari 5 and Chrome.
668
+ */
669
+
670
+ dfn {
671
+ font-style: italic;
672
+ }
673
+
674
+ /**
675
+ * Address differences between Firefox and other browsers.
676
+ */
677
+
678
+ hr {
679
+ -moz-box-sizing: content-box;
680
+ box-sizing: content-box;
681
+ height: 0;
682
+ }
683
+
684
+ /**
685
+ * Address styling not present in IE 8/9.
686
+ */
687
+
688
+ mark {
689
+ background: #ff0;
690
+ color: #000;
691
+ }
692
+
693
+ /**
694
+ * Correct font family set oddly in Safari 5 and Chrome.
695
+ */
696
+
697
+ code,
698
+ kbd,
699
+ pre,
700
+ samp {
701
+ font-family: monospace, serif;
702
+ font-size: 1em;
703
+ }
704
+
705
+ /**
706
+ * Improve readability of pre-formatted text in all browsers.
707
+ */
708
+
709
+ pre {
710
+ white-space: pre-wrap;
711
+ }
712
+
713
+ /**
714
+ * Set consistent quote types.
715
+ */
716
+
717
+ q {
718
+ quotes: "\201C" "\201D" "\2018" "\2019";
719
+ }
720
+
721
+ /**
722
+ * Address inconsistent and variable font size in all browsers.
723
+ */
724
+
725
+ small {
726
+ font-size: 80%;
727
+ }
728
+
729
+ /**
730
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
731
+ */
732
+
733
+ sub,
734
+ sup {
735
+ font-size: 75%;
736
+ line-height: 0;
737
+ position: relative;
738
+ vertical-align: baseline;
739
+ }
740
+
741
+ sup {
742
+ top: -0.5em;
743
+ }
744
+
745
+ sub {
746
+ bottom: -0.25em;
747
+ }
748
+
749
+ /* ==========================================================================
750
+ Embedded content
751
+ ========================================================================== */
752
+
753
+ /**
754
+ * Remove border when inside `a` element in IE 8/9.
755
+ */
756
+
757
+ img {
758
+ border: 0;
759
+ }
760
+
761
+ /**
762
+ * Correct overflow displayed oddly in IE 9.
763
+ */
764
+
765
+ svg:not(:root) {
766
+ overflow: hidden;
767
+ }
768
+
769
+ /* ==========================================================================
770
+ Figures
771
+ ========================================================================== */
772
+
773
+ /**
774
+ * Address margin not present in IE 8/9 and Safari 5.
775
+ */
776
+
777
+ figure {
778
+ margin: 0;
779
+ }
780
+
781
+ /* ==========================================================================
782
+ Forms
783
+ ========================================================================== */
784
+
785
+ /**
786
+ * Define consistent border, margin, and padding.
787
+ */
788
+
789
+ fieldset {
790
+ border: 1px solid #c0c0c0;
791
+ margin: 0 2px;
792
+ padding: 0.35em 0.625em 0.75em;
793
+ }
794
+
795
+ /**
796
+ * 1. Correct `color` not being inherited in IE 8/9.
797
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
798
+ */
799
+
800
+ legend {
801
+ border: 0; /* 1 */
802
+ padding: 0; /* 2 */
803
+ }
804
+
805
+ /**
806
+ * 1. Correct font family not being inherited in all browsers.
807
+ * 2. Correct font size not being inherited in all browsers.
808
+ * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
809
+ */
810
+
811
+ button,
812
+ input,
813
+ select,
814
+ textarea {
815
+ font-family: inherit; /* 1 */
816
+ font-size: 100%; /* 2 */
817
+ margin: 0; /* 3 */
818
+ }
819
+
820
+ /**
821
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
822
+ * the UA stylesheet.
823
+ */
824
+
825
+ button,
826
+ input {
827
+ line-height: normal;
828
+ }
829
+
830
+ /**
831
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
832
+ * All other form control elements do not inherit `text-transform` values.
833
+ * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
834
+ * Correct `select` style inheritance in Firefox 4+ and Opera.
835
+ */
836
+
837
+ button,
838
+ select {
839
+ text-transform: none;
840
+ }
841
+
842
+ /**
843
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
844
+ * and `video` controls.
845
+ * 2. Correct inability to style clickable `input` types in iOS.
846
+ * 3. Improve usability and consistency of cursor style between image-type
847
+ * `input` and others.
848
+ */
849
+
850
+ button,
851
+ html input[type="button"], /* 1 */
852
+ input[type="reset"],
853
+ input[type="submit"] {
854
+ -webkit-appearance: button; /* 2 */
855
+ cursor: pointer; /* 3 */
856
+ }
857
+
858
+ /**
859
+ * Re-set default cursor for disabled elements.
860
+ */
861
+
862
+ button[disabled],
863
+ html input[disabled] {
864
+ cursor: default;
865
+ }
866
+
867
+ /**
868
+ * 1. Address box sizing set to `content-box` in IE 8/9.
869
+ * 2. Remove excess padding in IE 8/9.
870
+ */
871
+
872
+ input[type="checkbox"],
873
+ input[type="radio"] {
874
+ box-sizing: border-box; /* 1 */
875
+ padding: 0; /* 2 */
876
+ }
877
+
878
+ /**
879
+ * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
880
+ * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
881
+ * (include `-moz` to future-proof).
882
+ */
883
+
884
+ input[type="search"] {
885
+ -webkit-appearance: textfield; /* 1 */
886
+ -moz-box-sizing: content-box;
887
+ -webkit-box-sizing: content-box; /* 2 */
888
+ box-sizing: content-box;
889
+ }
890
+
891
+ /**
892
+ * Remove inner padding and search cancel button in Safari 5 and Chrome
893
+ * on OS X.
894
+ */
895
+
896
+ input[type="search"]::-webkit-search-cancel-button,
897
+ input[type="search"]::-webkit-search-decoration {
898
+ -webkit-appearance: none;
899
+ }
900
+
901
+ /**
902
+ * Remove inner padding and border in Firefox 4+.
903
+ */
904
+
905
+ button::-moz-focus-inner,
906
+ input::-moz-focus-inner {
907
+ border: 0;
908
+ padding: 0;
909
+ }
910
+
911
+ /**
912
+ * 1. Remove default vertical scrollbar in IE 8/9.
913
+ * 2. Improve readability and alignment in all browsers.
914
+ */
915
+
916
+ textarea {
917
+ overflow: auto; /* 1 */
918
+ vertical-align: top; /* 2 */
919
+ }
920
+
921
+ /* ==========================================================================
922
+ Tables
923
+ ========================================================================== */
924
+
925
+ /**
926
+ * Remove most spacing between table cells.
927
+ */
928
+
929
+ table {
930
+ border-collapse: collapse;
931
+ border-spacing: 0;
932
+ }
933
+
934
+ }
935
+ }