zurb-foundation 3.2.5 → 4.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. data/.gitignore +6 -2
  2. data/CHANGELOG.md +1 -26
  3. data/CONTRIBUTING.md +18 -0
  4. data/Gemfile.lock +19 -0
  5. data/Gruntfile.js +27 -0
  6. data/README.md +5 -6
  7. data/{Capfile → docs/Capfile} +0 -1
  8. data/docs/Gemfile +8 -0
  9. data/docs/Gemfile.lock +43 -0
  10. data/docs/Procfile +2 -0
  11. data/docs/README.md +1 -0
  12. data/docs/_sidebar-components.html.erb +109 -0
  13. data/docs/_sidebar.html.erb +109 -0
  14. data/docs/_zurb-jobs.html.erb +5 -0
  15. data/docs/changelog.html.erb +185 -0
  16. data/docs/compile.rb +43 -0
  17. data/docs/components/alert-boxes.html.erb +202 -0
  18. data/docs/components/block-grid.html.erb +118 -0
  19. data/docs/components/breadcrumbs.html.erb +146 -0
  20. data/docs/components/button-groups.html.erb +174 -0
  21. data/docs/components/buttons.html.erb +220 -0
  22. data/docs/components/clearing.html.erb +152 -0
  23. data/docs/components/custom-forms.html.erb +306 -0
  24. data/docs/components/dropdown-buttons.html.erb +233 -0
  25. data/docs/components/dropdown.html.erb +186 -0
  26. data/docs/components/flex-video.html.erb +93 -0
  27. data/docs/components/forms.html.erb +468 -0
  28. data/docs/components/grid.html.erb +355 -0
  29. data/docs/components/inline-lists.html.erb +89 -0
  30. data/docs/components/joyride.html.erb +178 -0
  31. data/docs/components/keystrokes.html.erb +74 -0
  32. data/docs/components/labels.html.erb +98 -0
  33. data/docs/components/magellan.html.erb +84 -0
  34. data/docs/components/orbit.html.erb +262 -0
  35. data/docs/components/pagination.html.erb +181 -0
  36. data/docs/components/panels.html.erb +121 -0
  37. data/docs/components/pricing-tables.html.erb +154 -0
  38. data/docs/components/progress-bars.html.erb +120 -0
  39. data/docs/components/reveal.html.erb +147 -0
  40. data/docs/components/section.html.erb +156 -0
  41. data/docs/components/side-nav.html.erb +122 -0
  42. data/docs/components/split-buttons.html.erb +218 -0
  43. data/docs/components/sub-nav.html.erb +120 -0
  44. data/docs/components/switch.html.erb +288 -0
  45. data/docs/components/tables.html.erb +123 -0
  46. data/docs/components/thumbnails.html.erb +87 -0
  47. data/docs/components/tooltips.html.erb +73 -0
  48. data/docs/components/top-bar.html.erb +219 -0
  49. data/docs/components/type.html.erb +359 -0
  50. data/docs/components/visibility.html.erb +102 -0
  51. data/docs/config.ru +12 -0
  52. data/docs/config/deploy.rb +33 -0
  53. data/docs/controller.rb +43 -0
  54. data/docs/css/_coderay.scss +116 -0
  55. data/docs/css/_settings.scss +1 -0
  56. data/docs/css/docs.scss +174 -0
  57. data/docs/css/normalize.scss +396 -0
  58. data/docs/css/qunit-composite.css +13 -0
  59. data/docs/css/qunit.css +235 -0
  60. data/docs/faq.html.erb +61 -0
  61. data/docs/img/demos/demo1-th.png +0 -0
  62. data/docs/img/demos/demo1.png +0 -0
  63. data/docs/img/demos/demo2-th.png +0 -0
  64. data/docs/img/demos/demo2.png +0 -0
  65. data/docs/img/demos/demo3-th.png +0 -0
  66. data/docs/img/demos/demo3.png +0 -0
  67. data/docs/img/demos/demo4-th.png +0 -0
  68. data/docs/img/demos/demo4.png +0 -0
  69. data/docs/img/demos/demo5-th.png +0 -0
  70. data/docs/img/demos/demo5.png +0 -0
  71. data/docs/index.html.erb +299 -0
  72. data/docs/javascript.html.erb +133 -0
  73. data/docs/js/docs.js +3 -0
  74. data/docs/js/qunit-composite.js +105 -0
  75. data/docs/js/qunit.js +1977 -0
  76. data/docs/js/tests/tabs/simple_tabs.html +57 -0
  77. data/docs/js/tests/tabs/simple_tabs.js +54 -0
  78. data/docs/js/tests/tooltips/tooltips.html +39 -0
  79. data/docs/js/tests/tooltips/tooltips.js +11 -0
  80. data/docs/layout.html.erb +99 -0
  81. data/docs/rails.html.erb +66 -0
  82. data/docs/sass.html.erb +299 -0
  83. data/docs/support.html.erb +134 -0
  84. data/foundation.gemspec +2 -4
  85. data/index.html +3 -23
  86. data/js/foundation/foundation.alerts.js +50 -0
  87. data/js/foundation/foundation.clearing.js +478 -0
  88. data/{vendor/assets/javascripts/foundation/jquery.cookie.js → js/foundation/foundation.cookie.js} +3 -1
  89. data/js/foundation/foundation.dropdown.js +122 -0
  90. data/js/foundation/foundation.forms.js +403 -0
  91. data/js/foundation/foundation.joyride.js +613 -0
  92. data/js/foundation/foundation.js +331 -0
  93. data/js/foundation/foundation.magellan.js +130 -0
  94. data/js/foundation/foundation.orbit.js +355 -0
  95. data/{vendor/assets/javascripts/foundation/jquery.placeholder.js → js/foundation/foundation.placeholder.js} +4 -2
  96. data/js/foundation/foundation.reveal.js +264 -0
  97. data/js/foundation/foundation.section.js +180 -0
  98. data/js/foundation/foundation.tooltips.js +195 -0
  99. data/js/foundation/foundation.topbar.js +187 -0
  100. data/js/foundation/index.js +16 -0
  101. data/{vendor/assets/javascripts/foundation/modernizr.foundation.js → js/vendor/custom.modernizr.js} +0 -0
  102. data/js/vendor/jquery.js +9597 -0
  103. data/js/vendor/zepto.js +1782 -0
  104. data/lib/foundation/engine.rb +8 -1
  105. data/lib/foundation/generators/install_generator.rb +24 -1
  106. data/lib/foundation/generators/templates/application.html.erb +20 -6
  107. data/lib/foundation/generators/templates/application.html.haml +2 -6
  108. data/lib/foundation/generators/templates/application.html.slim +2 -5
  109. data/lib/foundation/version.rb +1 -1
  110. data/lib/zurb-foundation.rb +7 -9
  111. data/package.json +9 -0
  112. data/scss/foundation.scss +42 -15
  113. data/scss/foundation/_foundation-global.scss +226 -0
  114. data/scss/foundation/components/_alert-boxes.scss +106 -0
  115. data/scss/foundation/components/_block-grid.scss +63 -0
  116. data/scss/foundation/components/_breadcrumbs.scss +117 -0
  117. data/scss/foundation/components/_button-groups.scss +59 -0
  118. data/scss/foundation/components/_buttons.scss +217 -0
  119. data/scss/foundation/components/_clearing.scss +209 -0
  120. data/scss/foundation/components/_custom-forms.scss +232 -0
  121. data/scss/foundation/components/_dropdown-buttons.scss +114 -0
  122. data/scss/foundation/components/_dropdown.scss +137 -0
  123. data/scss/foundation/components/_flex-video.scss +45 -0
  124. data/scss/foundation/components/_forms.scss +309 -0
  125. data/scss/foundation/components/_grid.scss +149 -71
  126. data/scss/foundation/components/_inline-lists.scss +47 -0
  127. data/scss/foundation/components/_joyride.scss +193 -0
  128. data/scss/foundation/components/_keystrokes.scss +56 -0
  129. data/scss/foundation/components/_labels.scss +81 -0
  130. data/scss/foundation/components/_magellan.scss +15 -0
  131. data/scss/foundation/components/_orbit.scss +193 -0
  132. data/scss/foundation/components/_pagination.scss +99 -0
  133. data/scss/foundation/components/_panels.scss +76 -0
  134. data/scss/foundation/components/_pricing-tables.scss +130 -0
  135. data/scss/foundation/components/_progress-bars.scss +68 -0
  136. data/scss/foundation/components/_reveal.scss +131 -0
  137. data/scss/foundation/components/_section.scss +194 -0
  138. data/scss/foundation/components/_side-nav.scss +68 -0
  139. data/scss/foundation/components/_split-buttons.scss +159 -0
  140. data/scss/foundation/components/_sub-nav.scss +67 -0
  141. data/scss/foundation/components/_switch.scss +242 -0
  142. data/scss/foundation/components/_tables.scss +80 -0
  143. data/scss/foundation/components/_thumbs.scss +45 -0
  144. data/scss/foundation/components/_tooltips.scss +113 -0
  145. data/scss/foundation/components/_top-bar.scss +443 -0
  146. data/scss/foundation/components/_type.scss +411 -0
  147. data/scss/foundation/components/_visibility.scss +117 -0
  148. data/scss/normalize.scss +396 -0
  149. data/templates/project/config.rb +26 -0
  150. data/templates/project/index.html +28 -43
  151. data/templates/project/manifest.rb +21 -28
  152. data/templates/project/scss/_settings.scss +4 -243
  153. data/templates/project/scss/app.scss +37 -44
  154. data/templates/project/scss/normalize.scss +396 -0
  155. data/test/stylesheets/styles.css +955 -0
  156. metadata +144 -153
  157. data/config/deploy.rb +0 -42
  158. data/lib/foundation/generators/layout_generator.rb +0 -28
  159. data/scss/foundation/_settings.scss +0 -281
  160. data/scss/foundation/common/_base.scss +0 -4
  161. data/scss/foundation/common/_forms.scss +0 -117
  162. data/scss/foundation/common/_globals.scss +0 -35
  163. data/scss/foundation/common/_ratios.scss +0 -19
  164. data/scss/foundation/common/_typography.scss +0 -104
  165. data/scss/foundation/components/modules/_all.scss +0 -10
  166. data/scss/foundation/components/modules/_buttons.scss +0 -178
  167. data/scss/foundation/components/modules/_clearing.scss +0 -61
  168. data/scss/foundation/components/modules/_joyride.scss +0 -33
  169. data/scss/foundation/components/modules/_mqueries.scss +0 -458
  170. data/scss/foundation/components/modules/_navbar.scss +0 -74
  171. data/scss/foundation/components/modules/_offcanvas.scss +0 -55
  172. data/scss/foundation/components/modules/_orbit.scss +0 -90
  173. data/scss/foundation/components/modules/_reveal.scss +0 -34
  174. data/scss/foundation/components/modules/_tabs.scss +0 -67
  175. data/scss/foundation/components/modules/_topbar.scss +0 -167
  176. data/scss/foundation/components/modules/_ui.scss +0 -292
  177. data/scss/foundation/functions/_all.scss +0 -2
  178. data/scss/foundation/functions/_convert-number-to-word.scss +0 -10
  179. data/scss/foundation/functions/_grid-calc.scss +0 -5
  180. data/scss/foundation/functions/modular-scale.scss +0 -3
  181. data/scss/foundation/mixins/_all.scss +0 -5
  182. data/scss/foundation/mixins/_clearfix.scss +0 -13
  183. data/scss/foundation/mixins/_css-triangle.scss +0 -22
  184. data/scss/foundation/mixins/_font-size.scss +0 -13
  185. data/scss/foundation/mixins/_respond-to.scss +0 -11
  186. data/scss/foundation/mixins/_semantic-grid.scss +0 -66
  187. data/test/buttons.html +0 -189
  188. data/test/clearing.html +0 -85
  189. data/test/config.rb +0 -11
  190. data/test/elements.html +0 -490
  191. data/test/forms.html +0 -371
  192. data/test/grid.html +0 -543
  193. data/test/images/orbit-demo/demo1.jpeg +0 -0
  194. data/test/images/orbit-demo/demo2.jpeg +0 -0
  195. data/test/images/orbit-demo/demo3.jpeg +0 -0
  196. data/test/images/orbit-demo/slider-background.jpeg +0 -0
  197. data/test/index.html +0 -83
  198. data/test/joyride.html +0 -127
  199. data/test/magellan.html +0 -112
  200. data/test/navigation.html +0 -269
  201. data/test/orbit.html +0 -112
  202. data/test/reveal.html +0 -91
  203. data/test/scss/_settings.scss +0 -245
  204. data/test/scss/styles.scss +0 -50
  205. data/test/tabs.html +0 -197
  206. data/test/template.html +0 -52
  207. data/test/topbar-login.html +0 -194
  208. data/test/topbar.html +0 -139
  209. data/test/type.html +0 -188
  210. data/vendor/assets/images/foundation/orbit/bullets.jpg +0 -0
  211. data/vendor/assets/images/foundation/orbit/left-arrow-small.png +0 -0
  212. data/vendor/assets/images/foundation/orbit/left-arrow.png +0 -0
  213. data/vendor/assets/images/foundation/orbit/loading.gif +0 -0
  214. data/vendor/assets/images/foundation/orbit/mask-black.png +0 -0
  215. data/vendor/assets/images/foundation/orbit/pause-black.png +0 -0
  216. data/vendor/assets/images/foundation/orbit/right-arrow-small.png +0 -0
  217. data/vendor/assets/images/foundation/orbit/right-arrow.png +0 -0
  218. data/vendor/assets/images/foundation/orbit/rotator-black.png +0 -0
  219. data/vendor/assets/images/foundation/orbit/timer-black.png +0 -0
  220. data/vendor/assets/javascripts/foundation/app.js +0 -41
  221. data/vendor/assets/javascripts/foundation/index.js +0 -19
  222. data/vendor/assets/javascripts/foundation/jquery.event.move.js +0 -580
  223. data/vendor/assets/javascripts/foundation/jquery.event.swipe.js +0 -130
  224. data/vendor/assets/javascripts/foundation/jquery.foundation.accordion.js +0 -47
  225. data/vendor/assets/javascripts/foundation/jquery.foundation.alerts.js +0 -20
  226. data/vendor/assets/javascripts/foundation/jquery.foundation.buttons.js +0 -83
  227. data/vendor/assets/javascripts/foundation/jquery.foundation.clearing.js +0 -413
  228. data/vendor/assets/javascripts/foundation/jquery.foundation.forms.js +0 -502
  229. data/vendor/assets/javascripts/foundation/jquery.foundation.joyride.js +0 -639
  230. data/vendor/assets/javascripts/foundation/jquery.foundation.magellan.js +0 -96
  231. data/vendor/assets/javascripts/foundation/jquery.foundation.mediaQueryToggle.js +0 -27
  232. data/vendor/assets/javascripts/foundation/jquery.foundation.navigation.js +0 -55
  233. data/vendor/assets/javascripts/foundation/jquery.foundation.orbit.js +0 -919
  234. data/vendor/assets/javascripts/foundation/jquery.foundation.reveal.js +0 -794
  235. data/vendor/assets/javascripts/foundation/jquery.foundation.tabs.js +0 -66
  236. data/vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js +0 -211
  237. data/vendor/assets/javascripts/foundation/jquery.foundation.topbar.js +0 -174
  238. data/vendor/assets/javascripts/foundation/jquery.js +0 -9555
  239. data/vendor/assets/javascripts/foundation/jquery.offcanvas.js +0 -50
