zurb-foundation 4.1.2 → 4.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/CONTRIBUTING.md +2 -2
  2. data/Gemfile.lock +1 -1
  3. data/README.md +11 -7
  4. data/docs/CHANGELOG.md +22 -3
  5. data/docs/_sidebar-components.html.erb +3 -1
  6. data/docs/_sidebar.html.erb +3 -1
  7. data/docs/components/breadcrumbs.html.erb +9 -1
  8. data/docs/components/forms.html.erb +12 -6
  9. data/docs/components/grid.html.erb +3 -3
  10. data/docs/components/kitchen-sink.html.erb +7 -1
  11. data/docs/components/labels.html.erb +3 -1
  12. data/docs/components/section.html.erb +99 -10
  13. data/docs/components/top-bar.html.erb +2 -2
  14. data/docs/components/type.html.erb +31 -2
  15. data/docs/css/docs.scss +0 -5
  16. data/docs/index.html.erb +2 -0
  17. data/docs/javascript.html.erb +8 -5
  18. data/docs/sass.html.erb +1005 -127
  19. data/js/foundation/foundation.clearing.js +8 -4
  20. data/js/foundation/foundation.dropdown.js +43 -23
  21. data/js/foundation/foundation.forms.js +5 -3
  22. data/js/foundation/foundation.joyride.js +2 -6
  23. data/js/foundation/foundation.js +70 -47
  24. data/js/foundation/foundation.orbit.js +10 -4
  25. data/js/foundation/foundation.reveal.js +8 -3
  26. data/js/foundation/foundation.section.js +188 -72
  27. data/js/foundation/foundation.tooltips.js +4 -3
  28. data/js/foundation/foundation.topbar.js +4 -1
  29. data/lib/foundation/generators/install_generator.rb +2 -2
  30. data/lib/foundation/version.rb +1 -1
  31. data/scss/foundation.scss +1 -1
  32. data/{templates/project/scss/_settings.scss → scss/foundation/_variables.scss} +347 -173
  33. data/scss/foundation/components/_alert-boxes.scss +1 -1
  34. data/scss/foundation/components/_block-grid.scss +6 -2
  35. data/scss/foundation/components/_breadcrumbs.scss +20 -13
  36. data/scss/foundation/components/_button-groups.scss +18 -6
  37. data/scss/foundation/components/_buttons.scss +18 -11
  38. data/scss/foundation/components/_clearing.scss +6 -0
  39. data/scss/foundation/components/_custom-forms.scss +29 -23
  40. data/scss/foundation/components/_dropdown-buttons.scss +1 -1
  41. data/scss/foundation/components/_dropdown.scss +7 -3
  42. data/scss/foundation/components/_flex-video.scss +1 -1
  43. data/scss/foundation/components/_forms.scss +49 -25
  44. data/scss/foundation/components/_global.scss +222 -3
  45. data/scss/foundation/components/_grid.scss +40 -24
  46. data/scss/foundation/components/_inline-lists.scss +1 -1
  47. data/scss/foundation/components/_joyride.scss +4 -6
  48. data/scss/foundation/components/_keystrokes.scss +1 -1
  49. data/scss/foundation/components/_labels.scss +5 -3
  50. data/scss/foundation/components/_magellan.scss +1 -1
  51. data/scss/foundation/components/_orbit.scss +13 -8
  52. data/scss/foundation/components/_pagination.scss +1 -1
  53. data/scss/foundation/components/_panels.scss +1 -1
  54. data/scss/foundation/components/_pricing-tables.scss +1 -1
  55. data/scss/foundation/components/_progress-bars.scss +1 -1
  56. data/scss/foundation/components/_reveal.scss +7 -7
  57. data/scss/foundation/components/_section.scss +75 -21
  58. data/scss/foundation/components/_side-nav.scss +1 -1
  59. data/scss/foundation/components/_split-buttons.scss +10 -3
  60. data/scss/foundation/components/_sub-nav.scss +1 -1
  61. data/scss/foundation/components/_switch.scss +1 -1
  62. data/scss/foundation/components/_thumbs.scss +3 -1
  63. data/scss/foundation/components/_top-bar.scss +8 -6
  64. data/scss/foundation/components/_visibility.scss +1 -1
  65. data/scss/normalize.scss +13 -7
  66. data/templates/project/manifest.rb +2 -11
  67. data/templates/project/scss/app.scss +0 -1
  68. metadata +5 -7
  69. data/scss/foundation/_foundation-global.scss +0 -198
  70. data/templates/project/scss/normalize.scss +0 -396
