zurb-foundation 4.0.4 → 4.0.5

Sign up to get free protection for your applications and to get access to all the features.
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
data/CHANGELOG.md CHANGED
@@ -1,7 +1,31 @@
1
1
  # Changelog
2
- We'll keep you up to date with what we've released so you at least have a gist of what goes into each update. For the most part, we'll try to list things out as detailed as we see necessary.
3
-
4
2
  ---
3
+
4
+ ### 4.0.5- March 8, 2013
5
+ We're currently working on patch fixes for various parts of Foundation. We'll add to this list as we go up until release.
6
+ * Custom classes added to custom forms now carry through to JS.
7
+ * Added `.horizontal-nav` to `foundation.section.js`.
8
+ * Fixed variables that weren't being inherited properly.
9
+ * Fixed a joyride mobile background issue.
10
+ * Updated Reveal docs to match 4.0.4 functionality.
11
+ * Updated to Zepto 1.0.
12
+ * Fixed bugs with visibility classes.
13
+ * Updated block-grid nth-of-type clear fix so that it actually works.
14
+ * All size block grids now have the same spacing.
15
+ * Made images `display: inline-block` by default to remove gap and not screw up layouts.
16
+ * Progress bars respect their color variables instead of global.
17
+ * Added variable for progress bar background color.
18
+ * Fixed inconsistency between side margins on unordered and ordered lists.
19
+ * Made it so you can set `custom_back_text` variable in top-bar to control if the back link is generic or specific.
20
+ * Updated visibility classes to work properly with table display properties.
21
+ * Helper classes like `.right, .left` now have `!important` so they don't get overriden on accident.
22
+ * Added a page to the docs that explains our use of [media queries](http://foundation.zurb.com/docs/media-queries.html).
23
+ * Removed default outline on a:focus elements that normalize adds.
24
+ * Fixed bug with custom checkboxes not clickable from the `<span>`.
25
+ * Added docs about using Sass standalone with Foundation.
26
+
27
+ You can compare the commits [here](https://github.com/zurb/foundation/compare/v4.0.4...master).
28
+
5
29
  ### 4.0.4
6
30
  This patch fixes various bugs that have been submitted since release. We'll be more specific with changelog updates going forward.
7
31
 
data/CONTRIBUTING.md CHANGED
@@ -2,14 +2,6 @@
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
- ## Testing
6
-
7
- ### Styles
8
-
9
- Go into the test/ directory. Run `bundle exec compass compile` or `bundle exec compass watch` if you're making changes and want to see them reflected on-the-fly.
10
-
11
- Want to add a feature to Foundation? Either update one of the test/*.html files or copy `test/template.html` to a new file, add your markup to it and check it in.
12
-
13
5
  ### JavaScript
14
6
 
15
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/`.
data/Gemfile.lock CHANGED
@@ -1,8 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zurb-foundation (4.0.4)
5
- rake
4
+ zurb-foundation (4.0.5)
6
5
  sass (>= 3.2.0)
7
6
 
8
7
  GEM
@@ -16,4 +15,5 @@ PLATFORMS
16
15
  x86-mingw32
17
16
 
18
17
  DEPENDENCIES
18
+ rake
19
19
  zurb-foundation!
@@ -7,6 +7,7 @@
7
7
  <li><a href="../javascript.html">Javascript</a></li>
8
8
  <li><a href="../sass.html">Sass</a></li>
9
9
  <li><a href="../rails.html">Rails</a></li>
10
+ <li><a href="../media-queries.html">Media Queries</a></li>
10
11
  <li><a class="<%= @page_title == 'Visibility Classes' ? 'active': '' %>" href="visibility.html">Visibility Classes</a></li>
11
12
  </ul>
12
13
  </div>
@@ -7,6 +7,7 @@
7
7
  <li><a class="<%= @page_title == 'Javascript' ? 'active': '' %>" href="javascript.html">Javascript</a></li>
8
8
  <li><a class="<%= @page_title == 'Sass' ? 'active': '' %>" href="sass.html">Sass</a></li>
9
9
  <li><a class="<%= @page_title == 'Rails' ? 'active': '' %>" href="rails.html">Rails</a></li>
10
+ <li><a class="<%= @page_title == 'Media Queries' ? 'active': '' %>" href="media-queries.html">Media Queries</a></li>
10
11
  <li><a href="components/visibility.html">Visibility Classes</a></li>
11
12
  </ul>
12
13
  </div>
@@ -10,7 +10,35 @@
10
10
 
11
11
  <h4 class="subheader">We'll keep you up to date with what we've released so you at least have a gist of what goes into each update. For the most part, we'll try to list things out as detailed as we see necessary.</h4>
12
12
 
13
- <hr />
13
+ <hr>
14
+
15
+ <h5>4.0.5&mdash; March 8, 2013</h5>
16
+ <p>We're currently working on patch fixes for various parts of Foundation. We'll add to this list as we go up until release.</p>
17
+ <ul class="disc">
18
+ <li>Custom classes added to custom forms now carry through to JS.</li>
19
+ <li>Added <kbd>.horizontal-nav</kbd> to <kbd>foundation.section.js</kbd>.</li>
20
+ <li>Fixed variables that weren't being inherited properly.</li>
21
+ <li>Fixed a joyride mobile background issue.</li>
22
+ <li>Updated Reveal docs to match 4.0.4 functionality.</li>
23
+ <li>Updated to Zepto 1.0.</li>
24
+ <li>Fixed bugs with visibility classes.</li>
25
+ <li>Updated block-grid nth-of-type clear fix so that it actually works.</li>
26
+ <li>All size block grids now have the same spacing.</li>
27
+ <li>Made images <kbd>display: inline-block</kbd> by default to remove gap and not screw up layouts.</li>
28
+ <li>Progress bars respect their color variables instead of global.</li>
29
+ <li>Added variable for progress bar background color.</li>
30
+ <li>Fixed inconsistency between side margins on unordered and ordered lists.</li>
31
+ <li>Made it so you can set <kbd>custom_back_text</kbd> variable in top-bar to control if the back link is generic or specific.</li>
32
+ <li>Updated visibility classes to work properly with table display properties.</li>
33
+ <li>Helper classes like <kbd>.right, .left</kbd> now have <kbd>!important</kbd> so they don't get overriden on accident.</li>
34
+ <li>Added a page to the docs that explains our use of <a href="http://foundation.zurb.com/docs/media-queries.html">media queries</a>.</li>
35
+ <li>Removed default outline on a:focus elements that normalize adds.</li>
36
+ <li>Fixed bug with custom checkboxes not clickable from the <kbd>&lt;span&gt;</kbd>.</li>
37
+ <li>Added docs about using Sass standalone with Foundation.</li>
38
+ </ul>
39
+ <p>You can compare the commits <a href="https://github.com/zurb/foundation/compare/v4.0.4...master">here</a>.</p>
40
+
41
+ <hr>
14
42
 
15
43
  <h5>4.0.4</h5>
16
44
  <p>This patch fixes various bugs that have been submitted since release. We'll be more specific with changelog updates going forward.</p>
@@ -9,7 +9,7 @@
9
9
  <h2><%= @page_title %></h2>
10
10
  <h4 class="subheader">Block grids give you a way to evenly split contents of a list within the grid. If you wanted to create a row of 5 images or paragraphs that need to stay evenly spaced no matter the screen size, the block grid is for you.</h4>
11
11
 
12
- <ul class="small-block-grid-2 large-block-grid-5">
12
+ <ul class="small-block-grid-2 large-block-grid-4">
13
13
  <li><img src="../img/demos/demo1.jpg"></li>
14
14
  <li><img src="../img/demos/demo2.jpg"></li>
15
15
  <li><img src="../img/demos/demo3.jpg"></li>
@@ -75,7 +75,7 @@
75
75
 
76
76
  <%= code_example '
77
77
  /* Mixin and configurable options */
78
- .your-class-name { @import block-grid($per-row, $spacing, $base-styles); }
78
+ .your-class-name { @include block-grid($per-row, $spacing, $base-styles); }
79
79
 
80
80
  /* This controls how many elements will be on each row of the block grid. */
81
81
  /* Set this to whatever number you need, up to the max allowed in the variable */
@@ -97,6 +97,15 @@ $base-style: true
97
97
  <li><img src="../img/demos/demo5.jpg"></li>
98
98
  </ul>
99
99
 
100
+ <h5>Clearing Block Grid Rows</h5>
101
+ <p>We have this built into the CSS, but you'll need to add a bit of code if you want your block grid to change layout between breakpoints. If you don't use this, it will inherit whatever you put in the smallest media query. This code looks for the <code>n+1</code> of the grid so that it clears properly. That code looks like this:</p>
102
+
103
+ <%= code_example '
104
+ .your-small-class-name > li { clear: none !important; }
105
+ ', :css %>
106
+
107
+ <p><strong>Note:</strong> If you are using the same class across breakpoints, your mixin should override this and you won't need it. If you want to control the layout using different classes, use the above snippet.</p>
108
+
100
109
  <h5>Available SCSS Variables</h5>
101
110
 
102
111
  <%= code_example '
@@ -138,7 +138,7 @@ $clearing-carousel-thumb-active-border: 4px solid rgb(255,255,255);
138
138
  {
139
139
  // specify the classes or IDs will close clearing when clicked.
140
140
  close_selectors : '.clearing-close'
141
- }", :json %>
141
+ }", :js %>
142
142
 
143
143
  </div>
144
144
  </div>
@@ -17,14 +17,14 @@
17
17
  <form class="custom">
18
18
  <div class="row">
19
19
  <div class="large-4 columns">
20
- <label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;"><span class="custom radio"></span> Radio Button 1</label>
21
- <label for="radio2"><input name="radio1" type="radio" id="radio2" style="display:none;"><span class="custom radio checked"></span> Radio Button 2</label>
22
- <label for="radio3"><input name="radio1" type="radio" id="radio3" disabled style="display:none;"><span class="custom radio"></span> Radio Button 3</label>
20
+ <label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;" CHECKED><span class="custom radio checked"></span> Radio Button 1</label>
21
+ <label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;"><span class="custom radio"></span> Radio Button 2</label>
22
+ <label for="radio1"><input name="radio1" type="radio" id="radio1" disabled style="display:none;"><span class="custom radio"></span> Radio Button 3</label>
23
23
  </div>
24
24
  <div class="large-4 columns">
25
25
  <label for="checkbox1"><input type="checkbox" id="checkbox1" style="display: none;"><span class="custom checkbox"></span> Label for Checkbox</label>
26
- <label for="checkbox2"><input type="checkbox" id="checkbox2" checked style="display: none;"><span class="custom checkbox checked"></span> Label for Checkbox</label>
27
- <label for="checkbox3"><input type="checkbox" CHECKED id="checkbox3"> Label for Checkbox</label>
26
+ <label for="checkbox2"><input type="checkbox" id="checkbox2" CHECKED style="display: none;"><span class="custom checkbox checked"></span> Label for Checkbox</label>
27
+ <label for="checkbox3"><input type="checkbox" CHECKED id="checkbox3" style="display: none;"><span class="custom checkbox checked"></span> Label for Checkbox</label>
28
28
  </div>
29
29
  <div class="large-4 columns">
30
30
  <label for="customDropdown1">Medium Example</label>
@@ -46,18 +46,18 @@
46
46
  <form class="custom">
47
47
  <div class="row">
48
48
  <div class="large-4 columns">
49
- <label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;"><span class="custom radio"></span> Radio Button 1</label>
50
- <label for="radio2"><input name="radio1" type="radio" id="radio2" style="display:none;"><span class="custom radio checked"></span> Radio Button 2</label>
51
- <label for="radio3"><input name="radio1" type="radio" id="radio3" disabled style="display:none;"><span class="custom radio"></span> Radio Button 3</label>
49
+ <label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;" CHECKED><span class="custom radio checked"></span> Radio Button 1</label>
50
+ <label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;"><span class="custom radio"></span> Radio Button 2</label>
51
+ <label for="radio1"><input name="radio1" type="radio" id="radio1" disabled style="display:none;"><span class="custom radio"></span> Radio Button 3</label>
52
52
  </div>
53
53
  <div class="large-4 columns">
54
54
  <label for="checkbox1"><input type="checkbox" id="checkbox1" style="display: none;"><span class="custom checkbox"></span> Label for Checkbox</label>
55
- <label for="checkbox2"><input type="checkbox" id="checkbox2" checked style="display: none;"><span class="custom checkbox checked"></span> Label for Checkbox</label>
56
- <label for="checkbox3"><input type="checkbox" CHECKED id="checkbox3"> Label for Checkbox</label>
55
+ <label for="checkbox2"><input type="checkbox" id="checkbox2" CHECKED style="display: none;"><span class="custom checkbox checked"></span> Label for Checkbox</label>
56
+ <label for="checkbox3"><input type="checkbox" CHECKED id="checkbox3" style="display: none;"><span class="custom checkbox checked"></span> Label for Checkbox</label>
57
57
  </div>
58
58
  <div class="large-4 columns">
59
- <label for="customDropdown">Medium Example</label>
60
- <select id="customDropdown" class="medium">
59
+ <label for="customDropdown1">Medium Example</label>
60
+ <select id="customDropdown1" class="medium">
61
61
  <option DISABLED>This is a dropdown</option>
62
62
  <option>This is another option</option>
63
63
  <option>This is another option too</option>
@@ -111,6 +111,7 @@
111
111
 
112
112
  <h3>Building Custom Selects</h3>
113
113
  <p>Sometimes you need to let people select a single item from a long list of options. This is what <code>&lt;select&gt;</code> elements are for. We've taken these a step further by including our own custom style that looks a lot better than inconsistent browser defaults. You can set any of the <code>&lt;option&gt;</code> elements to <code>&lt;option disabled&gt;</code> to make them unable to select. Custom selects are built like you'd expect:</p>
114
+ <p>For those who may want to apply custom styles to a specific dropdown, any classes on the <code>&lt;select&gt;</code> element will be appended to the generated <code>&lt;div class=&quot;custom dropdown&quot;&gt;</code> element.</p>
114
115
 
115
116
  <%= code_example '
116
117
  <form class="custom">
@@ -294,7 +295,7 @@
294
295
  <%= code_example "
295
296
  {
296
297
  disable_class: 'no-custom'
297
- }", :json %>
298
+ }", :js %>
298
299
 