@@ -0,0 +1,74 @@
1
+ <div class="row">
2
+ <div class="large-9 push-3 columns">
3
+
4
+ <% @page_title = "Keystrokes" %>
5
+ <div class="row">
6
+ <div class="large-12 columns">
7
+ <h2><%= @page_title %></h2>
8
+ <h4 class="subheader">If you have keyboard affordances, you might need to explain them. To that end, there's a simple keystroke character affordance in Foundation.</h4>
9
+ </div>
10
+ </div>
11
+
12
+ <div class="row">
13
+ <div class="large-12 columns">
14
+ <p>For example, to close your browser hit <kbd>Cmd</kbd> + <kbd>Q</kbd>. Don't actually do it. There's more docs to read.</p>
15
+
16
+ <hr>
17
+
18
+ <h3>Build With Predefined HTML Classes</h3>
19
+ <p>There are two ways to build keystrokes in Foundation 4: with our predefined HTML or with our mixins. Building keystrokes using our predefined classes is simple, you simply wrap <code>kbd</code> or <code>.keystroke</code> around whatever you want to call out.</p>
20
+
21
+ <%= code_example '
22
+ <p>For example, to close your browser hit <kbd>Cmd</kbd> + <kbd>Q</kbd>', :html %>
23
+
24
+ <p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected keystrokes from a custom package. These should be linked up following our default HTML page structure.</p>
25
+
26
+ <hr>
27
+
28
+ <h3>Build with a Mixin</h3>
29
+ <p>We've included SCSS mixins used to style keystrokes. To use the mixin, you'll need to have the <a href="#extention-install">extension installed</a> or grab <a href="#">_foundation-global.scss</a> and <a href="#">_keystrokes.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
30
+
31
+ <%= code_example '
32
+ @import "foundation/foundation-global", "foundation/keystrokes";
33
+ ', :css %>
34
+
35
+ <h5>Quick Mixin</h5>
36
+ <p>You can build your keystrokes using our global mixin by including it on your custom class or the <code>kbd</code> element in your own stylesheet. The mixin contains options for changing the background color, which also controls the border and text color. The rest of the defaults can be modified using the available variables. The global mixin looks like this:</p>
37
+
38
+ <%= code_example '
39
+ .your-class-name { @include keystroke($bg); }
40
+
41
+ /* You can set the background color of your keystrokes, which also effects text and border */
42
+ $bg: $keystroke-bg', :css %>
43
+
44
+ <p class="custom-keystroke">Here's an example of a custom <kbd>keystroke</kbd> style.</p>
45
+
46
+ <h5>Default SCSS Variables</h5>
47
+
48
+ <%= code_example '
49
+ /* We use these to control text styles. */
50
+ $keystroke-font: "Consolas", "Menlo", "Courier", monospace;
51
+ $keystroke-font-size: emCalc(15px);
52
+ $keystroke-font-color: #222;
53
+ $keystroke-font-color-alt: #fff;
54
+ $keystroke-function-factor: 7%;
55
+
56
+ /* We use this to control keystroke padding. */
57
+ $keystroke-padding: emCalc(2px) emCalc(4px) emCalc(0px);
58
+
59
+ /* We use these to control background and border styles. */
60
+ $keystroke-bg: darken(#fff, $keystroke-function-factor);
61
+ $keystroke-border-style: solid;
62
+ $keystroke-border-width: 1px;
63
+ $keystroke-border-color: darken($keystroke-bg, $keystroke-function-factor);
64
+ $keystroke-radius: $button-radius;', :css %>
65
+
66
+ <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>
67
+
68
+ </div>
69
+ </div>
70
+ </div>
71
+ <div class="large-3 pull-9 columns">
72
+ <%= render "_sidebar-components.html.erb" %>
73
+ </div>
74
+ </div>
@@ -0,0 +1,98 @@
1
+ <div class="row">
2
+ <div class="large-9 push-3 columns">
3
+
4
+ <% @page_title = "Labels" %>
5
+ <div class="row">
6
+ <div class="large-12 columns">
7
+ <h2><%= @page_title %></h2>
8
+ <h4 class="subheader">Labels are useful inline styles that can be dropped into body copy to call out certain sections or to attach metadata. Examples might be noting when something was updated or that something is new.</h4>
9
+
10
+ <p>
11
+ <span class="label">Regular Label</span><br>
12
+ <span class="radius secondary label">Radius Secondary Label</span><br>
13
+ <span class="round alert label">Round Alert Label</span><br>
14
+ <span class="success label">Success Label</span><br>
15
+ </p>
16
+
17
+ <hr>
18
+ </div>
19
+ </div>
20
+
21
+ <div class="row">
22
+ <div class="large-12 columns">
23
+
24
+ <h3>Build With Predefined HTML Classes</h3>
25
+ <p>There are two ways to build labels in Foundation 4: with our predefined HTML classes or with our mixins. Building labels using our predefined classes is simple, you'll just need to write a <code>&lt;span class="label"&gt;</code> and apply the classes you want.</p>
26
+
27
+ <%= code_example '
28
+ <span class="label">Regular Label</span>
29
+ <span class="radius secondary label">Radius Secondary Label</span>
30
+ <span class="round alert label">Round Alert Label</span>
31
+ <span class="success label">Success Label</span>', :html %>
32
+
33
+ <p>The class options:</p>
34
+ <ul class="disc">
35
+ <li>The color classes include: <code>.secondary, .alert</code> or <code>.success</code></li>
36
+ <li>The radius classes include: <code>.radius</code> or <code>.round</code>.</li>
37
+ </ul>
38
+
39
+ <p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected labels from a custom package. These should be linked up following our default <a href="#">HTML page structure</a>.</p>
40
+
41
+ <hr>
42
+
43
+ <h3>Build With Our Mixins</h3>
44
+ <p>We've included SCSS mixins used to style labels. To use the mixin, you'll need to have the <a href="#extention-install">extension installed</a> or grab <a href="#">_foundation-global.scss</a> and <a href="#">_labels.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
45
+
46
+ <%= code_example '
47
+ @import "foundation/foundation-global", "foundation/labels";
48
+ ', :css %>
49
+
50
+ <h5>Quick Mixin</h5>
51
+ <p>You can build your labels using our global mixin by including it on your custom class or ID in your own stylesheet. The mixin contains options for changing the background color, which also controls the border and text color. You'll also have the ability to change the font-size and padding. The rest of the defaults can be modified using the available variables. The global mixin looks like this:</p>
52
+
53
+ <%= code_example '
54
+ /* Using the default styles */
55
+ .your-class-name { @include label; }', :css %>
56
+
57
+ <p>There are also four options you can customize on the fly when writing this mixin. These control things like: padding, text size, background color and radius. Setting any of these options to false will negate those styles.</p>
58
+
59
+ <%= code_example '
60
+ /* Using the available options */
61
+ .your-class-name { @include label($padding,$text-size,$bg,$radius); }
62
+
63
+ /* Controls the padding, set to a string following top, right, bottom, left rules or change the variable */
64
+ $padding: $label-padding
65
+
66
+ /* Control your text-size per label */
67
+ $text-size: $label-font-size
68
+
69
+ /* Change the background color for your labels */
70
+ $bg: $primary-color
71
+
72
+ /* Control how much radius is put on the labels */
73
+ $radius: false
74
+ ', :css %>
75
+
76
+ <p class="custom-keystroke">Here's an example of a custom <span class="label-custom">label</span> style.</p>
77
+
78
+ <h5>Default SCSS Variables</h5>
79
+
80
+ <%= code_example '
81
+ /* We use these to style the labels */
82
+ $label-padding: emCalc(3px) emCalc(6px) emCalc(4px);
83
+ $label-radius: $button-radius;
84
+
85
+ /* We use these to style the label text */
86
+ $label-font-size: emCalc(14px);
87
+ $label-font-weight: bold;', :css %>
88
+
89
+ <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>
90
+
91
+ </div>
92
+ </div>
93
+
94
+ </div>
95
+ <div class="large-3 pull-9 columns">
96
+ <%= render "_sidebar-components.html.erb" %>
97
+ </div>
98
+ </div>
@@ -0,0 +1,84 @@
1
+ <div class="row">
2
+ <div class="large-9 push-3 columns">
3
+
4
+ <% @page_title = "Magellan" %>
5
+ <div class="row">
6
+ <div class="large-12 columns">
7
+ <h2><%= @page_title %></h2>
8
+ <h4 class="subheader">Magellan is a style agnostic plugin that lets you style a sticky navigation that denotes where you are on the page.</h4>
9
+
10
+ <div data-magellan-expedition="fixed">
11
+ <dl class="sub-nav">
12
+ <dd data-magellan-arrival="build"><a href="#build">Build with HTML</a></dd>
13
+ <dd data-magellan-arrival="js"><a href="#js">Using Javascript</a></dd>
14
+ </dl>
15
+ </div>
16
+
17
+ <hr>
18
+ </div>
19
+ </div>
20
+
21
+ <div class="row">
22
+ <div class="large-12 columns">
23
+
24
+ <a name="build"></a>
25
+ <h3 data-magellan-destination="build">Build With Predefined HTML Structure</h3>
26
+ <p>When we set out to build Magellan, we wanted it to be really lightweight and stay out of your way. With that in mind, we kept custom styles out of the game. Magellan is style agnostic, meaning you can attach it to anything. There are a few built-in lists in Foundation that will work, including the sub-nav. If you look at the top of this page you'll see our sub-nav. As you scroll, you'll see Magellan in action!</p>
27
+
28
+ <%= code_example '
29
+ <div data-magellan-expedition="fixed">
30
+ <dl class="sub-nav">
31
+ <dd data-magellan-arrival="build"><a href="#build">Build with HTML</a></dd>
32
+ <dd data-magellan-arrival="js"><a href="#js">Arrival 2</a></dd>
33
+ </dl>
34
+ </div>
35
+
36
+ <div data-magellan-expedition="fixed">
37
+ <ul class="sub-nav">
38
+ <li data-magellan-arrival="build"><a href="#build">Build with HTML</a></li>
39
+ <li data-magellan-arrival="js"><a href="#js">Arrival 2</a></li>
40
+ </ul>
41
+ </div>
42
+ ', :html %>
43
+
44
+ <p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected <strong>magellan from a custom package</strong>. These should be linked up following our default <a href="#">HTML page structure</a>.</p>
45
+
46
+ <hr>
47
+
48
+ <a name="js"></a>
49
+ <h3 data-magellan-destination="js">Using Our JavaScript</h3>
50
+ <p>You'll need to include <code>foundation.magellan.js</code> to get everything to work properly. You'll also need to make sure to include <code>zepto.js</code> and <code>foundation.js</code> above the plugin. Above your closing <code>&lt;/body&gt;</code> tag include the following line of code and make sure you have the JS in your directory.</p>
51
+
52
+ <p><a href="../javascript.html" title="How to install Foundation JavaScript">Read how to install Foundation JavaScript</a></p>
53
+
54
+ <p>Required Foundation Library: <code>foundation.magellan.js</code></p>
55
+
56
+ <p>Then, you'll need to add a data-attribute to make the JS work properly on that element. That looks like:</p>
57
+
58
+ <%= code_example '
59
+ <h3 data-magellan-destination="js">Using Our Javascript</h3>
60
+
61
+ <div data-magellan-expedition="fixed">
62
+ <ul class="sub-nav">
63
+ <li data-magellan-arrival="build"><a href="#build">Build with HTML</a></li>
64
+ <li data-magellan-arrival="js"><a href="#js">Arrival 2</a></li>
65
+ </ul>
66
+ </div>
67
+ ', :html %>
68
+ <h5>Optional JavaScript Configuration</h5>
69
+
70
+ <p>Magellan options can only be passed in during initialization at this time.</p>
71
+
72
+ <%= code_example "
73
+ {
74
+ // specify the class used for active sections
75
+ activeClass: 'active'
76
+ }", :json %>
77
+
78
+ </div>
79
+ </div>
80
+ </div>
81
+ <div class="large-3 pull-9 columns">
82
+ <%= render "_sidebar-components.html.erb" %>
83
+ </div>
84
+ </div>
@@ -0,0 +1,262 @@
1
+ <div class="row">
2
+ <div class="large-9 push-3 columns">
3
+
4
+ <% @page_title = "Orbit" %>
5
+ <div class="row">
6
+ <div class="large-12 columns">
7
+ <h2><%= @page_title %></h2>
8
+ <h4 class="subheader">Orbit is an easy to use, powerful image slider that's responsive, allowing you to swipe on a touch-enabled device.</h4>
9
+
10
+ <ul id="featured1" data-orbit>
11
+ <li>
12
+ <img src="../img/demos/demo1.png" />
13
+ <div class="orbit-caption">
14
+ Caption One. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
15
+ </div>
16
+ </li>
17
+ <li>
18
+ <img src="../img/demos/demo2.png" />
19
+ <div class="orbit-caption">
20
+ Caption Two. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
21
+ </div>
22
+ </li>
23
+ <li>
24
+ <img src="../img/demos/demo3.png" />
25
+ <div class="orbit-caption">
26
+ Caption Three. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
27
+ </div>
28
+ </li>
29
+ </ul>
30
+
31
+ <hr>
32
+
33
+ </div>
34
+ </div>
35
+
36
+ <div class="row">
37
+ <div class="large-12 columns">
38
+
39
+ <h3>Build Orbit With HTML</h3>
40
+ <p>Building Orbit is pretty simple using our HTML classes and structure; you'll just need to write the markup, find some images or text, fire up the Javascript and you'll be ready to go. On touch-enabled devices, Orbit has swipe functionality that makes it easy to switch slides. On screens without touch interfaces, you'll see bullet and arrow navigation if you have the options setup in your JS. Here's markup structure for Orbit:</p>
41
+
42
+ <%= code_example '
43
+ <!-- Basic orbit markup -->
44
+ <ul data-orbit>
45
+ <li>
46
+ <img src="../img/demos/demo1.png" />
47
+ <div class="orbit-caption">...</div>
48
+ </li>
49
+ <li>
50
+ <img src="../img/demos/demo2.png" />
51
+ <div class="orbit-caption">...</div>
52
+ </li>
53
+ <li>
54
+ <img src="../img/demos/demo3.png" />
55
+ <div class="orbit-caption">...</div>
56
+ </li>
57
+ </ul>', :html %>
58
+
59
+ <h5>We'll Automatically Add HTML</h5>
60
+ <p>To keep your markup really clean, we've let JS add what's needed for the navigation, bullets and other parts of the plugin. Once the page has been loaded, your markup will look different. Below is an example of the markup so you know what to target.</p>
61
+
62
+ <%= code_example '
63
+ <!-- Orbit Container -->
64
+ <div class="orbit-container">
65
+ <ul data-orbit="" class="orbit-slides-container">
66
+ <li>
67
+ <img src="../img/demos/demo3.png">
68
+ <div class="orbit-caption">...</div>
69
+ </li>
70
+ <li class="active">
71
+ <img src="../img/demos/demo1.png">
72
+ <div class="orbit-caption">...</div>
73
+ </li>
74
+ <li>
75
+ <img src="../img/demos/demo2.png">
76
+ <div class="orbit-caption">...</div>
77
+ </li>
78
+ <li>
79
+ <img src="../img/demos/demo3.png">
80
+ <div class="orbit-caption">...</div>
81
+ </li>
82
+ <li>
83
+ <img src="../img/demos/demo1.png">
84
+ <div class="orbit-caption">...</div>
85
+ </li>
86
+ </ul>
87
+
88
+ <!-- Prev/Next Arrows -->
89
+ <a href="#" class="orbit-prev">Prev <span></span></a>
90
+ <a href="#" class="orbit-next">Next <span></span></a>
91
+
92
+ <!-- Slide Numbers -->
93
+ <div class="orbit-slide-number">
94
+ <span>1</span> of <span>3</span>
95
+ </div>
96
+
97
+ <!-- Timer and Play/Pause Button -->
98
+ <div class="orbit-timer">
99
+ <span></span>
100
+ <div class="orbit-progress" style="width: 100%; -webkit-transition: width 10s linear;"></div>
101
+ </div>
102
+ </div>
103
+
104
+ <!-- Orbit Bullet Slide Indicator -->
105
+ <ol class="orbit-bullets">
106
+ <li data-orbit-slide-number="1"></li>
107
+ <li data-orbit-slide-number="2" class="active"></li>
108
+ <li data-orbit-slide-number="3"></li>
109
+ </ol>
110
+ ', :html %>
111
+
112
+ <hr>
113
+
114
+ <ul id="featured2" data-orbit>
115
+ <li data-orbit-slide="headline-1">
116
+ <h2>Headline 1</h2>
117
+ <h3>Subheadline</h3>
118
+ <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
119
+ </li>
120
+ <li data-orbit-slide="headline-2">
121
+ <h2>Headline 2</h2>
122
+ <h3>Subheadline</h3>
123
+ <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
124
+ </li>
125
+ <li data-orbit-slide="headline-3">
126
+ <h2>Headline 3</h2>
127
+ <h3>Subheadline</h3>
128
+ <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
129
+ </li>
130
+ </ul>
131
+
132
+ <hr>
133
+
134
+ <h3>Deep Linking Support</h3>
135
+ <p>
136
+ You can now link to slides in Orbit. This is useful when constructing
137
+ custom bullets or referencing a particular slide in a description. To
138
+ see it in action click on one of the links below:
139
+ </p>
140
+
141
+ <ul class="disc">
142
+ <li><a href="#" data-orbit-link="headline-1">Goto Slide 1</a></li>
143
+ <li><a href="#" data-orbit-link="headline-2">Goto Slide 2</a></li>
144
+ <li><a href="#" data-orbit-link="headline-3">Goto Slide 3</a></li>
145
+ </ul>
146
+
147
+ <p>
148
+ The markup is simple, each <kbd>&lt;li&gt;</kbd> should
149
+ have a <kbd>data-orbit-slide</kbd> data attribute with a
150
+ unique identifier for the slide. Then anywhere outside
151
+ of your Orbit slider you can use <kbd>data-orbit-link</kbd>
152
+ to reference that slide.
153
+ </p>
154
+
155
+ <%= code_example '
156
+ <ul id="featured2" data-orbit>
157
+ <li data-orbit-slide="headline-1">
158
+ <h2>Headline 1</h2>
159
+ <h3>Subheadline</h3>
160
+ <p>Pellentesque habitant morbi tristique senectus.</p>
161
+ </li>
162
+ <li data-orbit-slide="headline-2">
163
+ <h2>Headline 2</h2>
164
+ <h3>Subheadline</h3>
165
+ <p>Pellentesque habitant morbi tristique senectus.</p>
166
+ </li>
167
+ <li data-orbit-slide="headline-3">
168
+ <h2>Headline 3</h2>
169
+ <h3>Subheadline</h3>
170
+ <p>Pellentesque habitant morbi tristique senectus.</p>
171
+ </li>
172
+ </ul>
173
+
174
+ <!-- Now link to the slides above -->
175
+ <ul class="disc">
176
+ <li><a href="#" data-orbit-link="headline-1">Goto Slide 1</a></li>
177
+ <li><a href="#" data-orbit-link="headline-2">Goto Slide 2</a></li>
178
+ <li><a href="#" data-orbit-link="headline-3">Goto Slide 3</a></li>
179
+ </ul>
180
+ ', :html %>
181
+
182
+ <hr>
183
+
184
+ <h3>Available SCSS Variables</h3>
185
+ <p>We've included a bunch of variables that you'll be able to use if you're into getting SASSy with things.</p>
186
+
187
+ <%= code_example '
188
+ /* We use these to control the caption styles */
189
+ $orbit-caption-bg-old-browser: #000;
190
+ $orbit-caption-bg-old: rgb(0,0,0);
191
+ $orbit-caption-bg: rgba(0,0,0,0.6);
192
+ $orbit-caption-font-color: #fff;
193
+
194
+ /* We use these to control the left/right nav styles */
195
+ $orbit-nav-bg-old: rgb(0,0,0);
196
+ $orbit-nav-bg: rgba(0,0,0,0.6);
197
+
198
+ /* We use these to control the timer styles */
199
+ $orbit-timer-bg-old: rgb(0,0,0);
200
+ $orbit-timer-bg: rgba(0,0,0,0.6);
201
+
202
+ /* We use these to control the bullet nav styles */
203
+ $orbit-bullet-nav-color: #999;
204
+ $orbit-bullet-nav-color-active: #222;
205
+
206
+ /* We use thes to controls the style of slide numbers */
207
+ $orbit-slide-number-bg: rgb(0,0,0);
208
+ $orbit-slide-number-font-color: #fff;
209
+ $orbit-slide-number-padding: emCalc(5px);
210
+ ', :css %>
211
+
212
+ <hr>
213
+
214
+ <h3>Using the JavaScript</h3>
215
+ <p>You'll need to include <code>foundation.orbit.js</code> if you want to use Orbit. You'll also need to make sure to include <code>zepto.js</code> and/or <code>jquery.js</code> along with <code>foundation.js</code> above the Orbit plugin. Above your closing <code>&lt;/body&gt;</code> tag include the following line of code and make sure you have the JS in your directory.</p>
216
+
217
+ <p><a href="../javascript.html" title="How to install Foundation JavaScript">Read how to install Foundation JavaScript</a></p>
218
+
219
+ <p>Required Foundation Library: <code>foundation.orbit.js</code></p>
220
+
221
+ <p>Then, you'll need to add a <kbd>data-orbit</kbd> data attribute to make the JS work properly on that element. That looks like:</p>
222
+
223
+ <%= code_example '
224
+ <ul data-orbit>
225
+ ...
226
+ </ul>
227
+ ', :html %>
228
+
229
+ <h5>Optional JavaScript Configuration</h5>
230
+
231
+ <p>Orbit options can only be passed in during initialization at this time.</p>
232
+
233
+ <%= code_example "
234
+ {
235
+ timer_speed: 10000,
236
+ animation_speed: 500,
237
+ bullets: true,
238
+ stack_on_small: true,
239
+ container_class: 'orbit-container',
240
+ stack_on_small_class: 'orbit-stack-on-small',
241
+ next_class: 'orbit-next',
242
+ prev_class: 'orbit-prev',
243
+ timer_container_class: 'orbit-timer',
244
+ timer_paused_class: 'paused',
245
+ timer_progress_class: 'orbit-progress',
246
+ slides_container_class: 'orbit-slides-container',
247
+ bullets_container_class: 'orbit-bullets',
248
+ bullets_active_class: 'active',
249
+ slide_number_class: 'orbit-slide-number',
250
+ caption_class: 'orbit-caption',
251
+ active_slide_class: 'active',
252
+ orbit_transition_class: 'orbit-transitioning'
253
+ }", :json %>
254
+
255
+ </div>
256
+ </div>
257
+
258
+ </div>
259
+ <div class="large-3 pull-9 columns">
260
+ <%= render "_sidebar-components.html.erb" %>
261
+ </div>
262
+ </div>