zurb-foundation 4.0.5 → 4.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/.gitignore +1 -0
  2. data/Gemfile.lock +2 -2
  3. data/README.md +1 -0
  4. data/{CHANGELOG.md → docs/CHANGELOG.md} +63 -3
  5. data/docs/Gemfile +1 -0
  6. data/docs/Gemfile.lock +2 -0
  7. data/docs/_sidebar-components.html.erb +1 -0
  8. data/docs/_sidebar.html.erb +1 -0
  9. data/docs/changelog.html.erb +1 -205
  10. data/docs/components/alert-boxes.html.erb +1 -1
  11. data/docs/components/block-grid.html.erb +1 -1
  12. data/docs/components/breadcrumbs.html.erb +3 -3
  13. data/docs/components/button-groups.html.erb +1 -1
  14. data/docs/components/buttons.html.erb +1 -1
  15. data/docs/components/dropdown-buttons.html.erb +1 -1
  16. data/docs/components/dropdown.html.erb +1 -1
  17. data/docs/components/flex-video.html.erb +1 -1
  18. data/docs/components/forms.html.erb +1 -1
  19. data/docs/components/global.html.erb +92 -0
  20. data/docs/components/inline-lists.html.erb +1 -1
  21. data/docs/components/keystrokes.html.erb +2 -2
  22. data/docs/components/labels.html.erb +2 -2
  23. data/docs/components/orbit.html.erb +10 -2
  24. data/docs/components/pagination.html.erb +1 -1
  25. data/docs/components/panels.html.erb +1 -1
  26. data/docs/components/pricing-tables.html.erb +1 -1
  27. data/docs/components/progress-bars.html.erb +2 -2
  28. data/docs/components/section.html.erb +18 -0
  29. data/docs/components/side-nav.html.erb +1 -1
  30. data/docs/components/split-buttons.html.erb +1 -1
  31. data/docs/components/sub-nav.html.erb +1 -1
  32. data/docs/components/switch.html.erb +1 -1
  33. data/docs/components/thumbnails.html.erb +1 -1
  34. data/docs/components/top-bar.html.erb +5 -5
  35. data/docs/css/docs.scss +0 -1
  36. data/docs/layout.html.erb +2 -3
  37. data/docs/sass.html.erb +21 -14
  38. data/js/foundation/foundation.clearing.js +2 -0
  39. data/js/foundation/foundation.dropdown.js +10 -10
  40. data/js/foundation/foundation.joyride.js +9 -12
  41. data/js/foundation/foundation.js +28 -2
  42. data/js/foundation/foundation.orbit.js +17 -9
  43. data/js/foundation/foundation.reveal.js +6 -2
  44. data/js/foundation/foundation.section.js +30 -18
  45. data/js/foundation/foundation.topbar.js +18 -8
  46. data/lib/foundation/generators/USAGE +6 -5
  47. data/lib/foundation/generators/install_generator.rb +9 -9
  48. data/lib/foundation/generators/templates/application.html.erb +40 -37
  49. data/lib/foundation/generators/templates/application.html.haml +5 -2
  50. data/lib/foundation/generators/templates/application.html.slim +6 -5
  51. data/lib/foundation/version.rb +1 -1
  52. data/scss/foundation/_foundation-global.scss +19 -4
  53. data/scss/foundation/components/_alert-boxes.scss +1 -1
  54. data/scss/foundation/components/_breadcrumbs.scss +4 -4
  55. data/scss/foundation/components/_button-groups.scss +8 -8
  56. data/scss/foundation/components/_buttons.scss +4 -3
  57. data/scss/foundation/components/_custom-forms.scss +175 -171
  58. data/scss/foundation/components/_dropdown-buttons.scss +1 -1
  59. data/scss/foundation/components/_dropdown.scss +1 -1
  60. data/scss/foundation/components/_flex-video.scss +1 -1
  61. data/scss/foundation/components/_forms.scss +91 -89
  62. data/scss/foundation/components/_global.scss +7 -2
  63. data/scss/foundation/components/_grid.scss +3 -3
  64. data/scss/foundation/components/_inline-lists.scss +1 -1
  65. data/scss/foundation/components/_keystrokes.scss +2 -2
  66. data/scss/foundation/components/_labels.scss +3 -3
  67. data/scss/foundation/components/_magellan.scss +1 -1
  68. data/scss/foundation/components/_pagination.scss +1 -1
  69. data/scss/foundation/components/_panels.scss +1 -1
  70. data/scss/foundation/components/_pricing-tables.scss +1 -1
  71. data/scss/foundation/components/_progress-bars.scss +2 -2
  72. data/scss/foundation/components/_reveal.scss +1 -1
  73. data/scss/foundation/components/_section.scss +1 -1
  74. data/scss/foundation/components/_side-nav.scss +1 -1
  75. data/scss/foundation/components/_split-buttons.scss +1 -1
  76. data/scss/foundation/components/_sub-nav.scss +1 -1
  77. data/scss/foundation/components/_switch.scss +3 -3
  78. data/scss/foundation/components/_thumbs.scss +1 -1
  79. data/scss/foundation/components/_top-bar.scss +4 -1
  80. data/scss/foundation/components/_visibility.scss +273 -274
  81. data/templates/project/scss/_settings.scss +4 -4
  82. data/templates/project/scss/app.scss +8 -8
  83. data/templates/upgrade/manifest.rb +7 -12
  84. metadata +6 -6
  85. data/index.html +0 -113