299
300
  </div>
300
301
  </div>
@@ -154,7 +154,7 @@ $f-dropdown-list-hover-bg: #eeeeee;', :css %>
154
154
  {
155
155
  // specify the class used for active dropdowns
156
156
  activeClass: 'open'
157
- }", :json %>
157
+ }", :js %>
158
158
 
159
159
  </div>
160
160
  </div>
@@ -70,7 +70,7 @@
70
70
 
71
71
  <%= code_example '
72
72
  /* Using the default styles */
73
- .your-class-name { @include flex-video; }', :css %>
73
+ .your-class-name { @include flex-video-container; }', :css %>
74
74
 
75
75
  <h5>Default SCSS Variables</h5>
76
76
 
@@ -127,7 +127,7 @@
127
127
  <hr>
128
128
 
129
129
  <h4>Offsets</h4>
130
- <p>Offsets allow you to create additional space between columns in a row. Like the rest of the grid, they're nestable. You can use classes like <code>.large-offset-1</code> and <code>.small-offset-3</code> to manipulate your column positions in different ways. You can offset up to 11 since you wouldn't even offset a full-width column.</p>
130
+ <p>Offsets allow you to create additional space between columns in a row. Like the rest of the grid, they're nestable. You can use classes like <code>.large-offset-1</code> and <code>.small-offset-3</code> to manipulate your column positions in different ways. You can offset up to 11 since you wouldn't ever offset a full-width column.</p>
131
131
 
