zurb-foundation 4.0.4 → 4.0.5

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 (53) hide show
  1. data/CHANGELOG.md +26 -2
  2. data/CONTRIBUTING.md +0 -8
  3. data/Gemfile.lock +2 -2
  4. data/docs/_sidebar-components.html.erb +1 -0
  5. data/docs/_sidebar.html.erb +1 -0
  6. data/docs/changelog.html.erb +29 -1
  7. data/docs/components/block-grid.html.erb +11 -2
  8. data/docs/components/clearing.html.erb +1 -1
  9. data/docs/components/custom-forms.html.erb +14 -13
  10. data/docs/components/dropdown.html.erb +1 -1
  11. data/docs/components/flex-video.html.erb +1 -1
  12. data/docs/components/grid.html.erb +2 -2
  13. data/docs/components/joyride.html.erb +1 -1
  14. data/docs/components/magellan.html.erb +1 -1
  15. data/docs/components/orbit.html.erb +5 -1
  16. data/docs/components/pricing-tables.html.erb +3 -3
  17. data/docs/components/progress-bars.html.erb +1 -0
  18. data/docs/components/reveal.html.erb +5 -1
  19. data/docs/components/section.html.erb +66 -4
  20. data/docs/components/split-buttons.html.erb +11 -11
  21. data/docs/components/tooltips.html.erb +1 -1
  22. data/docs/components/top-bar.html.erb +4 -2
  23. data/docs/components/type.html.erb +7 -1
  24. data/docs/components/visibility.html.erb +17 -11
  25. data/docs/javascript.html.erb +1 -1
  26. data/docs/layout.html.erb +3 -3
  27. data/docs/media-queries.html.erb +96 -0
  28. data/docs/sass.html.erb +82 -2
  29. data/foundation.gemspec +1 -1
  30. data/js/foundation/foundation.forms.js +6 -14
  31. data/js/foundation/foundation.joyride.js +12 -10
  32. data/js/foundation/foundation.orbit.js +2 -0
  33. data/js/foundation/foundation.section.js +61 -4
  34. data/js/foundation/foundation.topbar.js +9 -2
  35. data/js/vendor/zepto.js +415 -313
  36. data/lib/foundation/version.rb +1 -1
  37. data/scss/foundation/_foundation-global.scss +4 -0
  38. data/scss/foundation/components/_block-grid.scss +4 -4
  39. data/scss/foundation/components/_button-groups.scss +4 -4
  40. data/scss/foundation/components/_buttons.scss +2 -1
  41. data/scss/foundation/components/_custom-forms.scss +1 -1
  42. data/scss/foundation/components/_forms.scss +3 -4
  43. data/scss/foundation/components/_global.scss +11 -8
  44. data/scss/foundation/components/_magellan.scss +7 -2
  45. data/scss/foundation/components/_orbit.scss +6 -3
  46. data/scss/foundation/components/_progress-bars.scss +6 -4
  47. data/scss/foundation/components/_section.scss +48 -1
  48. data/scss/foundation/components/_top-bar.scss +15 -14
  49. data/scss/foundation/components/_type.scss +3 -3
  50. data/scss/foundation/components/_visibility.scss +259 -55
  51. data/templates/project/scss/_settings.scss +7 -0
  52. metadata +6 -6
  53. data/docs/_zurb-jobs.html.erb +0 -5
@@ -59,7 +59,7 @@ $hr-margin: emCalc(20px) !default;
59
59
 
60
60
  // We use these to style lists
61
61
  $list-style-position: outside !default;
62
- $list-side-margin: emCalc(18px) !default;
62
+ $list-side-margin: emCalc(20px) !default;
63
63
  $definition-list-header-weight: bold !default;
64
64
  $definition-list-header-margin-bottom: .3em !default;
65
65
  $definition-list-margin-bottom: emCalc(12px) !default;
@@ -252,7 +252,7 @@ ul {
252
252
  }
253
253
  &.square,
254
254
  &.circle,
