zurb-foundation 4.1.5 → 4.1.6

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 (63) hide show
  1. data/Gemfile.lock +1 -1
  2. data/README.md +4 -0
  3. data/docs/CHANGELOG.md +10 -0
  4. data/docs/components/block-grid.html.erb +1 -1
  5. data/docs/components/grid.html.erb +4 -4
  6. data/docs/components/inline-lists.html.erb +2 -2
  7. data/docs/components/panels.html.erb +2 -2
  8. data/docs/components/pricing-tables.html.erb +1 -1
  9. data/docs/components/progress-bars.html.erb +1 -1
  10. data/docs/components/reveal.html.erb +1 -1
  11. data/docs/components/section.html.erb +546 -19
  12. data/docs/components/split-buttons.html.erb +2 -2
  13. data/docs/components/thumbnails.html.erb +2 -2
  14. data/docs/components/top-bar.html.erb +2 -3
  15. data/docs/components/type.html.erb +5 -5
  16. data/docs/components/visibility.html.erb +1 -1
  17. data/docs/css/docs.scss +54 -0
  18. data/docs/sass.html.erb +3 -1
  19. data/js/foundation/foundation.forms.js +311 -227
  20. data/js/foundation/foundation.joyride.js +10 -8
  21. data/js/foundation/foundation.js +1 -1
  22. data/js/foundation/foundation.section.js +4 -4
  23. data/lib/foundation/version.rb +1 -1
  24. data/scss/foundation/_variables.scss +185 -171
  25. data/scss/foundation/components/_alert-boxes.scss +1 -0
  26. data/scss/foundation/components/_block-grid.scss +2 -4
  27. data/scss/foundation/components/_breadcrumbs.scss +1 -0
  28. data/scss/foundation/components/_button-groups.scss +1 -0
  29. data/scss/foundation/components/_buttons.scss +1 -0
  30. data/scss/foundation/components/_clearing.scss +154 -151
  31. data/scss/foundation/components/_custom-forms.scss +35 -21
  32. data/scss/foundation/components/_dropdown-buttons.scss +2 -1
  33. data/scss/foundation/components/_dropdown.scss +2 -1
  34. data/scss/foundation/components/_flex-video.scss +1 -0
  35. data/scss/foundation/components/_forms.scss +1 -0
  36. data/scss/foundation/components/_global.scss +75 -84
  37. data/scss/foundation/components/_grid.scss +9 -8
  38. data/scss/foundation/components/_inline-lists.scss +2 -1
  39. data/scss/foundation/components/_joyride.scss +165 -160
  40. data/scss/foundation/components/_keystrokes.scss +2 -1
  41. data/scss/foundation/components/_labels.scss +1 -0
  42. data/scss/foundation/components/_magellan.scss +2 -0
  43. data/scss/foundation/components/_orbit.scss +158 -154
  44. data/scss/foundation/components/_pagination.scss +1 -0
  45. data/scss/foundation/components/_panels.scss +1 -0
  46. data/scss/foundation/components/_pricing-tables.scss +1 -0
  47. data/scss/foundation/components/_progress-bars.scss +1 -0
  48. data/scss/foundation/components/_reveal.scss +2 -1
  49. data/scss/foundation/components/_section.scss +108 -93
  50. data/scss/foundation/components/_side-nav.scss +2 -1
  51. data/scss/foundation/components/_split-buttons.scss +1 -0
  52. data/scss/foundation/components/_sub-nav.scss +1 -0
  53. data/scss/foundation/components/_switch.scss +4 -2
  54. data/scss/foundation/components/_tables.scss +7 -3
  55. data/scss/foundation/components/_thumbs.scss +1 -0
  56. data/scss/foundation/components/_tooltips.scss +85 -81
  57. data/scss/foundation/components/_top-bar.scss +323 -318
  58. data/scss/foundation/components/_type.scss +290 -286
  59. data/scss/foundation/components/_visibility.scss +2 -0
  60. data/templates/project/index.html +0 -1
  61. data/templates/project/manifest.rb +0 -1
  62. data/templates/project/scss/app.scss +3 -0
  63. metadata +4 -4
@@ -1,6 +1,7 @@
1
1
  //
2
2
  // Typography Variables
3
3
  //
4
+ $include-html-type-classes: $include-html-classes !default;
4
5
 
5
6
  // We use these to control header font styles
6
7
  $header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
@@ -116,307 +117,310 @@ $microformat-abbr-font-decoration: none !default;
116
117
  margin-bottom: $subheader-bottom-margin;