132
132
  <%= code_example '
133
133
  <div class="row">
@@ -363,4 +363,4 @@ $total-columns: 12 !default;
363
363
  <div class="large-3 pull-9 columns">
364
364
  <%= render "_sidebar-components.html.erb" %>
365
365
  </div>
366
- </div>
366
+ </div>
@@ -147,7 +147,7 @@ $joyride-screenfill: rgba(0,0,0,0.5);
147
147
  wrapper : '<div class=\"joyride-content-wrapper\"></div>',
148
148
  button : '<a href=\"#\" class=\"small button joyride-next-tip\"></a>'
149
149
  }
150
- }", :json %>
150
+ }", :js %>
151
151
 
152
152
  </div>
153
153
  </div>
@@ -75,7 +75,7 @@
75
75
  {
76
76
  // specify the class used for active sections
77
77
  activeClass: 'active'
78
- }", :json %>
78
+ }", :js %>
79
79
 
80
80
  </div>
81
81
  </div>
@@ -188,6 +188,7 @@
188
188
 
189
189
  <%= code_example '
190
190
  /* We use these to control the caption styles */
191
+ $orbit-container-bg: #f5f5f5;
191
192
  $orbit-caption-bg-old-browser: #000;
192
193
  $orbit-caption-bg-old: rgb(0,0,0);
