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,181 @@
1
+ <div class="row">
2
+ <div class="large-9 push-3 columns">
3
+
4
+ <% @page_title = "Pagination" %>
5
+ <div class="row">
6
+ <div class="large-12 columns">
7
+ <h1><%= @page_title %></h1>
8
+ <h4 class="subheader">Moving between pages has become less common with the advent of longer pages and AJAX loading, but it can still be useful for long, repetitive listings or content.</h4>
9
+ </div>
10
+ </div>
11
+
12
+ <div class="row">
13
+ <div class="large-12 columns">
14
+
15
+ <ul class="pagination">
16
+ <li class="arrow unavailable"><a href="">&laquo;</a></li>
17
+ <li class="current"><a href="">1</a></li>
18
+ <li><a href="">2</a></li>
19
+ <li><a href="">3</a></li>
20
+ <li><a href="">4</a></li>
21
+ <li class="unavailable"><a href="">&hellip;</a></li>
22
+ <li><a href="">12</a></li>
23
+ <li><a href="">13</a></li>
24
+ <li class="arrow"><a href="">&raquo;</a></li>
25
+ </ul>
26
+
27
+ <hr>
28
+
29
+ <h3>Build With Predefined HTML Classes</h3>
30
+ <p>There are two ways to build pagination in Foundation 4: with our predefined HTML or with our mixin. Building pagination using our predefined classes isn't hard at all. You'll start with an unordered list and add a class of <code>.pagination</code> to it. From there, you just need to add list items with links in them. Those list items have a few options you can use:</p>
31
+
32
+ <ul class="disc">
33
+ <li>To create the arrows, make sure you have <code>&lt;li class="arrow"&gt;</code> as your first and last list items.</li>
34
+ <li>To mark the current page, use <code>&lt;li class="current"&gt;</code></li>
35
+ <li>Add a class of <code>.inactive</code> to a list item to make it not clickable, like for the ellipsis in the middle.</li>
36
+ <li>The page numbers and symbols are always inside of an anchor that you'll link to the page.</li>
37
+ </ul>
38
+
39
+ <%= code_example '
40
+ <ul class="pagination">
41
+ <li class="arrow unavailable"><a href="">&laquo;</a></li>
42
+ <li class="current"><a href="">1</a></li>
43
+ <li><a href="">2</a></li>
44
+ <li><a href="">3</a></li>
45
+ <li><a href="">4</a></li>
46
+ <li class="unavailable"><a href="">&hellip;</a></li>
47
+ <li><a href="">12</a></li>
48
+ <li><a href="">13</a></li>
49
+ <li class="arrow"><a href="">&raquo;</a></li>
50
+ </ul>', :html %>
51
+
52
+ <p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected pagination from a custom package. These should be linked up following our default <a href="#">HTML page structure</a>.</p>
53
+
54
+ <h5>Centered Pagination</h5>
55
+ <p>In some instances, you'll want you pagination to be centered within a container. We've got you covered! Just wrap your unordered list in something that has a defined width and add the class, <code>.pagination-centered</code>.</p>
56
+
57
+ <%= code_example '
58
+ <div class="pagination-centered">
59
+ <ul class="pagination">
60
+ <li class="arrow unavailable"><a href="">&laquo;</a></li>
61
+ <li class="current"><a href="">1</a></li>
62
+ <li><a href="">2</a></li>
63
+ <li><a href="">3</a></li>
64
+ <li><a href="">4</a></li>
65
+ <li class="unavailable"><a href="">&hellip;</a></li>
66
+ <li><a href="">12</a></li>
67
+ <li><a href="">13</a></li>
68
+ <li class="arrow"><a href="">&raquo;</a></li>
69
+ </ul>
70
+ </div>', :html %>
71
+
72
+ <div class="pagination-centered">
73
+ <ul class="pagination">
74
+ <li class="arrow unavailable"><a href="">&laquo;</a></li>
75
+ <li class="current"><a href="">1</a></li>
76
+ <li><a href="">2</a></li>
77
+ <li><a href="">3</a></li>
78
+ <li><a href="">4</a></li>
79
+ <li class="unavailable"><a href="">&hellip;</a></li>
80
+ <li><a href="">12</a></li>
81
+ <li><a href="">13</a></li>
82
+ <li class="arrow"><a href="">&raquo;</a></li>
83
+ </ul>
84
+ </div>
85
+
86
+ <hr>
87
+
88
+ <h3>Build with a Mixin</h3>
89
+ <p>We've included SCSS mixins used to style pagination. 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="#">_pagination.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>
90
+
91
+ <%= code_example '
92
+ @import "foundation/foundation-global", "foundation/pagination";
93
+ ', :css %>
94
+
95
+ <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like to the unordered list. The interior classes come with the mixin, just make sure you follow our markup structure:</p>
96
+
97
+ <%= code_example '
98
+ <ul class="your-class-name">
99
+ <li class="arrow unavailable"><a href="">&laquo;</a></li>
100
+ <li class="current"><a href="">1</a></li>
101
+ <li><a href="">2</a></li>
102
+ <li><a href="">3</a></li>
103
+ <li><a href="">4</a></li>
104
+ <li class="unavailable"><a href="">&hellip;</a></li>
105
+ <li><a href="">12</a></li>
106
+ <li><a href="">13</a></li>
107
+ <li class="arrow"><a href="">&raquo;</a></li>
108
+ </ul>
109
+ ', :html %>
110
+
111
+ <h5>Quick Mixin</h5>
112
+ <p>You can build your pagination 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 full list of items, the code looks like this:</p>
113
+
114
+ <%= code_example '
115
+ .your-class-name { @include pagination; }', :css %>
116
+
117
+ <ul class="pagination">
118
+ <li class="arrow unavailable"><a href="">&laquo;</a></li>
119
+ <li class="current"><a href="">1</a></li>
120
+ <li><a href="">2</a></li>
121
+ <li><a href="">3</a></li>
122
+ <li><a href="">4</a></li>
123
+ <li class="unavailable"><a href="">&hellip;</a></li>
124
+ <li><a href="">12</a></li>
125
+ <li><a href="">13</a></li>
126
+ <li class="arrow"><a href="">&raquo;</a></li>
127
+ </ul>
128
+
129
+ <h5>Centering</h5>
130
+ <p>Just like with the CSS, we've made it easy to center the pagination element using the quick mixin.</p>
131
+
132
+ <%= code_example '
133
+ .your-class-name { @include pagination($centered, $base-styles); }
134
+
135
+ /* Setting this to true will add styles to the parent of your pagination element for centering */
136
+ $centered: false
137
+
138
+ /* This controls whether or not the base styles come across. Useful when applying the centered option. */
139
+ $base-style: true
140
+ ', :css %>
141
+
142
+ <h5>Default SCSS Variables</h5>
143
+
144
+ <%= code_example '
145
+ /* We use these to control the pagination container */
146
+ $pagination-height: emCalc(24px);
147
+ $pagination-margin: emCalc(-5px);
148
+
149
+ /* We use these to set the list-item properties */
150
+ $pagination-li-float: $default-float;
151
+ $pagination-li-height: emCalc(24px);
152
+ $pagination-li-font-color: #222;
153
+ $pagination-li-font-size: emCalc(14px);
154
+ $pagination-li-margin: emCalc(5px);
155
+
156
+ /* We use these for the pagination anchor links */
157
+ $pagination-link-pad: emCalc(1px) emCalc(7px) emCalc(1px);
158
+ $pagination-link-font-color: #999;
159
+ $pagination-link-active-bg: darken(#fff, 10%);
160
+
161
+ /* We use these for disabled anchor links */
162
+ $pagination-link-unavailable-cursor: default;
163
+ $pagination-link-unavailable-font-color: #999;
164
+ $pagination-link-unavailable-bg-active: transparent;
165
+
166
+ /* We use these for currently selected anchor links */
167
+ $pagination-link-current-background: $primary-color;
168
+ $pagination-link-current-font-color: #fff;
169
+ $pagination-link-current-font-weight: bold;
170
+ $pagination-link-current-cursor: default;
171
+ $pagination-link-current-active-bg: $primary-color;', :css %>
172
+
173
+ <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>
174
+
175
+ </div>
176
+ </div>
177
+ </div>
178
+ <div class="large-3 pull-9 columns">
179
+ <%= render "_sidebar-components.html.erb" %>
180
+ </div>
181
+ </div>
@@ -0,0 +1,121 @@
1
+ <div class="row">
2
+ <div class="large-9 push-3 columns">
3
+
4
+ <% @page_title = "Panels" %>
5
+ <div class="row">
6
+ <div class="large-12 columns">
7
+ <h2><%= @page_title %></h2>
8
+ <h4 class="subheader">A panel is a simple, helpful Foundation component that enables you to outline sections of your page easily. This allows you to view your page sections as you add content to them or add emphasis to a section. The width is controlled by the grid columns you put them inside.</h4>
9
+ </div>
10
+ </div>
11
+
12
+ <div class="row">
13
+ <div class="large-12 columns">
14
+
15
+ <div class="row">
16
+ <div class="large-6 columns">
17
+ <div class="panel">
18
+ <h5>This is a regular panel.</h5>
19
+ <p>It has an easy to override visual style, and is appropriately subdued.</p>
20
+ </div>
21
+ </div>
22
+ <div class="large-6 columns">
23
+ <div class="panel callout radius">
24
+ <h5>This is a callout panel.</h5>
25
+ <p>It's a little ostentatious, but useful for important content.</p>
26
+ </div>
27
+ </div>
28
+ </div>
29
+
30
+ <hr>
31
+
32
+ <h3>Build With Predefined HTML Classes</h3>
33
+ <p>There are two ways to build panels in Foundation 4, either with our predefined HTML or with our mixin. Building panels using our predefined class isn't hard at all. You'll start with <code>&lt;div&gt;</code> and add a class of <code>.panel</code> to it. From there, you just need to add content inside, anything will do.</p>
34
+
35
+ <p>Available HTML class options:</p>
36
+ <ul class="disc">
37
+ <li>Adding <code>.callout</code> to your panel will make it our default blue and add a shiny top edge to help it stand out.</li>
38
+ <li>You may also you <code>.radius</code> to add a tasteful border-radius to thie mix.</li>
39
+ </ul>
40
+
41
+ <%= code_example '
42
+ <div class="panel">
43
+ <!-- Content here -->
44
+ </div>', :html %>
45
+
46
+ <div class="panel">Basic panel with content.</div>
47
+
48
+ <p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected panels from a custom package. These should be linked up following our default <a href="#">HTML page structure</a>.</p>
49
+
50
+ <hr>
51
+
52
+ <h3>Build with a Mixin</h3>
53
+ <p>We've included SCSS mixins used to style panels so that you can code smarter. 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="#">_panels.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>
54
+
55
+ <%= code_example '
56
+ @import "foundation/foundation-global", "foundation/panels";
57
+ ', :css %>
58
+
59
+ <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like to the <code>&lt;div&gt;</code>.</p>
60
+
61
+ <%= code_example '
62
+ <div class="your-class-name">
63
+ <!-- Content here -->
64
+ </div>', :html %>
65
+
66
+ <h5>Quick Mixin</h5>
67
+ <p>You can build your panel using our global mixin by including it on your own custom class or ID. The mixin contains all the necessary styles and they can be customized a bit within the mixin. The rest of the important styles are controlled by variables. The code looks like this:</p>
68
+
69
+ <%= code_example '
70
+ .your-class-name { @include panel; }', :css %>
71
+
72
+ <div class="panel">
73
+ Panel content goes here...
74
+ </div>
75
+
76
+ <p>You also have <strong>two options</strong> available to customize the panel within the mixin. These control the background color (which also effect border and font color) and the interior padding of the panel itself.</p>
77
+
78
+ <%= code_example '
79
+ .your-class-name { @include panel($bg, $padding); }
80
+
81
+ /* This controls the background color, border color and type color based on brightness of the bg. */
82
+ $bg: $secondary-color
83
+
84
+ /* This controls the interior padding */
85
+ $padding: $panel-padding
86
+ ', :css %>
87
+
88
+ <div class="panel-custom">
89
+ Custom panel. Hell yeah! We used @include panel(pink, 40px);
90
+ </div>
91
+
92
+ <h5>Default SCSS Variables</h5>
93
+
94
+ <%= code_example '
95
+ /* We use these to control the background and border styles */
96
+ $panel-bg: darken(#fff, 5%);
97
+ $panel-border-style: solid;
98
+ $panel-border-size: 1px;
99
+
100
+ /* We use this % to control how much we darken things on hover */
101
+ $panel-function-factor: 10%;
102
+ $panel-border-color: darken($panel-bg, $panel-function-factor);
103
+
104
+ /* We use these to set default inner padding and bottom margin */
105
+ $panel-margin-bottom: emCalc(20px);
106
+ $panel-padding: emCalc(20px);
107
+
108
+ /* We use these to set default font colors */
109
+ $panel-font-color: #333;
110
+ $panel-font-color-alt: #fff;', :css %>
111
+
112
+ <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>
113
+
114
+
115
+ </div>
116
+ </div>
117
+ </div>
118
+ <div class="large-3 pull-9 columns">
119
+ <%= render "_sidebar-components.html.erb" %>
120
+ </div>
121
+ </div>
@@ -0,0 +1,154 @@
1
+ <div class="row">
2
+ <div class="large-9 push-3 columns">
3
+
4
+ <% @page_title = "Pricing Tables" %>
5
+ <div class="row">
6
+ <div class="large-12 columns">
7
+ <h2><%= @page_title %></h2>
8
+ <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>
9
+ </div>
10
+ </div>
11
+
12
+ <div class="row">
13
+ <div class="large-12 columns">
14
+
15
+ <div class="row">
16
+ <div class="large-4 columns large-centered">
17
+ <ul class="pricing-table">
18
+ <li class="title">Standard</li>
19
+ <li class="price">$99.99</li>
20
+ <li class="description">An awesome description</li>
21
+ <li class="bullet-item">1 Database</li>
22
+ <li class="bullet-item">5GB Storage</li>
23
+ <li class="bullet-item">20 Users</li>
24
+ <li class="cta-button"><a class="button" href="#">Buy Now</a></li>
25
+ </ul>
26
+ </div>
27
+ </div>
28
+
29
+ <hr>
30
+
31
+ <h3>Build With Predefined HTML Classes</h3>
32
+ <p>There are two ways to build pricing tables in Foundation 4: with our predefined HTML or with our mixins. Building pricing tables with our predefined classes is quite easy. You'll start with an <code>&lt;ul&gt;</code> and add a class of <code>.pricing-table</code> to it. From there, you just need to add list items inside that represent each piece of the table.</p>
33
+
34
+ <p>Available HTML class options for the list items:</p>
35
+ <ul class="disc">
36
+ <li><code>&lt;li class="title"&gt;</code>: Creates the styles for a title.</li>
37
+ <li><code>&lt;li class="price"&gt;</code>: Add a price that stands out.</li>
38
+ <li><code>&lt;li class="description"&gt;</code>: If you need to descript the plan, add this.</li>
39
+ <li><code>&lt;li class="bullet-item"&gt;</code>: To call out features, use this list item.</li>
40
+ <li><code>&lt;li class="cta-button"&gt;</code>: To add a button inside a list item, use this.</li>
41
+ </ul>
42
+
43
+ <%= code_example '
44
+ <ul class="pricing-table">
45
+ <li class="title">Standard</li>
46
+ <li class="price">$99.99</li>
47
+ <li class="description">An awesome description</li>
48
+ <li class="bullet-item">1 Database</li>
49
+ <li class="bullet-item">5GB Storage</li>
50
+ <li class="bullet-item">20 Users</li>
51
+ <li class="cta-button"><a class="button" href="#">Buy Now</a></li>
52
+ </ul>', :html %>
53
+
54
+ <p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected pricing-tables from a custom package. These should be linked up following our default <a href="#">HTML page structure</a>.</p>
55
+
56
+ <hr>
57
+
58
+ <h3>Build with a Mixin</h3>
59
+ <p>We've included SCSS mixins used to style pricing tables so that you can code how you want to. 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="#">_pricing-tables.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>
60
+
61
+ <%= code_example '
62
+ @import "foundation/foundation-global", "foundation/pricing-tables";
63
+ ', :css %>
64
+
65
+ <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like with the <code>&lt;ul&gt;</code> and the list items inside it.</p>
66
+
67
+ <%= code_example '
68
+ <ul class="your-pricing-class">
69
+ <li class="your-title-class">Title</li>
70
+ <li class="your-price-class">$$$</li>
71
+ <li class="your-desc-class">...</li>
72
+ <li class="your-bullet-class">Bullet</li>
73
+ <li class="your-cta-class"><a class="your-button-class" href="#">Button</a></li>
74
+ </ul>', :html %>
75
+
76
+ <h5>The Container Mixin</h5>
77
+ <p>Pricing tables are built up from an unordered list. We give this container some necessary styles by using our container mixin. There are no customizable options within the mixin, but everything can be changed using the SCSS variables below.</p>
78
+
79
+ <%= code_example '
80
+ .your-pricing-class { @include pricing-table-container;
81
+ .your-title-class { @include pricing-table-title; }
82
+ .your-price-class { @include pricing-table-price; }
83
+ .your-desc-class { @include pricing-description-title; }
84
+ .your-bullet-class { @include pricing-table-bullet; }
85
+ .your-cta-class { @include pricing-table-cta; }
86
+ }', :css %>
87
+
88
+ <ul class="pricing-table">
89
+ <li class="title">Standard</li>
90
+ <li class="price">$99.99</li>
91
+ <li class="description">An awesome description</li>
92
+ <li class="bullet-item">1 Database</li>
93
+ <li class="bullet-item">5GB Storage</li>
94
+ <li class="bullet-item">20 Users</li>
95
+ <li class="cta-button"><a class="button" href="#">Buy Now</a></li>
96
+ </ul>
97
+
98
+ <h5>Default SCSS Variables</h5>
99
+
100
+ <%= code_example '
101
+ /* We use this to control the border color */
102
+ $price-table-border: solid 1px #ddd;
103
+
104
+ /* We use this to control the bottom margin of the pricing table */
105
+ $price-table-margin-bottom: emCalc(20px);
106
+
107
+ /* We use these to control the title styles */
108
+ $price-title-bg: #ddd;
109
+ $price-title-padding: emCalc(15px) emCalc(20px);
110
+ $price-title-align: center;
111
+ $price-title-color: #333;
112
+ $price-title-weight: bold;
113
+ $price-title-size: emCalc(16px);
114
+
115
+ /* We use these to control the price styles */
116
+ $price-money-bg: #eee;
117
+ $price-money-padding: emCalc(15px) emCalc(20px);
118
+ $price-money-align: center;
119
+ $price-money-color: #333;
120
+ $price-money-weight: normal;
121
+ $price-money-size: emCalc(20px);
122
+
123
+ /* We use these to control the description styles */
124
+ $price-bg: #fff;
125
+ $price-desc-color: #777;
126
+ $price-desc-padding: emCalc(15px);
127
+ $price-desc-align: center;
128
+ $price-desc-font-size: emCalc(12px);
129
+ $price-desc-weight: normal;
130
+ $price-desc-line-height: 1.4;
131
+ $price-desc-bottom-border: dotted 1px #ddd;
132
+
133
+ /* We use these to control the list item styles */
134
+ $price-item-color: #333;
135
+ $price-item-padding: emCalc(15px);
136
+ $price-item-align: center;
137
+ $price-item-font-size: emCalc(14px);
138
+ $price-item-weight: normal;
139
+ $price-item-bottom-border: dotted 1px #ddd;
140
+
141
+ /* We use these to control the CTA area styles */
142
+ $price-cta-bg: #f5f5f5;
143
+ $price-cta-align: center;
144
+ $price-cta-padding: emCalc(20px) emCalc(20px) 0;', :css %>
145
+
146
+ <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>
147
+
148
+ </div>
149
+ </div>
150
+ </div>
151
+ <div class="large-3 pull-9 columns">
152
+ <%= render "_sidebar-components.html.erb" %>
153
+ </div>
154
+ </div>