@@ -59,7 +59,7 @@ $sub-nav-active-cursor: default !default;
59
59
  }
60
60
 
61
61
 
62
- @if $include-html-nav-classes {
62
+ @if $include-html-nav-classes != false {
63
63
 
64
64
  /* Side Nav */
65
65
  .sub-nav { @include sub-nav; }
@@ -212,7 +212,7 @@ $switch-label-outline: 1px dotted #888 !default;
212
212
  @include switch-style($paddle-bg, $positive-color, $negative-color, $radius, $base-style);
213
213
  }
214
214
 
215
- @if $include-html-button-classes {
215
+ @if $include-html-button-classes != false {
216
216
 
217
217
  /* Foundation Switches */
218
218
  @media only screen {
@@ -19,6 +19,7 @@ $thumb-transition-speed: 200ms !default;
19
19
 
20
20
  // We use this to create image thumbnail styles.
21
21
  @mixin thumb($border-width:$thumb-border-width, $box-shadow:$thumb-box-shadow, $box-shadow-hover:$thumb-box-shadow-hover) {
22
+ line-height: 0;
22
23
  display: inline-block;
23
24
  border: $thumb-border-style $border-width $thumb-border-color;
24
25
  -webkit-box-shadow: $box-shadow;
@@ -30,7 +31,7 @@ $thumb-transition-speed: 200ms !default;
30
31
 
31
32
 
32
33
  // If html classes are turned on we'll include these classes.
33
- @if $include-html-media-classes {
34
+ @if $include-html-media-classes != false {
34
35
 
35
36
  /* Image Thumbnails */
36
37
  .th {
@@ -39,6 +40,7 @@ $thumb-transition-speed: 200ms !default;
39
40
 
40
41
  &.radius { @include radius($thumb-radius); }
41
42
  }
43
+ a.th { display: block; }
42
44
 
43
45
  }
44
46
 
@@ -20,6 +20,7 @@ $topbar-title-font-size: emCalc(17px) !default;
20
20
  $topbar-link-color: #fff !default;
21
21
  $topbar-link-weight: bold !default;
22
22
  $topbar-link-font-size: emCalc(13px) !default;
23
+ $topbar-link-hover-lightness: -30% !default; // Darken by 30%
23
24
 
24
25
  // Style the top bar dropdown elements
25
26
  $topbar-dropdown-bg: #333 !default;
@@ -197,7 +198,8 @@ $topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")" !defa
197
198
  margin: 0;
198
199
  }
199
200
 
200
- .divider {
201
+ .divider,
202
+ [role="separator"] {
201
203
  border-bottom: solid 1px lighten($topbar-dropdown-bg, 10%);
202
204
  border-top: solid 1px darken($topbar-dropdown-bg, 10%);
203
205
  clear: both;
@@ -215,7 +217,6 @@ $topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")" !defa
215
217
  font-size: $topbar-link-font-size;
216
218
  font-weight: $topbar-link-weight;
217
219
  background: $topbar-dropdown-bg;
218
- height: $topbar-height;
219
220
 
220
221
  &:hover { background: darken($topbar-dropdown-bg, 3%); }
221
222
 
@@ -340,7 +341,7 @@ $topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")" !defa
340
341
  &.expanded { background: $topbar-bg; }
341
342
  }
342
343
 
343
- .contain-to-grid .top-bar { max-width: $row-width; margin: 0 auto; }
344
+ .contain-to-grid .top-bar { max-width: $row-width; margin: 0 auto; margin-bottom: $topbar-margin-bottom; }
344
345
 
345
346
  .top-bar-section {
346
347
  @include single-transition(none,0,0);
@@ -362,7 +363,7 @@ $topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")" !defa
362
363
  padding: 0 $topbar-height / 3;
363
364
  line-height: $topbar-height;
364
365
  background: $topbar-bg;
365
- &:hover { background: darken($topbar-dropdown-bg, 30%); }
366
+ &:hover { background: adjust-color($topbar-dropdown-bg, $lightness: $topbar-link-hover-lightness); }
366
367
  }
367
368
  }
368
369
 
@@ -392,7 +393,7 @@ $topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")" !defa
392
393
  &:after {
393
394
  border: none;
394
395
  content: "\00bb";
395
- margin-top: -7px;
396
+ margin-top: -15px;
396
397
  #{$opposite-direction}: 5px;
397
398
  }
398
399
  }
@@ -428,7 +429,8 @@ $topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")" !defa
428
429
  }
429
430
  }
430
431
 
431
- & > ul > .divider {
432
+ & > ul > .divider,
433
+ & > ul > [role="separator"] {
432
434
  border-bottom: none;
433
435
  border-top: none;
434
436
  border-#{$opposite-direction}: solid 1px lighten($topbar-bg, 10%);
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Foundation Visibility Classes
3
3
  //
4
- @if $include-html-visibility-classes {
4
+ @if $include-html-visibility-classes != false {
5
5
 
6
6
  /* Foundation Visibility HTML Classes */
7
7
  .show-for-small,
@@ -1,4 +1,4 @@
1
- /*! normalize.css v2.1.0 | MIT License | git.io/normalize */
1
+ /*! normalize.css v2.1.1 | MIT License | git.io/normalize */
2
2
 
3
3
  /* ==========================================================================
4
4
  HTML5 display definitions
@@ -56,15 +56,21 @@ audio:not([controls]) {
56
56
  ========================================================================== */
57
57
 
58
58
  /**
59
- * 1. Set default font family to sans-serif.
60
- * 2. Prevent iOS text size adjust after orientation change, without disabling
59
+ * 1. Prevent system color scheme's background color being used in Firefox, IE,
60
+ * and Opera.
61
+ * 2. Prevent system color scheme's text color being used in Firefox, IE, and
62
+ * Opera.
63
+ * 3. Set default font family to sans-serif.
64
+ * 4. Prevent iOS text size adjust after orientation change, without disabling
61
65
  * user zoom.
62
66
  */
63
67
 
64
68
  html {
65
- font-family: sans-serif; /* 1 */
66
- -webkit-text-size-adjust: 100%; /* 2 */
67
- -ms-text-size-adjust: 100%; /* 2 */
69
+ background: #fff; /* 1 */
70
+ color: #000; /* 2 */
71
+ font-family: sans-serif; /* 3 */
72
+ -ms-text-size-adjust: 100%; /* 4 */
73
+ -webkit-text-size-adjust: 100%; /* 4 */
68
74
  }
69
75
 
70
76
  /**
@@ -393,4 +399,4 @@ textarea {
393
399
  table {
394
400
  border-collapse: collapse;
395
401
  border-spacing: 0;
396
- }
402
+ }
@@ -1,8 +1,8 @@
1
1
  description 'Foundation Compass Gem'
2
2
 
3
3
  # Sass Files
4
- stylesheet 'scss/_settings.scss', :to => '_settings.scss'
5
- stylesheet 'scss/normalize.scss', :to => 'normalize.scss', :media => "screen, projector, print"
4
+ stylesheet '../../scss/foundation/_variables.scss', :to => '_settings.scss'
5
+ stylesheet '../../scss/normalize.scss', :to => 'normalize.scss', :media => "screen, projector, print"
6
6
  stylesheet 'scss/app.scss', :to => 'app.scss', :media => "screen, projector, print"
7
7
 
8
8
  # Make sure you list all the project template files here in the manifest.
@@ -26,15 +26,6 @@ vendor_javascripts = copy_js_from("../../js", "vendor")
26
26
 
27
27
  javascript "../../js/foundation/foundation.js", :to => "foundation/foundation.js"
28
28
 
29
- # javascripts.reject! do |f|
30
- # [
31
- # "jquery.js",
32
- # "modernizr.foundation.js",
33
- # "app.js",
34
- # "jquery.offcanvas.js"
35
- # ].include?(File.basename(f))
36
- # end
37
-
38
29
  html 'index.html', :erb => true, :javascripts => javascripts, :version => Foundation::VERSION
39
30
 
40
31
  help %Q{
@@ -7,7 +7,6 @@
7
7
  // Import specific parts of Foundation by commenting the import "foundation"
8
8
  // and uncommenting what you want below. You must uncomment the following if customizing
9
9
 
10
- // @import "foundation/foundation-global"; // *always required
11
10
  // @import "foundation/components/global"; // *always required
12
11
  // @import "foundation/components/grid";
13
12
  // @import "foundation/components/visibility";
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zurb-foundation
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.2
4
+ version: 4.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-10 00:00:00.000000000 Z
12
+ date: 2013-04-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -169,7 +169,7 @@ files:
169
169
  - lib/zurb-foundation.rb
170
170
  - package.json
171
171
  - scss/foundation.scss
172
- - scss/foundation/_foundation-global.scss
172
+ - scss/foundation/_variables.scss
173
173
  - scss/foundation/components/_alert-boxes.scss
174
174
  - scss/foundation/components/_block-grid.scss
175
175
  - scss/foundation/components/_breadcrumbs.scss
@@ -213,9 +213,7 @@ files:
213
213
  - templates/project/index.html
214
214
  - templates/project/manifest.rb
215
215
  - templates/project/robots.txt
216
- - templates/project/scss/_settings.scss
217
216
  - templates/project/scss/app.scss
218
- - templates/project/scss/normalize.scss
219
217
  - templates/upgrade/manifest.rb
220
218
  homepage: http://foundation.zurb.com
221
219
  licenses: []
@@ -231,7 +229,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
231
229
  version: '0'
232
230
  segments:
233
231
  - 0
234
- hash: -1096634432269913109
232
+ hash: 1005984228754676768
235
233
  required_rubygems_version: !ruby/object:Gem::Requirement
236
234
  none: false
237
235
  requirements:
@@ -240,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
238
  version: '0'
241
239
  segments:
242
240
  - 0
243
- hash: -1096634432269913109
241
+ hash: 1005984228754676768
244
242
  requirements: []
245
243
  rubyforge_project:
246
244
  rubygems_version: 1.8.23
@@ -1,198 +0,0 @@
1
- // Foundation Global Function, Variables and Mixins
2
- //
3
- // Variables
4
- //
5
-
6
- // The default font-size is set to 100% of the browser style sheet (usually 16px)
7
- // for compatibility with brower-based text zoom or user-set defaults.
8
- $base-font-size: 100% !default;
9
-
10
- // Set your base font-size in pixels so emCalc can do its magic below
11
- $em-base: 16px !default;
12
-
13
- // We use these to control various global styles
14
- $body-bg: #fff !default;
15
- $body-font-color: #222 !default;
16
- $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
17
- $body-font-weight: normal !default;
18
- $body-font-style: normal !default;
19
-
20
- // We use these to control text direction settings
21
- $text-direction: ltr !default; // Controls default global text direction, 'rtl' or 'ltr'
22
- $default-float: left !default;
23
- $opposite-direction: right !default;
24
- // No need to change this conditional statement, $text-direction variable controls it all.
25
- @if $text-direction == ltr {
26
- $default-float: left;
27
- $opposite-direction: right;
28
- } @else {
29
- $default-float: right;
30
- $opposite-direction: left;
31
- }
32
-
33
- // We use these as default colors throughout
34
- $primary-color: #2ba6cb !default;
35
- $secondary-color: #e9e9e9 !default;
36
- $alert-color: #c60f13 !default;
37
- $success-color: #5da423 !default;
38
-
39
- // We use these to make sure border radius matches unless we want it different.
40
- $global-radius: 3px !default;
41
- $global-rounded: 1000px !default;
42
-
43
- // We use these to control inset shadow shiny edges and depressions.
44
- $shiny-edge-size: 0 1px 0 !default;
45
- $shiny-edge-color: rgba(#fff, .5) !default;
46
- $shiny-edge-active-color: rgba(#000, .2) !default;
47
-
48
- // We use this to control whether or not CSS classes come through in the gem files.
49
- $include-html-classes: true !default;
50
- $include-print-styles: true !default;
51
-
52
- $include-html-grid-classes: $include-html-classes !default;
53
- $include-html-visibility-classes: $include-html-classes !default;
54
- $include-html-button-classes: $include-html-classes !default;
55
- $include-html-form-classes: $include-html-classes !default;
56
- $include-html-media-classes: $include-html-classes !default;
57
- $include-html-section-classes: $include-html-classes !default;
58
- $include-html-reveal-classes: $include-html-classes !default;
59
- $include-html-alert-classes: $include-html-classes !default;
60
- $include-html-nav-classes: $include-html-classes !default;
61
- $include-html-label-classes: $include-html-classes !default;
62
- $include-html-panel-classes: $include-html-classes !default;
63
- $include-html-pricing-classes: $include-html-classes !default;
64
- $include-html-progress-classes: $include-html-classes !default;
65
- $include-html-magellan-classes: $include-html-classes !default;
66
-
67
- //
68
- // Functions
69
- //
70
-
71
- // Working in ems is annoying. Think in pixels by using this handy function, emCalc(#px)
72
- @function emCalc($pxWidth) {
73
- @return $pxWidth / $em-base * 1em;
74
- }
75
-
76
- // Creating rems and pixels
77
- @function remCalc($pxWidth) {
78
- @return $pxWidth / $em-base * 1rem;
79
- }
80
-
81
- // Grid Calculation for Percentages
82
- @function gridCalc($colNumber, $totalColumns) {
83
- @return percentage(($colNumber / $totalColumns));
84
- }
85
-
86
-
87
- //
88
- // Mixins
89
- //
90
-
91
- // We use this to control border radius.
92
- @mixin radius($radius:$global-radius) {
93
- @if $radius {
94
- -webkit-border-radius: $radius;
95
- border-radius: $radius;
96
- }
97
- }
98
-
99
- // We use this to create equal side border radius on elements.
100
- @mixin side-radius($side, $radius) {
101
- @include radius(0);
102
- @if $side == left {
103
- -moz-border-radius-bottomleft: $radius;
104
- -moz-border-radius-topleft: $radius;
105
- -webkit-border-bottom-left-radius: $radius;
106
- -webkit-border-top-left-radius: $radius;
107
- border-bottom-left-radius: $radius;
108
- border-top-left-radius: $radius;
109
- }
110
- @else if $side == right {
111
- -moz-border-radius-topright: $radius;
112
- -moz-border-radius-bottomright: $radius;
113
- -webkit-border-top-right-radius: $radius;
114
- -webkit-border-bottom-right-radius: $radius;
115
- border-top-right-radius: $radius;
116
- border-bottom-right-radius: $radius;
117
- }
118
- @else if $side == top {
119
- -moz-border-radius-topright: $radius;
120
- -moz-border-radius-topleft: $radius;
121
- -webkit-border-top-right-radius: $radius;
122
- -webkit-border-top-left-radius: $radius;
123
- border-top-right-radius: $radius;
124
- border-top-left-radius: $radius;
125
- }
126
- @else if $side == bottom {
127
- -moz-border-radius-bottomright: $radius;
128
- -moz-border-radius-bottomleft: $radius;
129
- -webkit-border-bottom-right-radius: $radius;
130
- -webkit-border-bottom-left-radius: $radius;
131
- border-bottom-right-radius: $radius;
132
- border-bottom-left-radius: $radius;
133
- }
134
- }
135
-
136
- // We can control whether or not we have inset shadows edges.
137
- @mixin inset-shadow($active:true) {
138
- -webkit-box-shadow: $shiny-edge-size $shiny-edge-color inset;
139
- box-shadow: $shiny-edge-size $shiny-edge-color inset;
140
-
141
- @if $active { &:active {
142
- -webkit-box-shadow: $shiny-edge-size $shiny-edge-active-color inset;
143
- box-shadow: $shiny-edge-size $shiny-edge-active-color inset; } }
144
- }
145
-
146
- // We use this to add transitions to elements
147
- @mixin single-transition($property:all, $speed:300ms, $ease:ease-out) {
148
- -webkit-transition: $property $speed $ease;
149
- -moz-transition: $property $speed $ease;
150
- transition: $property $speed $ease;
151
- }
152
-
153
- // We use this to add box-sizing across browser prefixes
154
- @mixin box-sizing($type:border-box) {
155
- -moz-box-sizing: $type;
156
- -webkit-box-sizing: $type;
157
- box-sizing: $type;
158
- }
159
-
160
- // We use this to create equalateral triangles
161
- @mixin css-triangle($triangle-size, $triangle-color, $triangle-direction) {
162
- content: "";
163
- display: block;
164
- width: 0;
165
- height: 0;
166
- border: solid $triangle-size;
167
- @if ($triangle-direction == top) {
168
- border-color: $triangle-color transparent transparent transparent;
169
- }
170
- @if ($triangle-direction == bottom) {
171
- border-color: transparent transparent $triangle-color transparent;
172
- }
173
- @if ($triangle-direction == left) {
174
- border-color: transparent transparent transparent $triangle-color;
175
- }
176
- @if ($triangle-direction == right) {
177
- border-color: transparent $triangle-color transparent transparent;
178
- }
179
- }
180
-
181
- // We use this to do clear floats
182
- @mixin clearfix() {
183
- *zoom:1;
184
- &:before, &:after { content: " "; display: table; }
185
- &:after { clear: both; }
186
- }
187
-
188
- // Media Queries
189
- $small-screen: emCalc(768px) !default;
190
- $medium-screen: emCalc(1280px) !default;
191
- $large-screen: emCalc(1440px) !default;
192
-
193
- $screen: "only screen" !default;
194
- $small: "only screen and (min-width:"#{$small-screen}")" !default;
195
- $medium: "only screen and (min-width:"#{$medium-screen}")" !default;
196
- $large: "only screen and (min-width:"#{$large-screen}")" !default;
197
- $landscape: "only screen and (orientation: landscape)" !default;
198
- $portrait: "only screen and (orientation: portrait)" !default;
@@ -1,396 +0,0 @@
1
- /*! normalize.css v2.1.0 | MIT License | git.io/normalize */
2
-
3
- /* ==========================================================================
4
- HTML5 display definitions
5
- ========================================================================== */
6
-
7
- /**
8
- * Correct `block` display not defined in IE 8/9.
9
- */
10
-
11
- article,
12
- aside,
13
- details,
14
- figcaption,
15
- figure,
16
- footer,
17
- header,
18
- hgroup,
19
- main,
20
- nav,
21
- section,
22
- summary {
23
- display: block;
24
- }
25
-
26
- /**
27
- * Correct `inline-block` display not defined in IE 8/9.
28
- */
29
-
30
- audio,
31
- canvas,
32
- video {
33
- display: inline-block;
34
- }
35
-
36
- /**
37
- * Prevent modern browsers from displaying `audio` without controls.
38
- * Remove excess height in iOS 5 devices.
39
- */
40
-
41
- audio:not([controls]) {
42
- display: none;
43
- height: 0;
44
- }
45
-
46
- /**
47
- * Address styling not present in IE 8/9.
48
- */
49
-
50
- [hidden] {
51
- display: none;
52
- }
53
-
54
- /* ==========================================================================
55
- Base
56
- ========================================================================== */
57
-
58
- /**
59
- * 1. Set default font family to sans-serif.
60
- * 2. Prevent iOS text size adjust after orientation change, without disabling
61
- * user zoom.
62
- */
63
-
64
- html {
65
- font-family: sans-serif; /* 1 */
66
- -webkit-text-size-adjust: 100%; /* 2 */
67
- -ms-text-size-adjust: 100%; /* 2 */
68
- }
69
-
70
- /**
71
- * Remove default margin.
72
- */
73
-
74
- body {
75
- margin: 0;
76
- }
77
-
78
- /* ==========================================================================
79
- Links
80
- ========================================================================== */
81
-
82
- /**
83
- * Address `outline` inconsistency between Chrome and other browsers.
84
- */
85
-
86
- a:focus {
87
- outline: thin dotted;
88
- }
89
-
90
- /**
91
- * Improve readability when focused and also mouse hovered in all browsers.
92
- */
93
-
94
- a:active,
95
- a:hover {
96
- outline: 0;
97
- }
98
-
99
- /* ==========================================================================
100
- Typography
101
- ========================================================================== */
102
-
103
- /**
104
- * Address variable `h1` font-size and margin within `section` and `article`
105
- * contexts in Firefox 4+, Safari 5, and Chrome.
106
- */
107
-
108
- h1 {
109
- font-size: 2em;
110
- margin: 0.67em 0;
111
- }
112
-
113
- /**
114
- * Address styling not present in IE 8/9, Safari 5, and Chrome.
115
- */
116
-
117
- abbr[title] {
118
- border-bottom: 1px dotted;
119
- }
120
-
121
- /**
122
- * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
123
- */
124
-
125
- b,
126
- strong {
127
- font-weight: bold;
128
- }
129
-
130
- /**
131
- * Address styling not present in Safari 5 and Chrome.
132
- */
133
-
134
- dfn {
135
- font-style: italic;
136
- }
137
-
138
- /**
139
- * Address differences between Firefox and other browsers.
140
- */
141
-
142
- hr {
143
- -moz-box-sizing: content-box;
144
- box-sizing: content-box;
145
- height: 0;
146
- }
147
-
148
- /**
149
- * Address styling not present in IE 8/9.
150
- */
151
-
152
- mark {
153
- background: #ff0;
154
- color: #000;
155
- }
156
-
157
- /**
158
- * Correct font family set oddly in Safari 5 and Chrome.
159
- */
160
-
161
- code,
162
- kbd,
163
- pre,
164
- samp {
165
- font-family: monospace, serif;
166
- font-size: 1em;
167
- }
168
-
169
- /**
170
- * Improve readability of pre-formatted text in all browsers.
171
- */
172
-
173
- pre {
174
- white-space: pre-wrap;
175
- }
176
-
177
- /**
178
- * Set consistent quote types.
179
- */
180
-
181
- q {
182
- quotes: "\201C" "\201D" "\2018" "\2019";
183
- }
184
-
185
- /**
186
- * Address inconsistent and variable font size in all browsers.
187
- */
188
-
189
- small {
190
- font-size: 80%;
191
- }
192
-
193
- /**
194
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
195
- */
196
-
197
- sub,
198
- sup {
199
- font-size: 75%;
200
- line-height: 0;
201
- position: relative;
202
- vertical-align: baseline;
203
- }
204
-
205
- sup {
206
- top: -0.5em;
207
- }
208
-
209
- sub {
210
- bottom: -0.25em;
211
- }
212
-
213
- /* ==========================================================================
214
- Embedded content
215
- ========================================================================== */
216
-
217
- /**
218
- * Remove border when inside `a` element in IE 8/9.
219
- */
220
-
221
- img {
222
- border: 0;
223
- }
224
-
225
- /**
226
- * Correct overflow displayed oddly in IE 9.
227
- */
228
-
229
- svg:not(:root) {
230
- overflow: hidden;
231
- }
232
-
233
- /* ==========================================================================
234
- Figures
235
- ========================================================================== */
236
-
237
- /**
238
- * Address margin not present in IE 8/9 and Safari 5.
239
- */
240
-
241
- figure {
242
- margin: 0;
243
- }
244
-
245
- /* ==========================================================================
246
- Forms
247
- ========================================================================== */
248
-
249
- /**
250
- * Define consistent border, margin, and padding.
251
- */
252
-
253
- fieldset {
254
- border: 1px solid #c0c0c0;
255
- margin: 0 2px;
256
- padding: 0.35em 0.625em 0.75em;
257
- }
258
-
259
- /**
260
- * 1. Correct `color` not being inherited in IE 8/9.
261
- * 2. Remove padding so people aren't caught out if they zero out fieldsets.
262
- */
263
-
264
- legend {
265
- border: 0; /* 1 */
266
- padding: 0; /* 2 */
267
- }
268
-
269
- /**
270
- * 1. Correct font family not being inherited in all browsers.
271
- * 2. Correct font size not being inherited in all browsers.
272
- * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
273
- */
274
-
275
- button,
276
- input,
277
- select,
278
- textarea {
279
- font-family: inherit; /* 1 */
280
- font-size: 100%; /* 2 */
281
- margin: 0; /* 3 */
282
- }
283
-
284
- /**
285
- * Address Firefox 4+ setting `line-height` on `input` using `!important` in
286
- * the UA stylesheet.
287
- */
288
-
289
- button,
290
- input {
291
- line-height: normal;
292
- }
293
-
294
- /**
295
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
296
- * All other form control elements do not inherit `text-transform` values.
297
- * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
298
- * Correct `select` style inheritance in Firefox 4+ and Opera.
299
- */
300
-
301
- button,
302
- select {
303
- text-transform: none;
304
- }
305
-
306
- /**
307
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
308
- * and `video` controls.
309
- * 2. Correct inability to style clickable `input` types in iOS.
310
- * 3. Improve usability and consistency of cursor style between image-type
311
- * `input` and others.
312
- */
313
-
314
- button,
315
- html input[type="button"], /* 1 */
316
- input[type="reset"],
317
- input[type="submit"] {
318
- -webkit-appearance: button; /* 2 */
319
- cursor: pointer; /* 3 */
320
- }
321
-
322
- /**
323
- * Re-set default cursor for disabled elements.
324
- */
325
-
326
- button[disabled],
327
- html input[disabled] {
328
- cursor: default;
329
- }
330
-
331
- /**
332
- * 1. Address box sizing set to `content-box` in IE 8/9.
333
- * 2. Remove excess padding in IE 8/9.
334
- */
335
-
336
- input[type="checkbox"],
337
- input[type="radio"] {
338
- box-sizing: border-box; /* 1 */
339
- padding: 0; /* 2 */
340
- }
341
-
342
- /**
343
- * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
344
- * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
345
- * (include `-moz` to future-proof).
346
- */
347
-
348
- input[type="search"] {
349
- -webkit-appearance: textfield; /* 1 */
350
- -moz-box-sizing: content-box;
351
- -webkit-box-sizing: content-box; /* 2 */
352
- box-sizing: content-box;
353
- }
354
-
355
- /**
356
- * Remove inner padding and search cancel button in Safari 5 and Chrome
357
- * on OS X.
358
- */
359
-
360
- input[type="search"]::-webkit-search-cancel-button,
361
- input[type="search"]::-webkit-search-decoration {
362
- -webkit-appearance: none;
363
- }
364
-
365
- /**
366
- * Remove inner padding and border in Firefox 4+.
367
- */
368
-
369
- button::-moz-focus-inner,
370
- input::-moz-focus-inner {
371
- border: 0;
372
- padding: 0;
373
- }
374
-
375
- /**
376
- * 1. Remove default vertical scrollbar in IE 8/9.
377
- * 2. Improve readability and alignment in all browsers.
378
- */
379
-
380
- textarea {
381
- overflow: auto; /* 1 */
382
- vertical-align: top; /* 2 */
383
- }
384
-
385
- /* ==========================================================================
386
- Tables
387
- ========================================================================== */
388
-
389
- /**
390
- * Remove most spacing between table cells.
391
- */
392
-
393
- table {
394
- border-collapse: collapse;
395
- border-spacing: 0;
396
- }