@@ -101,7 +101,7 @@ $dropdown-button-pip-top-lrg: -$button-lrg / 2 + emCalc(3px) !default;
101
101
  }
102
102
 
103
103
 
104
- @if $include-html-classes {
104
+ @if $include-html-button-classes {
105
105
 
106
106
  /* Dropdown Button */
107
107
  .dropdown.button { @include dropdown-button;
@@ -108,7 +108,7 @@ $f-dropdown-content-padding: emCalc(20px) !default;
108
108
  }
109
109
 
110
110
 
111
- @if $include-html-classes {
111
+ @if $include-html-nav-classes {
112
112
 
113
113
  @media only screen and (max-width: 767px) {
114
114
  .f-dropdown {
@@ -37,7 +37,7 @@ $flex-video-widescreen-padding-bottom: 57.25% !default;
37
37
  }
38
38
  }
39
39
 
40
- @if $include-html-classes {
40
+ @if $include-html-media-classes {
41
41
 
42
42
  /* Flex Video */
43
43
  .flex-video { @include flex-video-container; }
@@ -241,96 +241,98 @@ $input-error-message-font-color-alt: #333 !default;
241
241
  @else { color: $input-error-message-font-color-alt; }
242
242
  }
243
243
 
244
-
245
- /* Standard Forms */
246
- form { margin: 0 0 $form-spacing; }
247
-
248
- /* Using forms within rows, we need to set some defaults */
249
- form .row { @include form-row-base; }
250
- form .row .row { margin: 0; }
251
-
252
- /* Label Styles */
253
- label { @include form-label;
254
- &.right { @include form-label(right,false); }
255
- &.inline { @include form-label(inline,false); }
256
- }
257
-
258
- /* Attach elements to the beginning or end of an input */
259
- .prefix,
260
- .postfix { @include prefix-postfix-base; }
261
-
262
- /* Adjust padding, alignment and radius if pre/post element is a button */
263
- .postfix.button { @include button-size(false,false,false); @include postfix(false,true); }
264
- .prefix.button { @include button-size(false,false,false); @include prefix(false,true); }
265
- .prefix.button.radius { @include side-radius(left, $global-radius); }
266
- .postfix.button.radius { @include side-radius(right, $global-radius); }
267
- .prefix.button.round { @include side-radius(left, 1000px); }
268
- .postfix.button.round { @include side-radius(right, 1000px); }
269
-
270
- /* Separate prefix and postfix styles when on span so buttons keep their own */
271
- span.prefix { @include prefix();
272
- &.radius { @include side-radius(left, $global-radius); }
273
- }
274
- span.postfix { @include postfix();
275
- &.radius { @include side-radius(right, $global-radius); }
276
- }
277
-
278
- /* Input groups will automatically style first and last elements of the group */
279
- .input-group {
280
- &.radius {
281
- &>*:first-child, &>*:first-child * {
282
- @include side-radius(left, $global-radius);
244
+ // Only include these classes if the variable is true, otherwise they'll be left out.
245
+ @if $include-html-form-classes {
246
+ /* Standard Forms */
247
+ form { margin: 0 0 $form-spacing; }
248
+
249
+ /* Using forms within rows, we need to set some defaults */
250
+ form .row { @include form-row-base; }
251
+ form .row .row { margin: 0; }
252
+
253
+ /* Label Styles */
254
+ label { @include form-label;
255
+ &.right { @include form-label(right,false); }
256
+ &.inline { @include form-label(inline,false); }
257
+ }
258
+
259
+ /* Attach elements to the beginning or end of an input */
260
+ .prefix,
261
+ .postfix { @include prefix-postfix-base; }
262
+
263
+ /* Adjust padding, alignment and radius if pre/post element is a button */
264
+ .postfix.button { @include button-size(false,false,false); @include postfix(false,true); }
265
+ .prefix.button { @include button-size(false,false,false); @include prefix(false,true); }
266
+ .prefix.button.radius { @include side-radius(left, $global-radius); }
267
+ .postfix.button.radius { @include side-radius(right, $global-radius); }
268
+ .prefix.button.round { @include side-radius(left, 1000px); }
269
+ .postfix.button.round { @include side-radius(right, 1000px); }
270
+
271
+ /* Separate prefix and postfix styles when on span so buttons keep their own */
272
+ span.prefix { @include prefix();
273
+ &.radius { @include side-radius(left, $global-radius); }
274
+ }
275
+ span.postfix { @include postfix();
276
+ &.radius { @include side-radius(right, $global-radius); }
277
+ }
278
+
279
+ /* Input groups will automatically style first and last elements of the group */
280
+ .input-group {
281
+ &.radius {
282
+ &>*:first-child, &>*:first-child * {
283
+ @include side-radius(left, $global-radius);
284
+ }
285
+ &>*:last-child, &>*:last-child * {
286
+ @include side-radius(right, $global-radius);
287
+ }
283
288
  }
284
- &>*:last-child, &>*:last-child * {
285
- @include side-radius(right, $global-radius);
289
+ &.round {
290
+ &>*:first-child, &>*:first-child * {
291
+ @include side-radius(left, $button-round);
292
+ }
293
+ &>*:last-child, &>*:last-child * {
294
+ @include side-radius(right, $button-round);
295
+ }
286
296
  }
287
297
  }
288
- &.round {
289
- &>*:first-child, &>*:first-child * {
290
- @include side-radius(left, 1000px);
291
- }
292
- &>*:last-child, &>*:last-child * {
293
- @include side-radius(right, 1000px);
294
- }
298
+
299
+ /* We use this to get basic styling on all basic form elements */
300
+ input[type="text"],
301
+ input[type="password"],
302
+ input[type="date"],
303
+ input[type="datetime"],
304
+ input[type="datetime-local"],
305
+ input[type="month"],
306
+ input[type="week"],
307
+ input[type="email"],
308
+ input[type="number"],
309
+ input[type="search"],
310
+ input[type="tel"],
311
+ input[type="time"],
312
+ input[type="url"],
313
+ textarea {
314
+ @include form-element;
315
+ @include single-transition(all, 0.15s, linear);
295
316
  }
296
- }
297
-
298
- /* We use this to get basic styling on all basic form elements */
299
- input[type="text"],
300
- input[type="password"],
301
- input[type="date"],
302
- input[type="datetime"],
303
- input[type="datetime-local"],
304
- input[type="month"],
305
- input[type="week"],
306
- input[type="email"],
307
- input[type="number"],
308
- input[type="search"],
309
- input[type="tel"],
310
- input[type="time"],
311
- input[type="url"],
312
- textarea {
313
- @include form-element;
314
- @include single-transition(all, 0.15s, linear);
315
- }
316
-
317
- /* We add basic fieldset styling */
318
- fieldset {
319
- @include fieldset;
320
- }
321
-
322
- /* Error Handling */
323
- .error input,
324
- input.error,
325
- .error textarea,
326
- textarea.error {
327
- @include form-error-color;
328
- }
329
-
330
- .error label,
331
- label.error { @include form-label-error-color; }
332
-
333
- .error small,
334
- small.error {
335
- @include form-error-message;
336
- }
317
+
318
+ /* We add basic fieldset styling */
319
+ fieldset {
320
+ @include fieldset;
321
+ }
322
+
323
+ /* Error Handling */
324
+ .error input,
325
+ input.error,
326
+ .error textarea,
327
+ textarea.error {
328
+ @include form-error-color;
329
+ }
330
+
331
+ .error label,
332
+ label.error { @include form-label-error-color; }
333
+
334
+ .error small,
335
+ small.error {
336
+ @include form-error-message;
337
+ }
338
+ }
@@ -6,7 +6,7 @@
6
6
  }
7
7
 
8
8
  html,
9
- body { font-size: $em-base; }
9
+ body { font-size: $base-font-size; }
10
10
 
11
11
  // Default body styles
12
12
  body {
@@ -19,7 +19,6 @@ body {
19
19
  font-style: $body-font-style;
20
20
  line-height: 1;
21
21
  position: relative;
22
- -webkit-font-smoothing: $font-smoothing;
23
22
  }
24
23
 
25
24
  // Override outline from normalize, we don't like it
@@ -51,6 +50,12 @@ img { -ms-interpolation-mode: bicubic; }
51
50
  .text-justify { text-align: justify !important; }
52
51
  .hide { display: none; }
53
52
 
53
+ // Font smoothing
54
+ // Antialiased font smoothing works best for light text on a dark background.
55
+ // Apply to single elements instead of globally to body.
56
+ // Note this only applies to webkit-based desktop browsers on the Mac.
57
+ .antialiased { -webkit-font-smoothing: antialiased; }
58
+
54
59
  // Get rid of gap under images by making them display: inline-block; by default
55
60
  img { display: inline-block; }
56
61
 
@@ -1,8 +1,8 @@
1
1
  //
2
2
  // Grid Variables
3
3
  //
4
- $row-width: 62.5em !default;
5
- $column-gutter: 1.875em !default;
4
+ $row-width: emCalc(1000px) !default;
5
+ $column-gutter: emCalc(30px) !default;
6
6
  $total-columns: 12 !default;
7
7
 
8
8
  //
@@ -100,7 +100,7 @@ $total-columns: 12 !default;
100
100
 
101
101
 
102
102
  /* Grid HTML Classes */
103
- @if $include-html-classes {
103
+ @if $include-html-grid-classes {
104
104
 
105
105
  .row {
106
106
  @include grid-row;
@@ -37,7 +37,7 @@ $inline-list-children-display: block !default;
37
37
  }
38
38
 
39
39
 
40
- @if $include-html-classes {
40
+ @if $include-html-grid-classes {
41
41
 
42
42
  /* Inline Lists */
43
43
  .inline-list {
@@ -17,7 +17,7 @@ $keystroke-bg: darken(#fff, $keystroke-function-factor) !default;
17
17
  $keystroke-border-style: solid !default;
18
18
  $keystroke-border-width: 1px !default;
19
19
  $keystroke-border-color: darken($keystroke-bg, $keystroke-function-factor) !default;
20
- $keystroke-radius: $button-radius !default;
20
+ $keystroke-radius: $global-radius !default;
21
21
 
22
22
  //
23
23
  // Keystroke Mixins
@@ -44,7 +44,7 @@ $keystroke-radius: $button-radius !default;
44
44
  }
45
45
 
46
46
 
47
- @if $include-html-classes {
47
+ @if $include-html-media-classes {
48
48
 
49
49
  /* Keystroke Characters */
50
50
  .keystroke,
@@ -4,7 +4,7 @@
4
4
 
5
5
  // We use these to style the labels
6
6
  $label-padding: emCalc(3px) emCalc(10px) emCalc(4px) !default;
7
- $label-radius: $button-radius !default;
7
+ $label-radius: $global-radius !default;
8
8
 
9
9
  // We use these to style the label text
10
10
  $label-font-size: emCalc(14px) !default;
@@ -21,7 +21,7 @@ $label-font-weight: bold !default;
21
21
  text-decoration: none;
22
22
  line-height: 1;
23
23
  white-space: nowrap;
24
- display: inline;
24
+ display: inline-block;
25
25
  position: relative;
26
26
  }
27
27
 
@@ -61,7 +61,7 @@ $label-font-weight: bold !default;
61
61
  }
62
62
 
63
63
 
64
- @if $include-html-classes {
64
+ @if $include-html-label-classes {
65
65
 
66
66
  /* Labels */
67
67
  .label {
@@ -3,7 +3,7 @@
3
3
  //
4
4
  $magellan-bg: #fff !default;
5
5
 
6
- @if $include-html-classes {
6
+ @if $include-html-magellan-classes {
7
7
 
8
8
  [data-magellan-expedition] {
9
9
  background: $magellan-bg;
@@ -91,7 +91,7 @@ $pagination-link-current-active-bg: $primary-color !default;
91
91
 
92
92
 
93
93
 
94
- @if $include-html-classes {
94
+ @if $include-html-nav-classes {
95
95
 
96
96
  /* Pagination */
97
97
  .pagination { @include pagination; }
@@ -56,7 +56,7 @@ $panel-font-color-alt: #fff !default;
56
56
  }
57
57
 
58
58
  // Only include these classes if the option exists
59
- @if $include-html-classes {
59
+ @if $include-html-panel-classes {
60
60
 
61
61
  /* Panels */
62
62
  .panel { @include panel;
@@ -114,7 +114,7 @@ $price-cta-padding: emCalc(20px) emCalc(20px) 0 !default;
114
114
  }
115
115
 
116
116
 
117
- @if $include-html-classes {
117
+ @if $include-html-pricing-classes {
118
118
 
119
119
  /* Pricing Tables */
120
120
  .pricing-table {
@@ -10,7 +10,7 @@ $progress-bar-color: transparent !default;
10
10
  $progress-bar-border-color: darken(#fff, 20%) !default;
11
11
  $progress-bar-border-size: 1px !default;
12
12
  $progress-bar-border-style: solid !default;
13
- $progress-bar-border-radius: $button-radius !default;
13
+ $progress-bar-border-radius: $global-radius !default;
14
14
 
15
15
  // We use these to control the margin & padding
16
16
  $progress-bar-pad: emCalc(2px) !default;
@@ -43,7 +43,7 @@ $progress-meter-alert-color: $alert-color !default;
43
43
  }
44
44
 
45
45
 
46
- @if $include-html-classes {
46
+ @if $include-html-media-classes {
47
47
 
48
48
  /* Progress Bar */
49
49
  .progress {
@@ -99,7 +99,7 @@ $reveal-border-color: #666 !default;
99
99
  cursor: pointer;
100
100
  }
101
101
 
102
- @if $include-html-classes {
102
+ @if $include-html-reveal-classes {
103
103
  // Reveal Modals
104
104
  .reveal-modal-bg { @include reveal-bg; }
105
105
 
@@ -200,7 +200,7 @@ $section-bottom-margin: emCalc(20px) !default;
200
200
  }
201
201
 
202
202
 
203
- @if $include-html-classes {
203
+ @if $include-html-section-classes {
204
204
 
205
205
  /* Sections */
206
206
  .section-container {
@@ -60,7 +60,7 @@ $side-nav-divider-color: darken(#fff, 10%) !default;
60
60
  }
61
61
 
62
62
 
63
- @if $include-html-classes {
63
+ @if $include-html-nav-classes {
64
64
 
65
65
  /* Side Nav */
66
66
  .side-nav { @include side-nav; }
@@ -137,7 +137,7 @@ $split-button-pip-left-lrg: emCalc(-9px) !default;
137
137
  }
138
138
 
139
139
 
140
- @if $include-html-classes {
140
+ @if $include-html-button-classes {
141
141
 
142
142
  /* Split Buttons */
143
143
  .split.button { @include split-button;
@@ -59,7 +59,7 @@ $sub-nav-active-cursor: default !default;
59
59
  }
60
60
 
61
61
 
62
- @if $include-html-classes {
62
+ @if $include-html-nav-classes {
63
63
 
64
64
  /* Side Nav */
65
65
  .sub-nav { @include sub-nav; }
@@ -213,13 +213,13 @@ $switch-label-outline: 1px dotted #888 !default;
213
213
  @include switch-style($paddle-bg, $positive-color, $negative-color, $radius, $base-style);
214
214
  }
215
215
 
216
- @if $include-html-classes {
216
+ @if $include-html-button-classes {
217
217
 
218
218
  /* Foundation Switches */
219
219
  @media only screen {
220
220
 
221
221
  // Containing element for the radio switch
222
- .switch {
222
+ div.switch {
223
223
  @include switch;
224
224
 
225
225
  // Large radio switches
@@ -247,4 +247,4 @@ $switch-label-outline: 1px dotted #888 !default;
247
247
  @-webkit-keyframes webkitSiblingBugfix { from { position: relative; } to { position: relative; } }
248
248
 
249
249
  }
250
- }
250
+ }