193
194
  $orbit-caption-bg: rgba(0,0,0,0.6);
@@ -209,6 +210,9 @@ $orbit-bullet-nav-color-active: #222;
209
210
  $orbit-slide-number-bg: rgb(0,0,0);
210
211
  $orbit-slide-number-font-color: #fff;
211
212
  $orbit-slide-number-padding: emCalc(5px);
213
+
214
+ // Margin for when Orbit is stacked on small screens
215
+ $stack-on-small-margin-bottom: emCalc(20px); // Stack on small does not function right now
212
216
  ', :css %>
213
217
 
214
218
  <hr>
@@ -252,7 +256,7 @@ $orbit-slide-number-padding: emCalc(5px);
252
256
  caption_class: 'orbit-caption',
253
257
  active_slide_class: 'active',
254
258
  orbit_transition_class: 'orbit-transitioning'
255
- }", :json %>
259
+ }", :js %>
256
260
 
257
261
  </div>
258
262
  </div>
@@ -7,7 +7,7 @@
7
7
  <div class="row">
8
8
  <div class="large-12 columns">
9
9
  <h2><%= @page_title %></h2>
10
- <h4 class="subheader">If you're making a rockin' marketing site for a subscription-based product, you are likely in need of a pricing table. These fill 100% of the their container and are made from a simple unorderd list.</h4>
10
+ <h4 class="subheader">If you're making a rockin' marketing site for a subscription-based product, you are likely in need of a pricing table. These fill 100% of their container and are made from a simple unordered list.</h4>
11
11
  </div>