255
- &.disc { margin-#{$default-float}: $list-side-margin;
255
+ &.disc {
256
256
  li ul { list-style: inherit; }
257
257
  }
258
258
 
@@ -263,7 +263,7 @@ ul {
263
263
  }
264
264
 
265
265
  /* Ordered Lists */
266
- ol { margin-#{$default-float}: $list-side-margin;
266
+ ol {
267
267
  li {
268
268
  ul,
269
269
  ol {
@@ -3,90 +3,211 @@
3
3
  //
4
4
 
5
5
  /* Foundation Visibility HTML Classes */
6
- @media only screen {
7
- .show-for-small,
8
- .show-for-medium-down,
9
- .show-for-large-down { display: inherit !important; }
6
+ .show-for-small,
7
+ .show-for-medium-down,
8
+ .show-for-large-down { display: inherit !important; }
10
9
 
11
- .show-for-medium,
12
- .show-for-medium-up,
13
- .show-for-large,
14
- .show-for-large-up,
15
- .show-for-xlarge { display: none !important; }
10
+ .show-for-medium,
11
+ .show-for-medium-up,
12
+ .show-for-large,
13
+ .show-for-large-up,
14
+ .show-for-xlarge { display: none !important; }
16
15
 
17
- .hide-for-medium,
18
- .hide-for-medium-up,
19
- .hide-for-large,
20
- .hide-for-large-up,
21
- .hide-for-xlarge { display: inherit !important; }
16
+ .hide-for-medium,
17
+ .hide-for-medium-up,
18
+ .hide-for-large,
19
+ .hide-for-large-up,
20
+ .hide-for-xlarge { display: inherit !important; }
21
+
22
+ .hide-for-small,
23
+ .hide-for-medium-down,
24
+ .hide-for-large-down { display: none !important; }
22
25
 
23
- .hide-for-small,
24
- .hide-for-medium-down,
25
- .hide-for-large-down { display: none !important; }
26
+ /* Specific visilbity for tables */
27
+ table {
28
+ &.show-for-small,
29
+ &.show-for-medium-down,
30
+ &.show-for-large-down,
31
+ &.hide-for-medium,
32
+ &.hide-for-medium-up,
33
+ &.hide-for-large,
34
+ &.hide-for-large-up,
35
+ &.hide-for-xlarge { display: table; }
36
+ }
37
+ thead {
38
+ &.show-for-small,
39
+ &.show-for-medium-down,
40
+ &.show-for-large-down,
41
+ &.hide-for-medium,
42
+ &.hide-for-medium-up,
43
+ &.hide-for-large,
44
+ &.hide-for-large-up,
45
+ &.hide-for-xlarge { display: table-header-group !important; }
46
+ }
47
+ tbody {
48
+ &.show-for-small,
49
+ &.show-for-medium-down,
50
+ &.show-for-large-down,
51
+ &.hide-for-medium,
52
+ &.hide-for-medium-up,
53
+ &.hide-for-large,
54
+ &.hide-for-large-up,
55
+ &.hide-for-xlarge { display: table-row-group !important; }
56
+ }
57
+ tr {
58
+ &.show-for-small,
59
+ &.show-for-medium-down,
60
+ &.show-for-large-down,
61
+ &.hide-for-medium,
62
+ &.hide-for-medium-up,
63
+ &.hide-for-large,
64
+ &.hide-for-large-up,
65
+ &.hide-for-xlarge { display: table-row !important; }
66
+ }
67
+ td,
68
+ th {
69
+ &.show-for-small,
70
+ &.show-for-medium-down,
71
+ &.show-for-large-down,
72
+ &.hide-for-medium,
73
+ &.hide-for-medium-up,
74
+ &.hide-for-large,
75
+ &.hide-for-large-up,
76
+ &.hide-for-xlarge { display: table-cell !important; }
26
77
  }
27
78
 
79
+
80
+
81
+
82
+
28
83
  /* Medium Displays: 768px - 1279px */
29
84
  @media #{$small} {
30
85
  .show-for-medium,
31
- .show-for-medium-down,
32
- .show-for-medium-up,
33
- .show-for-large-down { display: inherit !important; }
86
+ .show-for-medium-up { display: inherit !important; }
34
87
 
35
- .show-for-small,
36
- .show-for-large,
37
- .show-for-large-up { display: none !important; }
88
+ .show-for-small { display: none !important; }
38
89
 
39
- .hide-for-small,
40
- .hide-for-large,
41
- .hide-for-large-up { display: inherit !important; }
90
+ .hide-for-small { display: inherit !important; }
42
91
 
43
92
  .hide-for-medium,
44
- .hide-for-medium-down,
45
- .hide-for-medium-up,
46
- .hide-for-large-down { display: none !important; }
93
+ .hide-for-medium-up { display: none !important; }
94
+
95
+ /* Specific visilbity for tables */
96
+ table {
97
+ &.show-for-medium,
98
+ &.show-for-medium-up,
99
+ &.hide-for-small { display: table; }
100
+ }
101
+ thead {
102
+ &.show-for-medium,
103
+ &.show-for-medium-up,
104
+ &.hide-for-small { display: table-header-group !important; }
105
+ }
106
+ tbody {
107
+ &.show-for-medium,
108
+ &.show-for-medium-up,
109
+ &.hide-for-small { display: table-row-group !important; }
110
+ }
111
+ tr {
112
+ &.show-for-medium,
113
+ &.show-for-medium-up,
114
+ &.hide-for-small { display: table-row !important; }
115
+ }
116
+ td,
117
+ th {
118
+ &.show-for-medium,
119
+ &.show-for-medium-up,
120
+ &.hide-for-small { display: table-cell !important; }
121
+ }
47
122
  }
48
123
 
49
124
  /* Large Displays: 1280px - 1440px */
50
125
  @media #{$medium} {
51
- .show-for-medium-down,
52
- .show-for-medium-up,
53
126
  .show-for-large,
54
- .show-for-large-down,
55
127
  .show-for-large-up { display: inherit !important; }
56
128
 
57
- .show-for-small,
58
- .show-for-medium { display: none !important; }
129
+ .show-for-medium,
130
+ .show-for-medium-down { display: none !important; }
59
131
 
60
- .hide-for-small,
61
- .hide-for-medium { display: inherit !important; }
132
+ .hide-for-medium,
133
+ .hide-for-medium-down { display: inherit !important; }
62
134
 
63
- .hide-for-medium-down,
64
- .hide-for-medium-up,
65
135
  .hide-for-large,
66
- .hide-for-large-down,
67
136
  .hide-for-large-up { display: none !important; }
68
137
 
138
+ /* Specific visilbity for tables */
139
+ table {
140
+ &.show-for-large,
141
+ &.show-for-large-up,
142
+ &.hide-for-medium,
143
+ &.hide-for-medium-down { display: table; }
144
+ }
145
+ thead {
146
+ &.show-for-large,
147
+ &.show-for-large-up,
148
+ &.hide-for-medium,
149
+ &.hide-for-medium-down { display: table-header-group !important; }
150
+ }
151
+ tbody {
152
+ &.show-for-large,
153
+ &.show-for-large-up,
154
+ &.hide-for-medium,
155
+ &.hide-for-medium-down { display: table-row-group !important; }
156
+ }
157
+ tr {
158
+ &.show-for-large,
159
+ &.show-for-large-up,
160
+ &.hide-for-medium,
161
+ &.hide-for-medium-down { display: table-row !important; }
162
+ }
163
+ td,
164
+ th {
165
+ &.show-for-large,
166
+ &.show-for-large-up,
167
+ &.hide-for-medium,
168
+ &.hide-for-medium-down { display: table-cell !important; }
169
+ }
69
170
  }
70
171
 
71
172
  /* X-Large Displays: 1400px and up */
72
173
  @media #{$large} {
73
- .show-for-medium-up,
74
- .show-for-large-up { display: inherit !important; }
174
+ .show-for-xlarge { display: inherit !important; }
75
175
 
76
- .show-for-small,
77
- .show-for-medium,
78
- .show-for-medium-down,
79
- .show-for-large-down,
80
- .show-for-large { display: none !important; }
176
+ .show-for-large,
177
+ .show-for-large-down { display: none !important; }
81
178
 
82
- .hide-for-small,
83
- .hide-for-medium,
84
- .hide-for-large { display: inherit !important; }
179
+ .hide-for-large,
180
+ .hide-for-large-down { display: inherit !important; }
85
181
 
86
- .hide-for-medium-down,
87
- .hide-for-medium-up,
88
- .hide-for-large-down,
89
- .hide-for-large-up { display: none !important; }
182
+ .hide-for-xlarge { display: none !important; }
183
+
184
+ /* Specific visilbity for tables */
185
+ table {
186
+ &.show-for-xlarge,
187
+ &.hide-for-large,
188
+ &.hide-for-large-down { display: table; }
189
+ }
190
+ thead {
191
+ &.show-for-xlarge,
192
+ &.hide-for-large,
193
+ &.hide-for-large-down { display: table-header-group !important; }
194
+ }
195
+ tbody {
196
+ &.show-for-xlarge,
197
+ &.hide-for-large,
198
+ &.hide-for-large-down { display: table-row-group !important; }
199
+ }
200
+ tr {
201
+ &.show-for-xlarge,
202
+ &.hide-for-large,
203
+ &.hide-for-large-down { display: table-row !important; }
204
+ }
205
+ td,
206
+ th {
207
+ &.show-for-xlarge,
208
+ &.hide-for-large,
209
+ &.hide-for-large-down { display: table-cell !important; }
210
+ }
90
211
  }
91
212
 
92
213
 
@@ -96,18 +217,87 @@
96
217
  .hide-for-landscape,
97
218
  .show-for-portrait { display: none !important; }
98
219
 
99
- @media screen and (orientation: landscape) {
220
+ /* Specific visilbity for tables */
221
+ table {
222
+ &.hide-for-landscape,
223
+ &.show-for-portrait { display: table; }
224
+ }
225
+ thead {
226
+ &.hide-for-landscape,
227
+ &.show-for-portrait { display: table-header-group !important; }
228
+ }
229
+ tbody {
230
+ &.hide-for-landscape,
231
+ &.show-for-portrait { display: table-row-group !important; }
232
+ }
233
+ tr {
234
+ &.hide-for-landscape,
235
+ &.show-for-portrait { display: table-row !important; }
236
+ }
237
+ td,
238
+ th {
239
+ &.hide-for-landscape,
240
+ &.show-for-portrait { display: table-cell !important; }
241
+ }
242
+
243
+ @media #{$landscape} {
100
244
  .show-for-landscape,
101
245
  .hide-for-portrait { display: inherit !important; }
102
246
  .hide-for-landscape,
103
247
  .show-for-portrait { display: none !important; }
248
+
249
+ /* Specific visilbity for tables */
250
+ table {
251
+ &.show-for-landscape,
252
+ &.hide-for-portrait { display: table; }
253
+ }
254
+ thead {
255
+ &.show-for-landscape,
256
+ &.hide-for-portrait { display: table-header-group !important; }
257
+ }
258
+ tbody {
259
+ &.show-for-landscape,
260
+ &.hide-for-portrait { display: table-row-group !important; }
261
+ }
262
+ tr {
263
+ &.show-for-landscape,
264
+ &.hide-for-portrait { display: table-row !important; }
265
+ }
266
+ td,
267
+ th {
268
+ &.show-for-landscape,
269
+ &.hide-for-portrait { display: table-cell !important; }
270
+ }
104
271
  }
105
272
 
106
- @media screen and (orientation: portrait) {
273
+ @media #{$portrait} {
107
274
  .show-for-portrait,
108
275
  .hide-for-landscape { display: inherit !important; }
109
276
  .hide-for-portrait,
110
277
  .show-for-landscape { display: none !important; }
278
+
279
+ /* Specific visilbity for tables */
280
+ table {
281
+ &.show-for-portrait,
282
+ &.hide-for-landscape { display: table; }
283
+ }
284
+ thead {
285
+ &.show-for-portrait,
286
+ &.hide-for-landscape { display: table-header-group !important; }
287
+ }
288
+ tbody {
289
+ &.show-for-portrait,
290
+ &.hide-for-landscape { display: table-row-group !important; }
291
+ }
292
+ tr {
293
+ &.show-for-portrait,
294
+ &.hide-for-landscape { display: table-row !important; }
295
+ }
296
+ td,
297
+ th {
298
+ &.show-for-portrait,
299
+ &.hide-for-landscape { display: table-cell !important; }
300
+ }
111
301
  }
112
302
 
113
303
  /* Touch-enabled device targeting */
@@ -115,3 +305,17 @@
115
305
  .hide-for-touch { display: inherit !important; }
116
306
  .touch .show-for-touch { display: inherit !important; }
117
307
  .touch .hide-for-touch { display: none !important; }
308
+
309
+ /* Specific visilbity for tables */
310
+ table.hide-for-touch { display: table; }
311
+ .touch table.show-for-touch { display: table; }
312
+ thead.hide-for-touch { display: table-header-group !important; }
313
+ .touch thead.show-for-touch { display: table-header-group !important; }
314
+ tbody.hide-for-touch { display: table-row-group !important; }
315
+ .touch tbody.show-for-touch { display: table-row-group !important; }
316
+ tr.hide-for-touch { display: table-row !important; }
317
+ .touch tr.show-for-touch { display: table-row !important; }
318
+ td.hide-for-touch { display: table-cell !important; }
319
+ .touch td.show-for-touch { display: table-cell !important; }
320
+ th.hide-for-touch { display: table-cell !important; }
321
+ .touch th.show-for-touch { display: table-cell !important; }
@@ -178,6 +178,7 @@
178
178
  // $label-font-weight: 500;
179
179
  // $label-font-color: lighten(#000, 30%);
180
180
  // $label-bottom-margin: emCalc(3px);
181
+ // $input-font-family: inherit;
181
182
  // $input-font-color: rgba(0,0,0,0.75);
182
183
  // $input-font-size: emCalc(14px);
183
184
  // $input-bg-color: #fff;
@@ -229,6 +230,7 @@
229
230
  // $button-margin-bottom: emCalc(20px);
230
231
 
231
232
  // We use these to control button text styles.
233
+ // $button-font-family: inherit;
232
234
  // $button-font-color: #fff;
233
235
  // $button-font-color-alt: #333;
234
236
  // $button-font-med: emCalc(16px);
@@ -590,6 +592,7 @@
590
592
  //
591
593
 
592
594
  // We use these to control the caption styles
595
+ // $orbit-container-bg: #f5f5f5;
593
596
  // $orbit-caption-bg-old-browser: #000;
594
597
  // $orbit-caption-bg-old: rgb(0,0,0);
595
598
  // $orbit-caption-bg: rgba(0,0,0,0.6);
@@ -612,6 +615,9 @@
612
615
  // $orbit-slide-number-font-color: #fff;
613
616
  // $orbit-slide-number-padding: emCalc(5px);
614
617
 
618
+ // Margin for when Orbit is stacked on small screens
619
+ // $stack-on-small-margin-bottom: emCalc(20px); // Doesn't quite work yet
620
+
615
621
  //
616
622
  // Pagination Variables
617
623
  //
@@ -720,6 +726,7 @@
720
726
 
721
727
  // We use this to se the prog bar height
722
728
  // $progress-bar-height: emCalc(25px);
729
+ // $progress-bar-color: transparent;
723
730
 
724
731
  // We use these to control the border styles
725
732
  // $progress-bar-border-color: darken(#fff, 20%);
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.0.4
4
+ version: 4.0.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-03-05 00:00:00.000000000 Z
12
+ date: 2013-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -35,7 +35,7 @@ dependencies:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
- type: :runtime
38
+ type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
@@ -67,7 +67,6 @@ files:
67
67
  - docs/README.md
68
68
  - docs/_sidebar-components.html.erb
69
69
  - docs/_sidebar.html.erb
70
- - docs/_zurb-jobs.html.erb
71
70
  - docs/changelog.html.erb
72
71
  - docs/compile.rb
73
72
  - docs/components/alert-boxes.html.erb
@@ -134,6 +133,7 @@ files:
134
133
  - docs/js/tests/tooltips/tooltips.html
135
134
  - docs/js/tests/tooltips/tooltips.js
136
135
  - docs/layout.html.erb
136
+ - docs/media-queries.html.erb
137
137
  - docs/rails.html.erb
138
138
  - docs/sass.html.erb
139
139
  - docs/support.html.erb
@@ -229,7 +229,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
229
  version: '0'
230
230
  segments:
231
231
  - 0
232
- hash: 2233190354478831862
232
+ hash: 289427186868157040
233
233
  required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  none: false
235
235
  requirements:
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  version: '0'
239
239
  segments:
240
240
  - 0
241
- hash: 2233190354478831862
241
+ hash: 289427186868157040
242
242
  requirements: []
243
243
  rubyforge_project:
244
244
  rubygems_version: 1.8.23