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,355 @@
1
+ <style>
2
+ .row.display { background: #eee; font-size: 11px; margin-bottom: 10px; }
3
+ .row.display .columns, .row.display .column { background: #e7e7e7; border: 1px solid #ddd; font-size: 13px; font-weight: bold; text-indent: 3px; padding-top: 8px; color: #444; padding-bottom: 8px; }
4
+ </style>
5
+
6
+ <div class="row">
7
+ <div class="large-9 push-3 columns">
8
+
9
+ <% @page_title = "Grid" %>
10
+ <div class="row">
11
+ <div class="large-12 columns">
12
+ <h2><%= @page_title %></h2>
13
+ <h4 class="subheader">Create powerful multi-device layouts quickly and easily with the 12-column, nestable Foundation grid. If you're familiar with grid systems, you'll feel right at home. If not, you'll learn quickly.</h4>
14
+ <hr>
15
+ </div>
16
+ </div>
17
+
18
+ <div class="row">
19
+ <div class="large-12 columns">
20
+
21
+ <h3>Using our Predefined HTML Classes</h3>
22
+ <p>These are examples of different ways to use the Foundation Grid. Foundation uses <code>box-sizing: border-box</code> so that borders and padding do not affect the overall width of the columns, making the math dead-simple. Since Foundation is mobile-first, we'll stack content by default. You do have access to an entirely separate small grid to use up to the 768px breakpoint. This means you can create some pretty complex layouts and even drop columns if you want.</p>
23
+
24
+ <%= code_example '
25
+ <div class="row">
26
+ <div class="small-2 large-4 columns">...</div>
27
+ <div class="small-4 large-4 columns">...</div>
28
+ <div class="small-6 large-4 columns">...</div>
29
+ </div>
30
+ <div class="row">
31
+ <div class="large-3 columns">...</div>
32
+ <div class="large-6 columns">...</div>
33
+ <div class="large-3 columns">...</div>
34
+ </div>
35
+ <div class="row">
36
+ <div class="small-6 large-2 columns">...</div>
37
+ <div class="small-6 large-8 columns">...</div>
38
+ <div class="small-12 large-2 columns">...</div>
39
+ </div>
40
+ <div class="row">
41
+ <div class="small-3 columns">...</div>
42
+ <div class="small-9 columns">...</div>
43
+ </div>
44
+ <div class="row">
45
+ <div class="large-4 columns">...</div>
46
+ <div class="large-8 columns">...</div>
47
+ </div>
48
+ <div class="row">
49
+ <div class="small-6 large-5 columns">...</div>
50
+ <div class="small-6 large-7 columns">...</div>
51
+ </div>
52
+ <div class="row">
53
+ <div class="large-6 columns">...</div>
54
+ <div class="large-6 columns">...</div>
55
+ </div>', :html %>
56
+
57
+ <div class="row display">
58
+ <div class="small-2 large-4 columns"><span class="show-for-small">2</span><span class="hide-for-small">4</span></div>
59
+ <div class="small-4 large-4 columns">4</div>
60
+ <div class="small-6 large-4 columns"><span class="show-for-small">6</span><span class="hide-for-small">4</span></div>
61
+ </div>
62
+ <div class="row display">
63
+ <div class="large-3 columns"><span class="show-for-small">full</span><span class="hide-for-small">3</span></div>
64
+ <div class="large-6 columns"><span class="show-for-small">full</span><span class="hide-for-small">6</span></div>
65
+ <div class="large-3 columns"><span class="show-for-small">full</span><span class="hide-for-small">3</span></div>
66
+ </div>
67
+ <div class="row display">
68
+ <div class="small-6 large-2 columns"><span class="show-for-small">6</span><span class="hide-for-small">2</span></div>
69
+ <div class="small-6 large-8 columns"><span class="show-for-small">6</span><span class="hide-for-small">8</span></div>
70
+ <div class="small-12 large-2 columns"><span class="show-for-small">full</span><span class="hide-for-small">2</span></div>
71
+ </div>
72
+ <div class="row display">
73
+ <div class="small-3 columns">3</div>
74
+ <div class="small-9 columns">9</div>
75
+ </div>
76
+ <div class="row display">
77
+ <div class="large-4 columns"><span class="show-for-small">full</span><span class="hide-for-small">4</span></div>
78
+ <div class="large-8 columns"><span class="show-for-small">full</span><span class="hide-for-small">8</span></div>
79
+ </div>
80
+ <div class="row display">
81
+ <div class="small-6 large-5 columns"><span class="show-for-small">6</span><span class="hide-for-small">5</span></div>
82
+ <div class="small-6 large-7 columns"><span class="show-for-small">6</span><span class="hide-for-small">7</span></div>
83
+ </div>
84
+ <div class="row display">
85
+ <div class="large-6 columns"><span class="show-for-small">full</span><span class="hide-for-small">6</span></div>
86
+ <div class="large-6 columns"><span class="show-for-small">full</span><span class="hide-for-small">6</span></div>
87
+ </div>
88
+
89
+ <hr>
90
+
91
+ <h4>Infinitely Nest Your Grid</h4>
92
+ <p>The grid allows for nesting down as far as you'd like, though at a certain point it will get absurd. You can use this nesting to create quite complex layouts, as well as some other tricks like form layouts or visual elements.</p>
93
+
94
+ <%= code_example '
95
+ <div class="row">
96
+ <div class="small-8 columns">8
97
+ <div class="row">
98
+ <div class="small-8 columns">8 Nested
99
+ <div class="row">
100
+ <div class="small-8 columns">8 Nested Again</div>
101
+ <div class="small-4 columns">4</div>
102
+ </div>
103
+ </div>
104
+ <div class="small-4 columns">4</div>
105
+ </div>
106
+ </div>
107
+ <div class="small-4 columns">4</div>
108
+ </div>', :html %>
109
+
110
+ <div class="row display">
111
+ <div class="small-8 columns">8
112
+ <div class="row">
113
+ <div class="small-8 columns">8 Nested
114
+ <div class="row">
115
+ <div class="small-8 columns">8 Nested Again</div>
116
+ <div class="small-4 columns">4</div>
117
+ </div>
118
+ </div>
119
+ <div class="small-4 columns">4</div>
120
+ </div>
121
+ </div>
122
+ <div class="small-4 columns">4</div>
123
+ </div>
124
+
125
+ <hr>
126
+
127
+ <h4>Offsets</h4>
128
+ <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>
129
+
130
+ <%= code_example '
131
+ <div class="row">
132
+ <div class="large-1 columns">1</div>
133
+ <div class="large-11 columns">11</div>
134
+ </div>
135
+ <div class="row">
136
+ <div class="large-1 columns">1</div>
137
+ <div class="large-10 large-offset-1 columns">10, offset 1</div>
138
+ </div>
139
+ <div class="row">
140
+ <div class="large-1 columns">1</div>
141
+ <div class="large-9 large-offset-2 columns">9, offset 2</div>
142
+ </div>
143
+ <div class="row">
144
+ <div class="large-1 columns">1</div>
145
+ <div class="large-8 large-offset-3 columns">8, offset 3</div>
146
+ </div>', :html %>
147
+
148
+ <div class="row display">
149
+ <div class="large-1 columns">1</div>
150
+ <div class="large-11 columns">11</div>
151
+ </div>
152
+ <div class="row display">
153
+ <div class="large-1 columns">1</div>
154
+ <div class="large-10 large-offset-1 columns">10, offset 1</div>
155
+ </div>
156
+ <div class="row display">
157
+ <div class="large-1 columns">1</div>
158
+ <div class="large-9 large-offset-2 columns">9, offset 2</div>
159
+ </div>
160
+ <div class="row display">
161
+ <div class="large-1 columns">1</div>
162
+ <div class="large-8 large-offset-3 columns">8, offset 3</div>
163
+ </div>
164
+
165
+ <hr>
166
+
167
+ <h4>Centered Columns</h4>
168
+ <p>Centered columns are placed in the middle of the row. This does not center their content, but centers the grid element, itself. This is accomplished by adding a class of <code>large-center</code> or <code>small-center</code> depending on which breakpoint you want the columns to center on. Small versions will carry through all breakpoints if not overridden by a large version. You can center any number of columns you have.</p>
169
+
170
+ <%= code_example '
171
+ <div class="row">
172
+ <div class="small-3 small-centered columns">3 centered</div>
173
+ </div>
174
+ <div class="row">
175
+ <div class="small-6 small-centered columns">6 centered</div>
176
+ </div>
177
+ <div class="row">
178
+ <div class="small-9 small-centered columns">9 centered</div>
179
+ </div>
180
+ <div class="row">
181
+ <div class="small-11 small-centered columns">11 centered</div>
182
+ </div>', :html %>
183
+
184
+ <div class="row display">
185
+ <div class="small-3 small-centered columns">3 centered</div>
186
+ </div>
187
+ <div class="row display">
188
+ <div class="small-6 small-centered columns">6 centered</div>
189
+ </div>
190
+ <div class="row display">
191
+ <div class="small-9 small-centered columns">9 centered</div>
192
+ </div>
193
+ <div class="row display">
194
+ <div class="small-11 small-centered columns">11 centered</div>
195
+ </div>
196
+
197
+ <hr>
198
+
199
+ <h4>Source Ordering</h4>
200
+
201
+ <p>Using these source ordering classes, you can shift columns around between our breakpoints. This means you can have a sub-nav on the left on large displays, but go below on small ones. <code>.push-#</code> is the syntax you'll use.</p>
202
+
203
+
204
+ <%= code_example '
205
+ <div class="row">
206
+ <div class="small-2 push-10 columns">2</div>
207
+ <div class="small-10 pull-2 columns">10, last</div>
208
+ </div>
209
+ <div class="row">
210
+ <div class="small-3 push-9 columns">3</div>
211
+ <div class="small-9 pull-3 columns">9, last</div>
212
+ </div>
213
+ <div class="row">
214
+ <div class="small-4 push-8 columns">4</div>
215
+ <div class="small-8 pull-4 columns">8, last</div>
216
+ </div>
217
+ <div class="row">
218
+ <div class="small-5 push-7 columns">5</div>
219
+ <div class="small-7 pull-5 columns">5, last</div>
220
+ </div>
221
+ <div class="row">
222
+ <div class="small-6 push-6 columns">6</div>
223
+ <div class="small-6 pull-6 columns">6, last</div>
224
+ </div>', :html %>
225
+
226
+ <div class="row display">
227
+ <div class="small-2 push-10 columns">2</div>
228
+ <div class="small-10 pull-2 columns">10, last</div>
229
+ </div>
230
+ <div class="row display">
231
+ <div class="small-3 push-9 columns">3</div>
232
+ <div class="small-9 pull-3 columns">9, last</div>
233
+ </div>
234
+ <div class="row display">
235
+ <div class="small-4 push-8 columns">4</div>
236
+ <div class="small-8 pull-4 columns">8, last</div>
237
+ </div>
238
+ <div class="row display">
239
+ <div class="small-5 push-7 columns">5</div>
240
+ <div class="small-7 pull-5 columns">5, last</div>
241
+ </div>
242
+ <div class="row display">
243
+ <div class="small-6 push-6 columns">6</div>
244
+ <div class="small-6 pull-6 columns">6, last</div>
245
+ </div>
246
+
247
+ <hr>
248
+
249
+ <h4>Small Grid</h4>
250
+ <p>As you've probably noticed in the examples above, you have access to a small and large grid. If you know that your grid structure will be the same for small devices as it will be on large devices, just use the small grid. You can override your small grid classes by adding large grid classes to it. 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="#">_grid.scss</a> from Github and throw them into a Foundation folder in your project directory.</p>
251
+
252
+ <%= code_example '
253
+ <div class="row">
254
+ <div class="small-2 columns">2</div>
255
+ <div class="small-10 columns">10, last</div>
256
+ </div>
257
+ <div class="row">
258
+ <div class="small-3 columns">3</div>
259
+ <div class="small-9 columns">9, last</div>
260
+ </div>', :html %>
261
+
262
+ <div class="row display">
263
+ <div class="small-2 columns">2</div>
264
+ <div class="small-10 columns">10, last</div>
265
+ </div>
266
+ <div class="row display">
267
+ <div class="small-3 columns">3</div>
268
+ <div class="small-9 columns">9, last</div>
269
+ </div>
270
+
271
+ <hr>
272
+
273
+ <h3>Building With Mixins</h3>
274
+ <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>
275
+
276
+ <h5>Basic Mixin Usage</h5>
277
+ <%= code_example '
278
+ /* Mixin options creating rows */
279
+ @include grid-row($behavior);
280
+
281
+ /* The default value is false, which will bring in the default row styles */
282
+ $behavior: false
283
+
284
+ /* If the element you are creating as a row is nested within another element */
285
+ /* that is also a row, you need to add the proper nesting styles */
286
+ $behavior: nest
287
+
288
+ /* You can use this option to collapse the container row margins */
289
+ /* This comes in handy when working with forms inside the grid */
290
+ $behavior: collapse
291
+
292
+ /* If you have a nested row and want it to be collapsed, you need to add this option */
293
+ $behavior: nest-collapse
294
+ ', :css %>
295
+
296
+ <%= code_example '
297
+ /* Mixin options creating columns, these must be nested inside or a row */
298
+ @include grid-column($columns, $last-column, $center, $offset, $push, $pull, $collapse, $float);
299
+
300
+ /* The most commonly used option with a column */
301
+ /* This sets the width properties for the column, use a number to represent columns */
302
+ $columns: #
303
+
304
+ /* Use this option if your columns do not add up to 12. */
305
+ /* We make the last column default to float:right to keep things aligned */
306
+ /* If you do not want this, set $last-column to true */
307
+ $last-column: false
308
+
309
+ /* If you have a single column inside a row and want it centered, set this to true */
310
+ $center: false
311
+
312
+ /* Control how many columns you offset by switching this into a number. */
313
+ $offset: false
314
+
315
+ /* You can use source ordering with this mixin too, just set this to a number. */
316
+ $push: false
317
+
318
+ /* You can use source ordering with this mixin too, just set this to a number. */
319
+ $pull: false
320
+
321
+ /* If you have a collapsed row, you need to set the columns to collapse as well. */
322
+ $collapse: false
323
+
324
+ /* By default, we do not include floats in the styles because it will be duplicated a lot. */
325
+ /* To help control this, we made it an option. Set this to true to get columns to float. */
326
+ $float: false
327
+ ', :css %>
328
+
329
+ <%= code_example '
330
+ #masthead { @include grid-row; @include panel;
331
+ & > hgroup { @include grid-column(4, $float:left); }
332
+ & > section { @include grid-column(8, $float:left); }
333
+ }', :css %>
334
+
335
+ <header id="masthead">
336
+ <hgroup>
337
+ <h2>Title</h2>
338
+ </hgroup>
339
+ <section>
340
+ <p>Aenean lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
341
+ </section>
342
+ </header>
343
+
344
+ <hr>
345
+
346
+ <h4>Get Advanced With Media Query Changes</h4>
347
+ <p>We kept media queries out of the code for our grid mixins. This will enable you to include the mixins inside of whatever breakpoint you'd like, putting you in complete control. If you want to create 10 breakpoints and shift the layout around between each one, by all means. If you want to use only the default breakpoints, <a href="#mediaqueries">we've got variables for that</a>.</p>
348
+
349
+ </div>
350
+ </div>
351
+ </div>
352
+ <div class="large-3 pull-9 columns">
353
+ <%= render "_sidebar-components.html.erb" %>
354
+ </div>
355
+ </div>
@@ -0,0 +1,89 @@
1
+ <div class="row">
2
+ <div class="large-9 push-3 columns">
3
+
4
+ <% @page_title = "Inline Lists" %>
5
+ <div class="row">
6
+ <div class="large-12 columns">
7
+ <h2><%= @page_title %></h2>
8
+ <h4 class="subheader">You can use this simple construct when you just need a horizontal list of links, like in a footer, and want more control than just spaces between them.</h4>
9
+
10
+ <ul class="inline-list">
11
+ <li><a href="#">Link 1</a></li>
12
+ <li><a href="#">Link 2</a></li>
13
+ <li><a href="#">Link 3</a></li>
14
+ <li><a href="#">Link 4</a></li>
15
+ <li><a href="#">Link 5</a></li>
16
+ </ul>
17
+
18
+ <hr>
19
+ </div>
20
+ </div>
21
+
22
+ <div class="row">
23
+ <div class="large-12 columns">
24
+
25
+ <h3>Build With Predefined HTML Classes</h3>
26
+ <p>There are two ways to build inline lists in Foundation 4: with our predefined HTML or with our mixins. Building inline lists using our predefined classes is easy. You'll start with an unordered list and add a class of <code>.inline-list</code> to it. From there, you just need to add list items with links in them.</p>
27
+
28
+ <%= code_example '
29
+ <ul class="inline-list">
30
+ <li><a href="#">Link 1</a></li>
31
+ <li><a href="#">Link 2</a></li>
32
+ <li><a href="#">Link 3</a></li>
33
+ <li><a href="#">Link 4</a></li>
34
+ <li><a href="#">Link 5</a></li>
35
+ </ul>', :html %>
36
+
37
+ <p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected inline-lists from a custom package. These should be linked up following our default HTML page structure.</p>
38
+
39
+ <hr>
40
+
41
+ <h3>Build with a Mixin</h3>
42
+ <p>We've included SCSS mixins used to style inline lists. 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="#">_inline-lists.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>
43
+
44
+ <%= code_example '
45
+ @import "foundation/foundation-global", "foundation/inline-lists";
46
+ ', :css %>
47
+
48
+ <h5>Quick Mixin</h5>
49
+ <p>You can build your inline lists using our global mixin by including it on your own custom class. The mixin contains all the necessary styles for positioning and styling the unordered list full of list items, the code looks like this:</p>
50
+
51
+ <%= code_example '
52
+ .your-class-name { @include inline-list; }', :css %>
53
+
54
+ <ul class="inline-list">
55
+ <li><a href="#">Link 1</a></li>
56
+ <li><a href="#">Link 2</a></li>
57
+ <li><a href="#">Link 3</a></li>
58
+ <li><a href="#">Link 4</a></li>
59
+ <li><a href="#">Link 5</a></li>
60
+ </ul>
61
+
62
+ <h5>Default SCSS Variables</h5>
63
+
64
+ <%= code_example '
65
+ /* We use this to control the margins and padding of the inline list. */
66
+ $inline-list-margin-bottom: emCalc(17px) emCalc(-22px );
67
+ $inline-list-margin: 0 0;
68
+ $inline-list-padding: 0;
69
+
70
+ /* We use this to control the overflow of the inline list. */
71
+ $inline-list-overflow: hidden;
72
+
73
+ /* We use this to control the list items */
74
+ $inline-list-display: block;
75
+
76
+ /* We use this to control any elments within list items */
77
+ $inline-list-children-display: block;', :css %>
78
+
79
+ <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>
80
+
81
+ </div>
82
+ </div>
83
+ </div>
84
+
85
+ <div class="large-3 pull-9 columns">
86
+ <%= render "_sidebar-components.html.erb" %>
87
+ </div>
88
+
89
+ </div>
@@ -0,0 +1,178 @@
1
+ <div class="row">
2
+ <div class="large-9 push-3 columns">
3
+
4
+ <% @page_title = "Joyride" %>
5
+ <div class="row">
6
+ <div class="large-12 columns">
7
+ <h2><%= @page_title %></h2>
8
+ <h4 class="subheader">Joyride is an extremely flexible plugin that gives users a tour of your site or app when they visit.</h4>
9
+
10
+ <div id="firstStop" class="panel">Some awesome part of your site!</div>
11
+
12
+ <hr>
13
+ </div>
14
+ </div>
15
+
16
+ <div class="row">
17
+ <div class="large-12 columns">
18
+ <h2 id="numero1" class="so-awesome">Build Joyride with HTML</h2>
19
+ <p>At the bottom of your page but inside of the body, place either an <code>ol</code> or <code>ul</code> with the <code>data-joyride</code> attribute. This list will contain all of the stops on your tour. To associate the tour stops with an item on your page, make sure the ID and data-id match between the two. If you do not associate an if, the tour stop will take on a modal style, positioning itself in the middle of the screen.</p>
20
+
21
+ <%= code_example '
22
+ <!-- At the bottom of your page but inside of the body tag -->
23
+ <ol class="joyride-list" data-joyride>
24
+ <li data-id="firstStop" data-text="Next">
25
+ <p>Hello and welcome to the Joyride documentation page.</p>
26
+ </li>
27
+ <li data-id="numero1" data-class="custom so-awesome" data-text="Next">
28
+ <h4>Stop #1</h4>
29
+ <p>You can control all the details for you tour stop. Any valid HTML will work inside of Joyride.</p>
30
+ </li>
31
+ <li data-id="numero2" data-button="Next" data-options="tipLocation:top;tipAnimation:fade">
32
+ <h4>Stop #2</h4>
33
+ <p>Get the details right by styling Joyride with a custom stylesheet!</p>
34
+ </li>
35
+ <li data-button="Next">
36
+ <h4>Stop #4</h4>
37
+ <p>It works as a modal too!</p>
38
+ </li>
39
+ </ol>
40
+ ', :html %>
41
+
42
+ <h5>We Add Some HTML with JS</h5>
43
+ <p>To make Joyride really easy to use, we built its container and tour element inside the JS. This can make it hard to know what to target for styling purposes in some cases. To help this process go smoothly, here's what the output looks like with the appropriate classes to target for styling:</p>
44
+
45
+ <%= code_example '
46
+ <!-- Here is the markup our JS creates for you -->
47
+ <div class="joyride-tip-guide">
48
+ <span class="joyride-nub top"></span>
49
+ <div class="joyride-content-wrapper">
50
+ <p>Hello and welcome to the Joyride documentation page.</p>
51
+ <a href="#" class="small button joyride-next-tip">Next</a>
52
+ <a href="#close" class="joyride-close-tip">×</a>
53
+ </div>
54
+ </div>
55
+ ', :html %>
56
+
57
+ <hr>
58
+
59
+ <h3 id="numero2">Available SCSS Variables</h3>
60
+ <p>We've included a bunch of variables that you'll be able to use if you're into getting SASSy with things.</p>
61
+
62
+ <%= code_example '
63
+ /* Controlling default Joyride styles */
64
+ $joyride-tip-bg: rgb(0,0,0);
65
+ $joyride-tip-default-width: 300px;
66
+ $joyride-tip-padding: emCalc(18px) emCalc(20px) emCalc(24px);
67
+ $joyride-tip-border: solid 1px #555;
68
+ $joyride-tip-radius: 4px;
69
+ $joyride-tip-position-offset: 22px;
70
+
71
+ /* Here, we are setting the tip dont styles */
72
+ $joyride-tip-font-color: #fff;
73
+ $joyride-tip-font-size: emCalc(14px);
74
+ $joyride-tip-header-weight: bold;
75
+
76
+ /* This changes the nub size */
77
+ $joyride-tip-nub-size: 14px;
78
+
79
+ /* This adjusts the styles for the timer when its enabled */
80
+ $joyride-tip-timer-width: 50px;
81
+ $joyride-tip-timer-height: 3px;
82
+ $joyride-tip-timer-color: #666;
83
+
84
+ /* This changes up the styles for the close button */
85
+ $joyride-tip-close-color: #777;
86
+ $joyride-tip-close-size: 30px;
87
+ $joyride-tip-close-weight: normal;
88
+
89
+ /* When Joyride is filling the screen, we use this style for the bg */
90
+ $joyride-screenfill: rgba(0,0,0,0.5);
91
+ ', :css %>
92
+
93
+ <hr>
94
+
95
+ <h3>Using the JavaScript</h3>
96
+ <p>You'll need to include <code>foundation.joyride.js</code> to get plugin to work. You'll also need to make sure to include <code>zepto.js</code> and <code>foundation.js</code> above the alert 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>
97
+
98
+ <p><a href="../javascript.html" title="How to install Foundation JavaScript">Read how to install Foundation JavaScript</a></p>
99
+
100
+ <p>Required Foundation Library: <code>foundation.joyride.js</code>, Optional JS Library: <code>foundation.cookie.js</code></p>
101
+
102
+ <p>Joyride does not initialize on page load like the rest of the plugins. You need to call <code>start</code> to get it to load.</p>
103
+
104
+ <%= code_example '
105
+ <script type="text/javascript">
106
+ $(document).foundation(\'joyride\', \'start\');
107
+ </script>
108
+ ', :html %>
109
+
110
+ <p>Then, you'll need to add a data-joyride to make the JS work properly on that element. It looks something like this:</p>
111
+
112
+ <%= code_example '
113
+ <ol data-joyride>
114
+ ...
115
+ </ol>
116
+ ', :html %>
117
+
118
+ <h5>Optional JavaScript Configuration</h5>
119
+
120
+ <p>You can either set these options in a <code>data-options</code> attribute in the markup, <code>data-options="option: value; option2: value syntax"</code>, or pass in on initialization. Configurations that are <i>objects</i>, <i>functions</i>, or <i>arrays</i> can only be passed in during intitialization.</p>
121
+
122
+ <%= code_example "
123
+ {
124
+ tipLocation : 'bottom', // 'top' or 'bottom' in relation to parent
125
+ nubPosition : 'auto', // override on a per tooltip bases
126
+ scrollSpeed : 300, // Page scrolling speed in milliseconds
127
+ timer : 0, // 0 = no timer , all other numbers = timer in milliseconds
128
+ startTimerOnClick : true, // true or false - true requires clicking the first button start the timer
129
+ startOffset : 0, // the index of the tooltip you want to start on (index of the li)
130
+ nextButton : true, // true or false to control whether a next button is used
131
+ tipAnimation : 'fade', // 'pop' or 'fade' in each tip
132
+ pauseAfter : [], // array of indexes where to pause the tour after
133
+ tipAnimationFadeSpeed: 300, // when tipAnimation = 'fade' this is speed in milliseconds for the transition
134
+ cookieMonster : false, // true or false to control whether cookies are used
135
+ cookieName : 'joyride', // Name the cookie you'll use
136
+ cookieDomain : false, // Will this cookie be attached to a domain, ie. '.notableapp.com'
137
+ cookieExpires : 365, // set when you would like the cookie to expire.
138
+ tipContainer : 'body', // Where will the tip be attached
139
+ postRideCallback : function (){}, // A method to call once the tour closes (canceled or complete)
140
+ postStepCallback : function (){}, // A method to call after each step
141
+ template : { // HTML segments for tip layout
142
+ link : '<a href=\"#close\" class=\"joyride-close-tip\">&times;</a>',
143
+ timer : '<div class=\"joyride-timer-indicator-wrap\"><span class=\"joyride-timer-indicator\"></span></div>',
144
+ tip : '<div class=\"joyride-tip-guide\"><span class=\"joyride-nub\"></span></div>',
145
+ wrapper : '<div class=\"joyride-content-wrapper\"></div>',
146
+ button : '<a href=\"#\" class=\"small button joyride-next-tip\"></a>'
147
+ }
148
+ }", :json %>
149
+
150
+ </div>
151
+ </div>
152
+
153
+ </div>
154
+
155
+ <div class="large-3 pull-9 columns">
156
+ <%= render "_sidebar-components.html.erb" %>
157
+ </div>
158
+
159
+ </div>
160
+
161
+ <!-- TOUR STOPS -->
162
+ <ol class="joyride-list" data-joyride>
163
+ <li data-id="firstStop" data-text="Next">
164
+ <p>Hello and welcome to the Joyride documentation page.</p>
165
+ </li>
166
+ <li data-id="numero1" data-class="custom so-awesome" data-text="Next">
167
+ <h4>Stop #1</h4>
168
+ <p>You can control all the details for you tour stop. Any valid HTML will work inside of Joyride.</p>
169
+ </li>
170
+ <li data-id="numero2" data-button="Next" data-options="tipLocation:top;tipAnimation:fade">
171
+ <h4>Stop #2</h4>
172
+ <p>Get the details right by styling Joyride with a custom stylesheet!</p>
173
+ </li>
174
+ <li data-button="Next">
175
+ <h4>Stop #4</h4>
176
+ <p>It works as a modal too!</p>
177
+ </li>
178
+ </ol>