117
118
  }
118
119
 
119
-
120
- /* Typography resets */
121
- div,
122
- dl,
123
- dt,
124
- dd,
125
- ul,
126
- ol,
127
- li,
128
- h1,
129
- h2,
130
- h3,
131
- h4,
132
- h5,
133
- h6,
134
- pre,
135
- form,
136
- p,
137
- blockquote,
138
- th,
139
- td {
140
- margin:0;
141
- padding:0;
142
- direction: $text-direction;
143
- }
144
-
145
- /* Default Link Styles */
146
- a {
147
- color: $anchor-font-color;
148
- text-decoration: $anchor-text-decoration;
149
- line-height: inherit;
150
-
151
- &:hover,
152
- &:focus { color: $anchor-font-color-hover; }
153
-
154
- img { border:none; }
155
- }
156
-
157
- /* Default paragraph styles */
158
- p {
159
- font-family: $paragraph-font-family;
160
- font-weight: $paragraph-font-weight;
161
- font-size: $paragraph-font-size;
162
- line-height: $paragraph-line-height;
163
- margin-bottom: $paragraph-margin-bottom;
164
- text-rendering: $paragraph-text-rendering;
165
-
166
- &.lead { @extend %lead; }
167
-
168
- & aside {
169
- font-size: $paragraph-aside-font-size;
170
- line-height: $paragraph-aside-line-height;
171
- font-style: $paragraph-aside-font-style;
120
+ @if $include-html-type-classes != false {
121
+
122
+ /* Typography resets */
123
+ div,
124
+ dl,
125
+ dt,
126
+ dd,
127
+ ul,
128
+ ol,
129
+ li,
130
+ h1,
131
+ h2,
132
+ h3,
133
+ h4,
134
+ h5,
135
+ h6,
136
+ pre,
137
+ form,
138
+ p,
139
+ blockquote,
140
+ th,
141
+ td {
142
+ margin:0;
143
+ padding:0;
144
+ direction: $text-direction;
172
145
  }
173
- }
174
-
175
- /* Default header styles */
176
- h1, h2, h3, h4, h5, h6 {
177
- font-family: $header-font-family;
178
- font-weight: $header-font-weight;
179
- font-style: $header-font-style;
180
- color: $header-font-color;
181
- text-rendering: $header-text-rendering;
182
- margin-top: $header-top-margin;
183
- margin-bottom: $header-bottom-margin;
184
- line-height: $header-line-height - emCalc(3px);
185
-
186
- small {
187
- font-size: $small-font-size;
188
- color: $small-font-color;
189
- line-height: 0;
146
+
147
+ /* Default Link Styles */
148
+ a {
149
+ color: $anchor-font-color;
150
+ text-decoration: $anchor-text-decoration;
151
+ line-height: inherit;
152
+
153
+ &:hover,
154
+ &:focus { color: $anchor-font-color-hover; }
155
+
156
+ img { border:none; }
190
157
  }
191
- }
192
-
193
- h1 { font-size: $h1-font-size - emCalc(10px); }
194
- h2 { font-size: $h2-font-size - emCalc(10px); }
195
- h3 { font-size: $h3-font-size - emCalc(5px); }
196
- h4 { font-size: $h4-font-size - emCalc(5px); }
197
- h5 { font-size: $h5-font-size; }
198
- h6 { font-size: $h6-font-size; }
199
-
200
- .subheader { @extend %subheader; }
201
-
202
- hr {
203
- border: $hr-border-style $hr-border-color;
204
- border-width: $hr-border-width 0 0;
205
- clear: both;
206
- margin: $hr-margin 0 ($hr-margin - emCalc(1px));
207
- height: 0;
208
- }
209
-
210
- /* Helpful Typography Defaults */
211
- em,
212
- i {
213
- font-style: italic;
214
- line-height: inherit;
215
- }
216
-
217
- strong,
218
- b {
219
- font-weight: bold;
220
- line-height: inherit;
221
- }
222
-
223
- small {
224
- font-size: $small-font-size;
225
- line-height: inherit;
226
- }
227
-
228
- code {
229
- font-family: $code-font-family;
230
- font-weight: $code-font-weight;
231
- color: $code-color;
232
- }
233
-
234
- /* Lists */
235
- ul,
236
- ol,
237
- dl {
238
- font-size: $paragraph-font-size;
239
- line-height: $paragraph-line-height;
240
- margin-bottom: $paragraph-margin-bottom;
241
- list-style-position: $list-style-position;
242
- font-family: $paragraph-font-family;
243
- }
244
-
245
- /* Unordered Lists */
246
- ul {
247
- li {
248
- ul,
249
- ol {
250
- margin-#{$default-float}: $list-side-margin;
251
- margin-bottom: 0;
252
- font-size: 1em; /* Override nested font-size change */
158
+
159
+ /* Default paragraph styles */
160
+ p {
161
+ font-family: $paragraph-font-family;
162
+ font-weight: $paragraph-font-weight;
163
+ font-size: $paragraph-font-size;
164
+ line-height: $paragraph-line-height;
165
+ margin-bottom: $paragraph-margin-bottom;
166
+ text-rendering: $paragraph-text-rendering;
167
+
168
+ &.lead { @extend %lead; }
169
+
170
+ & aside {
171
+ font-size: $paragraph-aside-font-size;
172
+ line-height: $paragraph-aside-line-height;
173
+ font-style: $paragraph-aside-font-style;
253
174
  }
254
175
  }
255
- &.square,
256
- &.circle,
257
- &.disc {
258
- li ul { list-style: inherit; }
259
- }
260
-
261
- &.square { list-style-type: square; }
262
- &.circle { list-style-type: circle; }
263
- &.disc { list-style-type: disc; }
264
- &.no-bullet { list-style: none; }
265
- }
266
-
267
- /* Ordered Lists */
268
- ol {
269
- li {
270
- ul,
271
- ol {
272
- margin-#{$default-float}: $list-side-margin;
273
- margin-bottom: 0;
176
+
177
+ /* Default header styles */
178
+ h1, h2, h3, h4, h5, h6 {
179
+ font-family: $header-font-family;
180
+ font-weight: $header-font-weight;
181
+ font-style: $header-font-style;
182
+ color: $header-font-color;
183
+ text-rendering: $header-text-rendering;
184
+ margin-top: $header-top-margin;
185
+ margin-bottom: $header-bottom-margin;
186
+ line-height: $header-line-height - emCalc(3px);
187
+
188
+ small {
189
+ font-size: $small-font-size;
190
+ color: $small-font-color;
191
+ line-height: 0;
274
192
  }
275
193
  }
276
- }
277
-
278
- /* Definition Lists */
279
- dl {
280
- dt {
281
- margin-bottom: $definition-list-header-margin-bottom;
282
- font-weight: $definition-list-header-weight;
194
+
195
+ h1 { font-size: $h1-font-size - emCalc(10px); }
196
+ h2 { font-size: $h2-font-size - emCalc(10px); }
197
+ h3 { font-size: $h3-font-size - emCalc(5px); }
198
+ h4 { font-size: $h4-font-size - emCalc(5px); }
199
+ h5 { font-size: $h5-font-size; }
200
+ h6 { font-size: $h6-font-size; }
201
+
202
+ .subheader { @extend %subheader; }
203
+
204
+ hr {
205
+ border: $hr-border-style $hr-border-color;
206
+ border-width: $hr-border-width 0 0;
207
+ clear: both;
208
+ margin: $hr-margin 0 ($hr-margin - emCalc(1px));
209
+ height: 0;
283
210
  }
284
- dd { margin-bottom: $definition-list-margin-bottom; }
285
- }
286
-
287
- /* Abbreviations */
288
- abbr,
289
- acronym {
290
- text-transform: uppercase;
291
- font-size: 90%;
292
- color: $body-font-color;
293
- border-bottom: $acronym-underline;
294
- cursor: help;
295
- }
296
- abbr {
297
- text-transform: none;
298
- }
299
-
300
- /* Blockquotes */
301
- blockquote {
302
- margin: 0 0 $paragraph-margin-bottom;
303
- padding: $blockquote-padding;
304
- border-#{$default-float}: $blockquote-border;
305
-
306
- cite {
307
- display: block;
308
- font-size: $blockquote-cite-font-size;
309
- color: $blockquote-cite-font-color;
310
- &:before {
311
- content: "\2014 \0020";
211
+
212
+ /* Helpful Typography Defaults */
213
+ em,
214
+ i {
215
+ font-style: italic;
216
+ line-height: inherit;
217
+ }
218
+
219
+ strong,
220
+ b {
221
+ font-weight: bold;
222
+ line-height: inherit;
223
+ }
224
+
225
+ small {
226
+ font-size: $small-font-size;
227
+ line-height: inherit;
228
+ }
229
+
230
+ code {
231
+ font-family: $code-font-family;
232
+ font-weight: $code-font-weight;
233
+ color: $code-color;
234
+ }
235
+
236
+ /* Lists */
237
+ ul,
238
+ ol,
239
+ dl {
240
+ font-size: $paragraph-font-size;
241
+ line-height: $paragraph-line-height;
242
+ margin-bottom: $paragraph-margin-bottom;
243
+ list-style-position: $list-style-position;
244
+ font-family: $paragraph-font-family;
245
+ }
246
+
247
+ /* Unordered Lists */
248
+ ul {
249
+ li {
250
+ ul,
251
+ ol {
252
+ margin-#{$default-float}: $list-side-margin;
253
+ margin-bottom: 0;
254
+ font-size: 1em; /* Override nested font-size change */
255
+ }
312
256
  }
313
-
314
- a,
315
- a:visited {
316
- color: $blockquote-cite-link-color;
257
+ &.square,
258
+ &.circle,
259
+ &.disc {
260
+ li ul { list-style: inherit; }
317
261
  }
262
+
263
+ &.square { list-style-type: square; }
264
+ &.circle { list-style-type: circle; }
265
+ &.disc { list-style-type: disc; }
266
+ &.no-bullet { list-style: none; }
318
267
  }
319
- }
320
- blockquote,
321
- blockquote p {
322
- line-height: $paragraph-line-height;
323
- color: $blockquote-font-color;
324
- }
325
-
326
- /* Microformats */
327
- .vcard {
328
- display: inline-block;
329
- margin: $microformat-margin;
330
- border: $microformat-border-width $microformat-border-style $microformat-border-color;
331
- padding: $microformat-padding;
332
-
333
- li {
334
- margin: 0;
335
- display: block;
268
+
269
+ /* Ordered Lists */
270
+ ol {
271
+ li {
272
+ ul,
273
+ ol {
274
+ margin-#{$default-float}: $list-side-margin;
275
+ margin-bottom: 0;
276
+ }
277
+ }
336
278
  }
337
- .fn {
338
- font-weight: $microformat-fullname-font-weight;
339
- font-size: $microformat-fullname-font-size;
279
+
280
+ /* Definition Lists */
281
+ dl {
282
+ dt {
283
+ margin-bottom: $definition-list-header-margin-bottom;
284
+ font-weight: $definition-list-header-weight;
285
+ }
286
+ dd { margin-bottom: $definition-list-margin-bottom; }
287
+ }
288
+
289
+ /* Abbreviations */
290
+ abbr,
291
+ acronym {
292
+ text-transform: uppercase;
293
+ font-size: 90%;
294
+ color: $body-font-color;
295
+ border-bottom: $acronym-underline;
296
+ cursor: help;
340
297
  }
341
- }
342
-
343
- .vevent {
344
- .summary { font-weight: $microformat-summary-font-weight; }
345
-
346
298
  abbr {
347
- cursor: default;
348
- text-decoration: $microformat-abbr-font-decoration;
349
- font-weight: $microformat-abbr-font-weight;
350
- border: none;
351
- padding: $microformat-abbr-padding;
299
+ text-transform: none;
352
300
  }
353
- }
354
-
355
-
356
- @media #{$small} {
357
- h1,h2,h3,h4,h5,h6 { line-height: $header-line-height; }
358
- h1 { font-size: $h1-font-size; }
359
- h2 { font-size: $h2-font-size; }
360
- h3 { font-size: $h3-font-size; }
361
- h4 { font-size: $h4-font-size; }
362
- }
363
-
364
- // Only include these styles if you want them.
365
- @if $include-print-styles {
366
- /*
367
- * Print styles.
368
- *
369
- * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
370
- * Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com)
371
- */
372
- .print-only { display: none !important; }
373
- @media print {
374
- * {
375
- background: transparent !important;
376
- color: #000 !important; /* Black prints faster: h5bp.com/s */
377
- box-shadow: none !important;
378
- text-shadow: none !important;
301
+
302
+ /* Blockquotes */
303
+ blockquote {
304
+ margin: 0 0 $paragraph-margin-bottom;
305
+ padding: $blockquote-padding;
306
+ border-#{$default-float}: $blockquote-border;
307
+
308
+ cite {
309
+ display: block;
310
+ font-size: $blockquote-cite-font-size;
311
+ color: $blockquote-cite-font-color;
312
+ &:before {
313
+ content: "\2014 \0020";
314
+ }
315
+
316
+ a,
317
+ a:visited {
318
+ color: $blockquote-cite-link-color;
319
+ }
379
320
  }
380
-
381
- a,
382
- a:visited { text-decoration: underline;}
383
- a[href]:after { content: " (" attr(href) ")"; }
384
-
385
- abbr[title]:after { content: " (" attr(title) ")"; }
386
-
387
- // Don't show links for images, or javascript/internal links
388
- .ir a:after,
389
- a[href^="javascript:"]:after,
390
- a[href^="#"]:after { content: ""; }
391
-
392
- pre,
393
- blockquote {
394
- border: 1px solid #999;
395
- page-break-inside: avoid;
321
+ }
322
+ blockquote,
323
+ blockquote p {
324
+ line-height: $paragraph-line-height;
325
+ color: $blockquote-font-color;
326
+ }
327
+
328
+ /* Microformats */
329
+ .vcard {
330
+ display: inline-block;
331
+ margin: $microformat-margin;
332
+ border: $microformat-border-width $microformat-border-style $microformat-border-color;
333
+ padding: $microformat-padding;
334
+
335
+ li {
336
+ margin: 0;
337
+ display: block;
396
338
  }
397
-
398
- thead { display: table-header-group; /* h5bp.com/t */ }
399
-
400
- tr,
401
- img { page-break-inside: avoid; }
402
-
403
- img { max-width: 100% !important; }
404
-
405
- @page { margin: 0.5cm; }
406
-
407
- p,
408
- h2,
409
- h3 {
410
- orphans: 3;
411
- widows: 3;
339
+ .fn {
340
+ font-weight: $microformat-fullname-font-weight;
341
+ font-size: $microformat-fullname-font-size;
412
342
  }
413
-
414
- h2,
415
- h3 { page-break-after: avoid; }
416
-
417
- .hide-on-print { display: none !important; }
418
- .print-only { display: block !important; }
419
- .hide-for-print { display: none !important; }
420
- .show-for-print { display: inherit !important; }
421
343
  }
422
- }
344
+
345
+ .vevent {
346
+ .summary { font-weight: $microformat-summary-font-weight; }
347
+
348
+ abbr {
349
+ cursor: default;
350
+ text-decoration: $microformat-abbr-font-decoration;
351
+ font-weight: $microformat-abbr-font-weight;
352
+ border: none;
353
+ padding: $microformat-abbr-padding;
354
+ }
355
+ }
356
+
357
+
358
+ @media #{$small} {
359
+ h1,h2,h3,h4,h5,h6 { line-height: $header-line-height; }
360
+ h1 { font-size: $h1-font-size; }
361
+ h2 { font-size: $h2-font-size; }
362
+ h3 { font-size: $h3-font-size; }
363
+ h4 { font-size: $h4-font-size; }
364
+ }
365
+
366
+ // Only include these styles if you want them.
367
+ @if $include-print-styles {
368
+ /*
369
+ * Print styles.
370
+ *
371
+ * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
372
+ * Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com)
373
+ */
374
+ .print-only { display: none !important; }
375
+ @media print {
376
+ * {
377
+ background: transparent !important;
378
+ color: #000 !important; /* Black prints faster: h5bp.com/s */
379
+ box-shadow: none !important;
380
+ text-shadow: none !important;
381
+ }
382
+
383
+ a,
384
+ a:visited { text-decoration: underline;}
385
+ a[href]:after { content: " (" attr(href) ")"; }
386
+
387
+ abbr[title]:after { content: " (" attr(title) ")"; }
388
+
389
+ // Don't show links for images, or javascript/internal links
390
+ .ir a:after,
391
+ a[href^="javascript:"]:after,
392
+ a[href^="#"]:after { content: ""; }
393
+
394
+ pre,
395
+ blockquote {
396
+ border: 1px solid #999;
397
+ page-break-inside: avoid;
398
+ }
399
+
400
+ thead { display: table-header-group; /* h5bp.com/t */ }
401
+
402
+ tr,
403
+ img { page-break-inside: avoid; }
404
+
405
+ img { max-width: 100% !important; }
406
+
407
+ @page { margin: 0.5cm; }
408
+
409
+ p,
410
+ h2,
411
+ h3 {
412
+ orphans: 3;
413
+ widows: 3;
414
+ }
415
+
416
+ h2,
417
+ h3 { page-break-after: avoid; }
418
+
419
+ .hide-on-print { display: none !important; }
420
+ .print-only { display: block !important; }
421
+ .hide-for-print { display: none !important; }
422
+ .show-for-print { display: inherit !important; }
423
+ }
424
+ }
425
+
426
+ }