12
12
  </div>
13
13
 
@@ -82,7 +82,7 @@
82
82
  .your-pricing-class { @include pricing-table-container;
83
83
  .your-title-class { @include pricing-table-title; }
84
84
  .your-price-class { @include pricing-table-price; }
85
- .your-desc-class { @include pricing-description-title; }
85
+ .your-desc-class { @include pricing-table-description; }
86
86
  .your-bullet-class { @include pricing-table-bullet; }
87
87
  .your-cta-class { @include pricing-table-cta; }
88
88
  }', :css %>
@@ -153,4 +153,4 @@ $price-cta-padding: emCalc(20px) emCalc(20px) 0;', :css %>
153
153
  <div class="large-3 pull-9 columns">
154
154
  <%= render "_sidebar-components.html.erb" %>
155
155
  </div>
156
- </div>
156
+ </div>
@@ -106,6 +106,7 @@ $progress-bar-pad: emCalc(2px);
106
106
  $progress-bar-margin-bottom: emCalc(10px);
107
107
 
108
108
  /* We use these to set the meter colors */
109
+ $progress-bar-color: transparent;
109
110
  $progress-meter-color: $primary-color;
110
111
  $progress-meter-secondary-color: $secondary-color;
111
112
  $progress-meter-success-color: $success-color;
@@ -54,6 +54,10 @@
54
54
  // trigger by event
55
55
  $('a.reveal-link').trigger('click');
56
56
  $('a.close-reveal-modal').trigger('click');
57
+
58
+ // or directly on the modal
59
+ $('#myModal').foundation('reveal', 'open');
60
+ $('#myModal').foundation('reveal', 'close');
57
61
  ", :js %>
58
62
 
59
63
  <hr>
@@ -123,7 +127,7 @@ $reveal-border-color: #666;', :css %>
123
127
  'display': 'none'
124
128
  }
125
129
  }
126
- }", :json %>
130
+ }", :js %>
127
131
 
128
132
  </div>
129
133
  </div>
@@ -39,6 +39,32 @@
39
39
  </div>
40
40
  </div>
41
41
  <div class="large-9 columns">
42
+ <div class="section-container horizontal-nav" data-section data-options="deep_linking: false">
43
+ <section class="section">
44
+ <p class="title"><a href="#">Section 1</a></p>
45
+ <div class="content">
46
+ <ul class="side-nav">
47
+ <li><a href="#">Link 1</a></li>
48
+ <li><a href="#">Link 2</a></li>
49
+ <li><a href="#">Link 3</a></li>
50
+ <li class="divider"></li>
51
+ <li><a href="#">Link 1</a></li>
52
+ </ul>
53
+ </div>
54
+ </section>
55
+ <section class="section">
56
+ <p class="title"><a href="#">Section 2</a></p>
57
+ <div class="content">
58
+ <ul class="side-nav">
59
+ <li><a href="#">Link 1</a></li>
60
+ <li><a href="#">Link 2</a></li>
61
+ <li><a href="#">Link 3</a></li>
62
+ <li class="divider"></li>
63
+ <li><a href="#">Link 1</a></li>
64
+ </ul>
65
+ </div>
66
+ </section>
67
+ </div>
42
68
  <div class="section-container tabs" data-section data-options="deep_linking: true">
