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
@@ -2,7 +2,7 @@
2
2
 
3
3
  This is the Foundation project. We love making super awesome stuff, but even more we like to empower people to make changes on their own. Feel free to fork and improve Foundation.
4
4
 
5
- ### JavaScript
5
+ <!-- ### JavaScript
6
6
 
7
7
  The Foundation JS libraries are tested with qUnit. You can run the tests in your browser by opening up the respective `.html` files in `test/javascripts/tests/`.
8
8
 
@@ -16,7 +16,7 @@ For more convenient testing using the command line and watcher functionality, yo
16
16
  4. From the root of the project, `npm install`. This will install the grunt tasks locally.
17
17
  5. Install the grunt command line interface with `npm install -g grunt-cli`.
18
18
 
19
- Now you should have two new commands available. `grunt qunit` will execute all of the qUnit tests. `grunt watch` will watch for changes to the JS files and test files, and execute the tests when something changes.
19
+ Now you should have two new commands available. `grunt qunit` will execute all of the qUnit tests. `grunt watch` will watch for changes to the JS files and test files, and execute the tests when something changes. -->
20
20
 
21
21
  ## Compass Project
22
22
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zurb-foundation (4.1.2)
4
+ zurb-foundation (4.1.5)
5
5
  sass (>= 3.2.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -28,14 +28,14 @@ Community
28
28
 
29
29
  Many thanks to all the people working on Foundation either to improve the base code or to support specific frameworks. If you want to get on this readme send an email to foundation@zurb.com, and if you have questions you can join the Unofficial Foundation Google Group here: http://groups.google.com/group/foundation-framework-
30
30
 
31
- WordPress
31
+ WordPress (Versions marked 3/20/13)
32
32
 
33
- * [Starter Theme](https://github.com/drewsymo/Foundation) by Drew Morris
34
- * [Reverie](http://themefortress.com/reverie/) by Zhen
35
- * [WP-Foundation](http://320press.com/wp-foundation/features/) by 320press
36
- * [Yeti](https://github.com/modlearning/Yeti) by Modular Learning
37
- * [Foundation](https://github.com/drewsymo/Foundation) by Drewsymo
38
- * [required+ Themes](http://themes.required.ch/) by required+
33
+ * [Reverie](http://themefortress.com/reverie/) by Zhen using Foundation version 4
34
+ * [Corner Stone](https://github.com/thewirelessguy/cornerstone) by [Stephen Mullen](https://twitter.com/wirelessguyuk) using Foundation version v4.09
35
+ * [required+ Themes](http://themes.required.ch/) by required+ using Foundation version 3.25
36
+ * [Yeti](https://github.com/modlearning/Yeti) by Modular Learning using Foundation version 3.2
37
+ * [Starter Theme](https://github.com/drewsymo/Foundation) by Drew Morris using Foundation version 3
38
+ * [WP-Foundation](http://320press.com/wp-foundation/features/) by 320press using Foundation version 3
39
39
 
40
40
  Joomla
41
41
 
@@ -68,6 +68,9 @@ Middleman
68
68
 
69
69
  * [Middleman Skeleton](https://github.com/axyz/middleman-zurb-foundation) by [Andrea Moretti](https://twitter.com/axyz)
70
70
 
71
+ Magento
72
+ * [Magento & Foundation](https://github.com/nandroid/MagentoFoundation) by Nandroid
73
+
71
74
  Python
72
75
  * [Pyramid Scaffold](https://github.com/ppinette/pyramid_foundation) by Parker Pinette
73
76
 
@@ -110,6 +113,7 @@ Ruby on Rails Sass Gems
110
113
 
111
114
  Yeoman Generator
112
115
 
116
+ * [Yeoman 1.0-Foundation 4](https://github.com/lkbgift/foundation4-yeoman) by [Leonard Bogdonoff](http://twitter.com/lkbcc)
113
117
  * [Yeoman-Foundation](https://npmjs.org/package/yeoman-foundation) by Vincent Mac
114
118
 
115
119
 
@@ -1,3 +1,23 @@
1
+ ### 4.1.5- April 26, 2013
2
+ * Add support for `indexOf` in legacy browsers
3
+
4
+ ### 4.1.4- April 26, 2013
5
+ * Fixes invalid Rails generator path
6
+
7
+ ### 4.1.3- April 25, 2013
8
+
9
+ * Added _variables.scss, which holds default variables and creates the settings file for the gem
10
+ * Rearranged a few mixins in order to remove the confusing _foundation-globals.scss file
11
+ * If you are getting errors after upgrade, just remove any reference to this file...
12
+ * Added reference to $base-line-height variables for those using Compass vertical rhythm
13
+ * Fixed issue with invalid css coming through into buttons
14
+ * Various bug fixes
15
+ * Adds support for infinite section nesting
16
+ * Updated top bar styles
17
+ * Support for data-options in Reveal
18
+
19
+ You can compare the commits [here](https://github.com/zurb/foundation/compare/v4.1.2...v4.1.3).
20
+
1
21
  ### 4.1.2- April 10, 2013
2
22
 
3
23
  * Added Joyride expose functionality
@@ -9,7 +29,6 @@
9
29
  * Fixed Rails generator bug when using CoffeeScript files
10
30
  * Added `reflow` to Section js plugin to support dynamic content
11
31
 
12
-
13
32
  You can compare the commits [here](https://github.com/zurb/foundation/compare/v4.1.1...v4.1.2).
14
33
 
15
34
  ### 4.1.1- April 2, 2013
@@ -33,8 +52,8 @@ You can compare the commits [here](https://github.com/zurb/foundation/compare/v4
33
52
  * Changed blockgrid to use clearfix instead of overflow.
34
53
  * Fixed nested row margin inside forms.
35
54
  * Fixed data_options function that caused booleans to be interpreted as numbers.
36
- * Tabs no longer automatically convert to accordion on desktop.
37
- * Sections with accordion class always remain accordions and sections with tab class always remain tabs.
55
+ * Tabs no longer automatically convert to accordion on desktop.
56
+ * Sections with accordion class always remain accordions and sections with tab class always remain tabs.
38
57
  * Vertical and horizontal navigation elements still become accordions on mobile
39
58
 
40
59
  You can compare the commits [here](https://github.com/zurb/foundation/compare/v4.0.7...v4.0.8).
@@ -1,4 +1,4 @@
1
- <div class="docs section-container accordion" data-section data-options="deep_linking: false">
1
+ <div class="docs section-container accordion" data-section data-options="one_up: false">
2
2
  <section class="section <%= @side_nav == 'using' ? 'active': '' %>">
3
3
  <p class="title"><a href="#">Using Foundation</a></p>
4
4
  <div class="content">
@@ -78,6 +78,8 @@
78
78
  <li><a class="<%= @page_title == 'Tables' ? 'active': '' %>" href="tables.html">Tables</a></li>
79
79
  <li><a class="<%= @page_title == 'Thumbnails' ? 'active': '' %>" href="thumbnails.html">Thumbnails</a></li>
80
80
  <li><a class="<%= @page_title == 'Flex Video' ? 'active': '' %>" href="flex-video.html">Flex Video</a></li>
81
+ <li class="divider"></li>
82
+ <li><a target="_blank" style="font-style: italic" class="<%= @page_title == 'Kitchen Sink' ? 'active': '' %>" href="kitchen-sink.html">Kitchen Sink</a></li>
81
83
  </ul>
82
84
  </div>
83
85
  </section>
@@ -1,4 +1,4 @@
1
- <div class="docs section-container accordion" data-section data-options="deep_linking: false">
1
+ <div class="docs section-container accordion" data-section data-options="one_up: false">
2
2
  <section class="section <%= @side_nav == 'using' ? 'active': '' %>">
3
3
  <p class="title"><a href="#">Using Foundation</a></p>
4
4
  <div class="content">
@@ -78,6 +78,8 @@
78
78
  <li><a href="components/tables.html">Tables</a></li>
79
79
  <li><a href="components/thumbnails.html">Thumbnails</a></li>
80
80
  <li><a href="components/flex-video.html">Flex Video</a></li>
81
+ <li class="divider"></li>
82
+ <li><a target="_blank" style="font-style: italic" href="components/kitchen-sink.html">Kitchen Sink</a></li>
81
83
  </ul>
82
84
  </div>
83
85
  </section>
@@ -31,7 +31,15 @@
31
31
  <li><a href="#">Features</a></li>
32
32
  <li class="unavailable"><a href="#">Gene Splicing</a></li>
33
33
  <li class="current"><a href="#">Cloning</a></li>
34
- </ul>', :html %>
34
+ </ul>
35
+
36
+ <!-- You can also use this markup -->
37
+ <nav class="breadcrumbs">
38
+ <a href="#">Home</a>
39
+ <a href="#">Features</a>
40
+ <a class="unavailable" href="#">Gene Splicing</a>
41
+ <a class="current" href="#">Cloning</a>
42
+ </nav>', :html %>
35
43
 
36
44
  <p>For these styles to come across, make sure you have the <strong>default Foundation CSS package</strong> or that you've selected <strong>breadcrumbs from a custom package</strong>. These should be linked up following our default <a href="../index.html">HTML page structure</a>.</p>
37
45
 
@@ -415,11 +415,11 @@ $is-button: false
415
415
  $form-spacing: emCalc(16px);
416
416
 
417
417
  /* We use these to style the labels in different ways */
418
- $label-pointer: pointer;
419
- $label-font-size: emCalc(14px);
420
- $label-font-weight: 500;
421
- $label-font-color: lighten(#000, 30%);
422
- $label-bottom-margin: emCalc(3px);
418
+ $form-label-pointer: pointer;
419
+ $form-label-font-size: emCalc(14px);
420
+ $form-label-font-weight: 500;
421
+ $form-label-font-color: lighten(#000, 30%);
422
+ $form-label-bottom-margin: emCalc(3px);
423
423
  $input-font-color: rgba(0,0,0,0.75);
424
424
  $input-font-size: emCalc(14px);
425
425
  $input-bg-color: #fff;
@@ -430,6 +430,7 @@ $input-border-style: solid;
430
430
  $input-border-width: 1px;
431
431
  $input-disabled-bg: #ddd;
432
432
  $input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
433
+ $input-include-glowing-effect: true;
433
434
 
434
435
  /* We use these to style the fieldset border and spacing. */
435
436
  $fieldset-border-style: solid;
@@ -459,6 +460,11 @@ $input-error-message-font-size: emCalc(12px);
459
460
  $input-error-message-font-weight: bold;
460
461
  $input-error-message-font-color: #fff;
461
462
  $input-error-message-font-color-alt: #333;
463
+
464
+ +/* We use this to style the glowing effect of inputs when focused */
465
+ +$glowing-effect-fade-time: 0.45s !default;
466
+ +$glowing-effect-color: $input-focus-border-color !default;
467
+
462
468
  ', :css %>
463
469
 
464
470
  <p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_foundation-global.scss</strong>.</p>
@@ -468,4 +474,4 @@ $input-error-message-font-color-alt: #333;
468
474
  <div class="large-3 pull-9 columns">
469
475
  <%= render "_sidebar-components.html.erb" %>
470
476
  </div>
471
- </div>
477
+ </div>
@@ -273,7 +273,7 @@
273
273
  <hr>
274
274
 
275
275
  <h3>Building With Mixins</h3>
276
- <p>If you are keen on SCSS and use it for your Foundation projects, you have access to a grid mixins that will let you layout the page without using presentational classes that you don't want. You can create your own set of classes or even create your own grid. Setting any of the options to 'false' will leave off those styles, giving you lots of control over your CSS output. Here's an example structure you might use with the grid mixin:</p>
276
+ <p>If you are keen on SCSS and use it for your Foundation projects, you have access to grid mixins that will let you layout the page without using presentational classes that you don't want. You can create your own set of classes or even create your own grid. Setting any of the options to 'false' will leave off those styles, giving you lots of control over your CSS output. Here's an example structure you might use with the grid mixin:</p>
277
277
 
278
278
  <h5>Basic Mixin Usage</h5>
279
279
  <%= code_example '
@@ -347,8 +347,8 @@ $float: left
347
347
 
348
348
  <h5>Default SCSS Variables</h5>
349
349
  <%= code_example '
350
- $row-width: 62.5em !default;
351
- $column-gutter: 1.875em !default;
350
+ $row-width: emCalc(1000px) !default;
351
+ $column-gutter: emCalc(30px) !default;
352
352
  $total-columns: 12 !default;
353
353
  ', :css %>
354
354
 
@@ -841,7 +841,7 @@
841
841
  <p>Get the details right by styling Joyride with a custom stylesheet!</p>
842
842
  </li>
843
843
  <li data-button="Next">
844
- <h4>Stop #4</h4>
844
+ <h4>Stop #3</h4>
845
845
  <p>It works as a modal too!</p>
846
846
  </li>
847
847
  </ol>
@@ -854,6 +854,12 @@
854
854
  <p><a href="#" data-reveal-id="secondModal" class="secondary button">Second Modal…</a></p>
855
855
  <a class="close-reveal-modal">&#215;</a>
856
856
  </div>
857
+ <div id="secondModal" class="reveal-modal">
858
+ <h2>This is a second modal.</h2>
859
+ <p>Reveal makes these very easy to summon and dismiss. The close button is simply an anchor with a unicode character icon and a class of <code>close-reveal-modal</code>. Clicking anywhere outside the modal will also dismiss it.</p>
860
+ <p>Finally, if your modal summons another Reveal modal, the plugin will handle that for you gracefully.</p>
861
+ <a class="close-reveal-modal">&#215;</a>
862
+ </div>
857
863
  <div id="videoModal" class="reveal-modal large">
858
864
  <h2>This modal has video</h2>
859
865
  <div class="flex-video">
@@ -86,7 +86,9 @@ $label-radius: $global-radius;
86
86
 
87
87
  /* We use these to style the label text */
88
88
  $label-font-sizing: emCalc(14px);
89
- $label-font-weight: bold;', :css %>
89
+ $label-font-weight: bold;
90
+ $label-font-color: #333;
91
+ $label-font-color-alt: #fff;', :css %>
90
92
 
91
93
  <p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_foundation-global.scss</strong>.</p>
92
94
 
@@ -11,8 +11,8 @@
11
11
 
12
12
  <div class="row">
13
13
  <div class="large-3 columns">
14
- <div class="section-container vertical-nav" data-section="vertical-nav">
15
- <section class="section">
14
+ <div class="section-container vertical-nav" data-section="vertical-nav" data-options="one_up: false;">
15
+ <section>
16
16
  <p class="title"><a href="#">Section 1</a></p>
17
17
  <div class="content">
18
18
  <ul class="side-nav">
@@ -24,7 +24,7 @@
24
24
  </ul>
25
25
  </div>
26
26
  </section>
27
- <section class="section">
27
+ <section>
28
28
  <p class="title"><a href="#">Section 2</a></p>
29
29
  <div class="content">
30
30
  <ul class="side-nav">
@@ -39,8 +39,8 @@
39
39
  </div>
40
40
  </div>
41
41
  <div class="large-9 columns">
42
- <div class="section-container horizontal-nav" data-section="horizontal-nav" >
43
- <section class="section">
42
+ <div class="section-container horizontal-nav" data-section="horizontal-nav" data-options="one_up: false;">
43
+ <section>
44
44
  <p class="title"><a href="#">Section 1</a></p>
45
45
  <div class="content">
46
46
  <ul class="side-nav">
@@ -52,7 +52,7 @@
52
52
  </ul>
53
53
  </div>
54
54
  </section>
55
- <section class="section">
55
+ <section>
56
56
  <p class="title"><a href="#">Section 2</a></p>
57
57
  <div class="content">
58
58
  <ul class="side-nav">
@@ -65,7 +65,7 @@
65
65
  </div>
66
66
  </section>
67
67
  </div>
68
- <div class="section-container auto" data-section>
68
+ <div class="section-container auto" data-section data-options="deep_linking: true; one_up: false">
69
69
  <section>
70
70
  <p class="title" data-section-title><a href="#panel1">Section 1</a></p>
71
71
  <div class="content" data-slug="panel1" data-section-content>
@@ -193,6 +193,25 @@
193
193
  </section>
194
194
  </div>', :html %>
195
195
 
196
+ <h6>Vertical Tabs</h6>
197
+ <p>Adding a <code>vertical-tabs</code> class to the section container and setting <code>data-section="vertical-tabs"</code> will enable tabs on both small and large screens.</p>
198
+
199
+ <%= code_example '
200
+ <div class="section-container vertical-tabs" data-section="vertical-tabs">
201
+ <section>
202
+ <p class="title" data-section-title><a href="#">Section 1</a></p>
203
+ <div class="content" data-section-content>
204
+ <p>Content of section 1.</p>
205
+ </div>
206
+ </section>
207
+ <section>
208
+ <p class="title" data-section-title><a href="#">Section 2</a></p>
209
+ <div class="content" data-section-content>
210
+ <p>Content of section 2.</p>
211
+ </div>
212
+ </section>
213
+ </div>', :html %>
214
+
196
215
  <h6>Vertical Nav/Accordion</h6>
197
216
  <p>Adding a <code>vertical-nav</code> class to the section container will enable vertical navigation elements on large screens and show an accordion on small screens.</p>
198
217
 
@@ -203,7 +222,7 @@
203
222
  <%= code_example '
204
223
  <div class="row">
205
224
  <div class="large-3 columns">
206
- <div class="section-container vertical-nav" data-section="vertical-nav">
225
+ <div class="section-container vertical-nav" data-section="vertical-nav" data-options="one_up: false;">
207
226
  <section>
208
227
  <p class="title" data-section-title><a href="#">Section 1</a></p>
209
228
  <div class="content" data-section-content>
@@ -243,7 +262,7 @@
243
262
  <p>Use the <code>side-nav</code> class on the list to apply the Foundation navigation styles</p>
244
263
 
245
264
  <%= code_example '
246
- <div class="section-container horizontal-nav" data-section="horizontal-nav">
265
+ <div class="section-container horizontal-nav" data-section="horizontal-nav" data-options="one_up: false;">
247
266
  <section>
248
267
  <p class="title" data-section-title><a href="#">Section 1</a></p>
249
268
  <div class="content" data-section-content>
@@ -291,7 +310,69 @@
291
310
  </section>
292
311
  </div>', :html %>
293
312
 
294
- <p class="panel"><strong>Note:</strong> The <code>section</code> element can be replaced with a <code>div.section</code> element if you do not want to use HTML5 elements.</p>
313
+ <h6>Nested Sections</h6>
314
+ <p>You can infinitely nest Section elements to create more complicated Section layouts.</p>
315
+
316
+ <div class="section-container auto" data-section>
317
+ <section>
318
+ <p class="title"><a href="#section1">ROOT: Section 1</a></p>
319
+ <div class="content" data-slug="section1">
320
+ <p>Content 1 Summary Paragraphs</p>
321
+ <div class="section-container auto" data-section>
322
+ <section>
323
+ <p class="title"><a href="#section1-1">DETAIL: #1</a></p>
324
+ <div class="content">
325
+ <p>Detail awesome stuff!</p>
326
+ </div>
327
+ </section>
328
+ <section>
329
+ <p class="title"><a href="#section1-2">DETAIL: #2</a></p>
330
+ <div class="content">
331
+ <p>Detail awesome stuff numeroe duo.</p>
332
+ </div>
333
+ </section>
334
+ </div>
335
+ </div>
336
+ </section>
337
+ <section>
338
+ <p class="title"><a href="#section2">ROOT: Section 2</a></p>
339
+ <div class="content" data-slug="section2">
340
+ <p>Content 2</p>
341
+ </div>
342
+ </section>
343
+ </div>
344
+ <%= code_example '
345
+ <div class="section-container auto" data-section>
346
+ <section>
347
+ <p class="title"><a href="#section1">ROOT: Section 1</a></p>
348
+ <div class="content" data-slug="section1">
349
+ <p>Content 1 Summary Paragraphs</p>
350
+ <div class="section-container auto" data-section>
351
+ <section>
352
+ <p class="title"><a href="#section1-1">DETAIL: #1</a></p>
353
+ <div class="content">
354
+ <p>Detail awesome stuff!</p>
355
+ </div>
356
+ </section>
357
+ <section>
358
+ <p class="title"><a href="#section1-2">DETAIL: #2</a></p>
359
+ <div class="content">
360
+ <p>Detail awesome stuff numeroe duo.</p>
361
+ </div>
362
+ </section>
363
+ </div>
364
+ </div>
365
+ </section>
366
+ <section>
367
+ <p class="title"><a href="#section2">ROOT: Section 2</a></p>
368
+ <div class="content" data-slug="section2">
369
+ <p>Content 2</p>
370
+ </div>
371
+ </section>
372
+ </div>
373
+ ', :html %>
374
+
375
+ <p><strong>Note:</strong> The <code>section</code> element can be replaced with a <code>div.section</code> element if you do not want to use HTML5 elements.</p>
295
376
 
296
377
  <hr>
297
378
 
@@ -385,6 +466,14 @@ $section-bottom-margin: emCalc(20px);
385
466
  </section>
386
467
  </div>
387
468
  ', :html %>
469
+
470
+ <p><strong>Note:</strong> If you are using Sections in a Modal, or they are being loaded via AJAX, or they are hidden when Foundation is initialized, you will need to reflow the sections to get tabs to display properly:</p>
471
+
472
+ <%= code_example "
473
+ $('#myModal').on('opened', function () {
474
+ $(this).foundation('section', 'reflow');
475
+ });
476
+ ", :json %>
388
477
 
389
478
  <h5>Optional JavaScript Configuration</h5>
390
479
 
@@ -16,7 +16,7 @@
16
16
  <h1><a href="/">Top Bar</a></h1>
17
17
  </li>
18
18
  <!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
19
- <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
19
+ <li class="toggle-topbar menu-icon"><a href=""><span>Menu</span></a></li>
20
20
  </ul>
21
21
 
22
22
  <section class="top-bar-section">
@@ -80,7 +80,7 @@
80
80
  <p>The top bar is a pretty complex piece of magical UI goodness, which makes it really difficult to create a mixin from it. We rely on many presentational classes to accomplish the styles and there's a lot happening in the JS.</p>
81
81
 
82
82
  <h5>Basic Needs</h5>
83
- <p>The top bar has four main elements, three of which are needed for proper functionality: <code>ul.title-area</code>, one of the section <code>ul class="right/left</code> elements and the <code>li.toggle-topbar</code> element that will expand the menu in the mobile layout. You can leave out the li class="name" as long as you include the .toggle-topbar element.</p>
83
+ <p>The top bar has four main elements, three of which are needed for proper functionality: <code>ul.title-area</code>, a <code>ul class="right/left</code> element enclosed in a <code>section class="top-bar-section"</code>, and the <code>li.toggle-topbar</code> element that will expand the menu in the mobile layout. You can leave out the li class="name" as long as you include the .toggle-topbar element.</p>
84
84
 
85
85
  <h5>Positioning the Bar</h5>
86
86
  <p>The top bar is built with a single <code>nav</code> element with a class of <code>top-bar</code>. It will take on full-browser width by default. To make the top bar stay fixed as you scroll, wrap it in <code>div class="fixed"</code>. If you want your navigation to be set to your grid width, wrap it in <code>div class="contain-to-grid"</code>. You may use <code>fixed</code> and <code>contain-to-grid</code> together.</p>
@@ -151,6 +151,21 @@
151
151
  </div>
152
152
 
153
153
  <div class="row">
154
+ <div class="large-4 columns">
155
+ <h6>ul.no-bullet</h6>
156
+ <ul class="no-bullet">
157
+ <li>List item with a much longer description or more content.</li>
158
+ <li>List item</li>
159
+ <li>List item
160
+ <ul>
161
+ <li>Nested List Item</li>
162
+ <li>Nested List Item</li>
163
+ <li>Nested List Item</li>
164
+ </ul>
165
+ </li>
166
+ <li>List item</li>
167
+ </ul>
168
+ </div>
154
169
  <div class="large-4 columns">
155
170
  <h6>Ordered Lists</h6>
156
171
  <ol>
@@ -165,8 +180,8 @@
165
180
  <li>List Item 3</li>
166
181
  </ol>
167
182
  </div>
168
- <div class="large-8 columns">
169
- <h6>Definition Lists</h6>
183
+ <div class="large-4 columns">
184
+ <h6>Defition Lists</h6>
170
185
  <dl>
171
186
  <dt>Definition Title</dt>
172
187
  <dd>Definition Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam id dolor id nibh ultricies vehicula ut id elit.</dd>
@@ -191,6 +206,20 @@
191
206
  <li>List item</li>
192
207
  </ul>
193
208
 
209
+ <!-- Sometimes you don\'t want bullets at all -->
210
+ <ul class="no-bullet">
211
+ <li>List item with a much longer description or more content.</li>
212
+ <li>List item</li>
213
+ <li>List item
214
+ <ul>
215
+ <li>Nested List Item</li>
216
+ <li>Nested List Item</li>
217
+ <li>Nested List Item</li>
218
+ </ul>
219
+ </li>
220
+ <li>List item</li>
221
+ </ul>
222
+
194
223
  <!-- Ordered lists are great for lists that need order, duh -->
195
224
  <ol>
196
225
  <li>List Item 1</li>