43
69
  <section class="section">
44
70
  <p class="title"><a href="#panel1">Section 1</a></p>
@@ -84,7 +110,7 @@
84
110
 
85
111
  <hr>
86
112
 
87
- <h3>Sections Replace Accordion, Tabs &amp; Vertical Nav</h3>
113
+ <h3>Sections Replace Accordion, Tabs, Vertical Nav &amp; Nav Bar</h3>
88
114
  <p>Sections replace a few things that you are used to from Foundation 3. We've taken the accordion, the tabs and the vertical nav and combined them into this really flexible plugin that can handle all of those. The single JS file handles all the interactions, but the classes you add to the element control how it gets rendered and styled across our breakpoint.</p>
89
115
 
90
116
  <hr>
@@ -184,9 +210,45 @@
184
210
  </div>
185
211
  </div>', :html %>
186
212
 
213
+ <h6>Horizontal Nav/Nav Bar</h6>
214
+ <p>Adding a <code>horizontal-nav</code> class to the section container will enable horizontal navigation elements on large screens and show an accordion on small screens.</p>
215
+
216
+ <p>Horizontal navigation is a combination of the tab setting with vertical navigation drop downs.</p>
217
+
218
+ <p>Use the <code>side-nav</code> class on the list to apply the Foundation navigation styles</p>
219
+
220
+ <%= code_example '
221
+ <div class="section-container horizontal-nav" data-section>
222
+ <section class="section">
223
+ <p class="title"><a href="#">Section 1</a></p>
224
+ <div class="content">
225
+ <ul class="side-nav">
226
+ <li><a href="#">Link 1</a></li>
227
+ <li><a href="#">Link 2</a></li>
228
+ <li><a href="#">Link 3</a></li>
229
+ <li class="divider"></li>
230
+ <li><a href="#">Link 1</a></li>
231
+ </ul>
232
+ </div>
233
+ </section>
234
+ <section class="section">
235
+ <p class="title"><a href="#">Section 2</a></p>
236
+ <div class="content">
237
+ <ul class="side-nav">
238
+ <li><a href="#">Link 1</a></li>
239
+ <li><a href="#">Link 2</a></li>
240
+ <li><a href="#">Link 3</a></li>
241
+ <li class="divider"></li>
242
+ <li><a href="#">Link 1</a></li>
243
+ </ul>
244
+ </div>
245
+ </section>
246
+ </div>
247
+ ', :html %>
248
+
187
249
 
188
250
  <h6>Deep Linking</h6>
189
- <p>Set <code>deep-linking</code> to true to enable deep linking to sections of content. Deep linking allows visitors to visit a predefined URL with a hash that points to a particular section of the content. Deep linking also requires a matching <code>data-slug</code> on the content section that the hash shoudl point to, without the pound (&#35;) sign.</p>
251
+ <p>Set <code>deep-linking</code> to true to enable deep linking to sections of content. Deep linking allows visitors to visit a predefined URL with a hash that points to a particular section of the content. Deep linking also requires a matching <code>data-slug</code> on the content section that the hash should point to, without the pound (&#35;) sign.</p>
190
252
 
191
253
  <%= code_example '
192
254
  <div class="section-container" data-section data-options="deep_linking: true">
@@ -282,7 +344,7 @@ $section-bottom-margin: emCalc(20px);
282
344
  deep_linking: false,
283
345
  one_up: true,
284
346
  callback: function (){}
285
- }", :json %>
347
+ }", :js %>
286
348
 
287
349
  </div>
288
350
  </div>
@@ -290,4 +352,4 @@ $section-bottom-margin: emCalc(20px);
290
352
  <div class="large-3 pull-9 columns">
291
353
  <%= render "_sidebar-components.html.erb" %>
292
354
  </div>
293
- </div>
355
+ </div>