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,5 @@
1
+ <div class="jobs hide-on-phones">
2
+ <h5>Awesome product jobs:</h5>
3
+ <script type="text/javascript" src="http://www.zurb.com/jobs/widgets/jobs.js?limit=3&variation=foundation-sidebar"></script>
4
+ <a id="via" href="http://zurbjobs.com">via&nbsp;<span class="jobs-link">ZURBjobs</span></a>
5
+ </div>
@@ -0,0 +1,185 @@
1
+ <div class="row">
2
+ <div class="large-3 columns">
3
+ <%= render "_sidebar.html.erb" %>
4
+ </div>
5
+
6
+ <div class="large-9 columns">
7
+
8
+ <% @page_title = "Changelog" %>
9
+ <h2><%= @page_title %></h2>
10
+
11
+ <h4 class="subheader">We'll keep you up to date with what we've released so you at least have a gist of what goes into each update. For the most part, we'll try to list things out as detailed as we see necessary.</h4>
12
+
13
+ <hr />
14
+
15
+ <h5><strong>4.0</strong> &mdash; Feburary 28, 2013</h5>
16
+ <p>Initial launch of Foundation 4, a rewritten, mobile-first implementation of the framework. Major enhancements include a mobile-first approach across the board, Scss tools to allow for all-semantic coding, and rewritten JS plugins for speed and ease of use. Marketing site updates, new docs, refined and simplified styles and more. Review the <a href="../migration.php">migration guide</a> for more information.</p>
17
+
18
+ <h5>3.2.5 &mdash; January 26, 2013</h5>
19
+ <p>This patch fixes compatability with jQuery 1.9. This patch includes:</p>
20
+ <ul class="disc">
21
+ <li>Bumped Topbar to 2.04 and removed deprecated jQuery die() and live() events.</li>
22
+ <li>Fixed magellan destination undefined error.</li>
23
+ <li>Add Clearing and Joyride to SCSS project templates.</li>
24
+ </ul>
25
+
26
+ <h5>3.2.4 &mdash; January 14, 2013</h5>
27
+ <p>This patch includes bug fixes and a few style improvements for small UI elements. This patch includes:</p>
28
+ <ul class="disc">
29
+ <li>Bumped Joyride to version 2.0.3</li>
30
+ <li>Added centered pagination style</li>
31
+ <li>Fixed bug with Orbit captions</li>
32
+ <li>Fixed bugs with clicking on accordion element</li>
33
+ <li>Added styling for buttons inside dropdowns</li>
34
+ <li>We're now using max-width instead of width on tooltips</li>
35
+ <li>Added class, .tip-centered-top and .top-centered-bottom for positioning tooltips</li>
36
+ <li>Added functionality to create a stick top bar that enables it to be down the page in the markup and stick when it hits the browser edge.</li>
37
+ <li>Fixes to the semantic grid mixin</li>
38
+ <li>Added better :focus styles for error inputs</li>
39
+ <li>Added settings for Top Bar Toggle color</li>
40
+ <li>Updated Modular Scale to version 1.0.6</li>
41
+ <li>Fixed bug with printing styles</li>
42
+ </ul>
43
+
44
+ <hr>
45
+
46
+ <h5>3.2.3</h5>
47
+ <p>This patch fixes a few quick bugs.</p>
48
+
49
+ <hr>
50
+
51
+ <h5>3.2.2 &mdash; November 10, 2012</h5>
52
+ <p>This patch fixes a typo found in the tabs plugin.</p>
53
+
54
+ <hr>
55
+
56
+ <h5>3.2.1 &mdash; November 9, 2012</h5>
57
+ <p>This patch include bug fixes for various elements, such as:</p>
58
+ <ul class="disc">
59
+ <li>Adding a missing line for mqueries.scss into app.scss</li>
60
+ <li>Height of fixed magellan element</li>
61
+ <li>Update viewport tag with initial-scale</li>
62
+ <li>Dropdown button fixes</li>
63
+ <li>Clearing bug fixes</li>
64
+ <li>Added a font-smoothing variable</li>
65
+ <li>Added close support to accordions</li>
66
+ <li>Removed deep linking hashes from tabs</li>
67
+ <li>Topbar now resets on close for small layouts</li>
68
+ </ul>
69
+
70
+ <hr>
71
+
72
+ <h5><strong>3.2</strong> &mdash; October 26, 2012</h5>
73
+ <p>With this update we've revamped our documentation to be more organized and explain details regarding Scss, Compass and Javascripts.</p>
74
+
75
+ <p>The updates to Foundation itself are as follows:</p>
76
+ <ul class="disc">
77
+ <li>Added <a href="http://foundation.zurb.com/docs/magellan.php">Magellan</a>, a plugin for building design agnostic sticky navs that know where you are on the page.</li>
78
+ <li>Added <a href="http://foundation.zurb.com/docs/joyride.php">Joyride</a>, our plugin for creating tours of your website or app.</li>
79
+ <li>Added <a href="http://foundation.zurb.com/docs/clearing.php">Clearing</a>, our new responsive image gallery lightbox plugin.</li>
80
+ <li>Cleaned up Orbit a bit. We now use opacity on each slide so you don't have stacking problems or different image size problems. You can now optionally stack slides on mobile. Orbit can now be swipable on mobile as well.</li>
81
+ <li>Updated Reveal</li>
82
+ <li>Updated index files to use defined header and footer structure</li>
83
+ <li>Cleaned up some Compass included</li>
84
+ <li>RTL for ui and navbar.</li>
85
+ <li>Tabs can now use unordered lists or definition lists, replacing the definition title with an li.section-title.</li>
86
+ <li>Added definition list styles.</li>
87
+ <li>Added mobile-#-up classes to use in conjunction with regular block-grid classes for a different mobile grid.</li>
88
+ <li>Updated block grids to be really flexible and customizable based on a variable.</li>
89
+ <li>Added better responsive styling for tooltips.</li>
90
+ <li>Separated all media queries into their own file for easy droppping.</li>
91
+ <li>Updated modular scale to use new functions, doesn't effect end-users.</li>
92
+ <li>Updated visibility classes to use inherit instead of block to accomodate for spans.</li>
93
+ <li>Removed HTML5 Shiv from header since its included in modernizr.</li>
94
+ <li>Added <a href="http://foundation.zurb.com/docs/elements.php#pricing-tables">pricing tables</a> UI element</li>
95
+ <li>Added many new Scss variables to control styling for things like: topbar, clearing, joyride, pricint tables, etc.</li>
96
+ <li>Bug fixes for Topbar.</li>
97
+ <li>Added 5 <a href="http://foundation.zurb.com/templates.php">HTML templates</a> to the add-ons section.</li>
98
+ </ul>
99
+
100
+ <hr>
101
+
102
+ <h5>3.1.1 &mdash; September 19, 2012</h5>
103
+ <p>Updating Top Bar navigation implementation pattern to wrap <code>.contain-to-grid</code> and/or <code>.fixed</code> around the <code>nav</code> element to prevent horizontal scroll bars when using <code>.contain-to-grid</code>. Updated the topBar breakpoint option so users only need to update the Scss variable.</p>
104
+
105
+ <hr>
106
+
107
+ <h5><strong>3.1</strong> &mdash; September 14, 2012</h5>
108
+ <p>Launched new features, a new Add-ons section to the marketing site, Right to left language support, and fixed bugs.</p>
109
+ <p>With this release of Foundation, we include:</p>
110
+ <ul class="disc" style="list-style: outside;">
111
+ <li>Downloadable HTML template pages that can be copy/pasted into an existing project or added to your project upon downloading from the customizer.</li>
112
+ <li>The Add-on's section includes a round-up of all the playground pieces, etc that aren't officially included in Foundation, but built to work with it. This includes: <a href="../templates.php">Templates</a>, <a href="../icon-fonts.php">Icon Fonts</a>, <a href="../off-canvas.php">Off-Canvas Layouts</a>, <a href="../responsive-tables.php">Responsive Tables</a>, <a href="../social-icons.php">SVG Social Icons</a>, and <a href="../stencils.php">Omnigraffle Stencils</a>.</li>
113
+ <li>Foundation now includes a <a href="navigation.php">responsive top navigation</a> bar that lets you have control over when it responds and what you include in it. We've made it really easy to customize using Scss.</li>
114
+ <li>Right-to-left language support straight out of the box. You can adjust this in the settings.scss file or upon downloading with the customizer.</li>
115
+ <li>New UI Styles for Progress Bars and Image Thumbs.</li>
116
+ <li>Updated to include jQuery 1.8.1</li>
117
+ <li>Orbit thumbnail documentation.</li>
118
+ <li>Better Reveal size documentation.</li>
119
+ </ul>
120
+
121
+ <hr>
122
+
123
+ <h5>3.0.9 &mdash; August 14, 2012</h5>
124
+ <p>Bug fixes and locking down dependencies.</p>
125
+
126
+ <hr>
127
+
128
+ <h5>3.0.8 &mdash; August 10, 2012</h5>
129
+ <p>Numerous bugfixes. Added media query toggle plugin. Removed marketing site from repository and included a new <strong>test/</strong> directory to help contributors test patches.</p>
130
+ <p>New features: Media Query Toggler, block-grid mobile layouts, font-size customizer options and included modular scale gem as dependancy for SCSS version.</p>
131
+
132
+ <h5>3.0.7 &mdash; July 30, 2012</h5>
133
+ <p>Numerous JS bug fixes, added generators for Rails and refactored SCSS directory for better maintainability and scalability over time. CSS files weren't affected by this refactoring.</p>
134
+
135
+ <hr>
136
+
137
+ <h5>3.0.6 &mdash; July 20, 2012</h5>
138
+ <p>Numerous bugfixes including dropdown buttons on touch devices, Modernizr update with IE8Compat, split button colors, and more. Split out the functions in app.js to be part of the Gem and only initialized in app.js, so you can keep a clean distinction between your JS and Foundation's (if you want to). Added an <a href="elements.php">accordion</a> element.</p>
139
+
140
+ <hr>
141
+
142
+ <h5>3.0.5 &mdash; July 10, 2012</h5>
143
+ <p>Fixed Compass performance issues by separating out each Foundation file and removing extraneous imports.</p>
144
+
145
+ <hr>
146
+
147
+ <h5>3.0.4 &mdash; July 6, 2012</h5>
148
+ <p>Fixed a number of bugs around the Sass/Gem installs and documentation. Some smaller items:</p>
149
+ <ul class="disc" style="list-style: outside;">
150
+ <li>Fixed a bug with dropdown buttons to allow clicking on their anchors again.</li>
151
+ <li>Added styles for HTML5 (and other) input styles, not just text.</li>
152
+ <li>Added error states back to the forms documentation.</li>
153
+ <li>Flyouts in a nav bar can now expand up as well as down.</li>
154
+ <li>In SCSS you can now set $base-size correctly, but we're still working to correct modifying the $ratio variable.</li>
155
+ </ul>
156
+
157
+ <hr>
158
+
159
+ <h5>3.0.1 to 3.0.3 &mdash; July 2 to July 4</h5>
160
+ <p>Various bug fixes with the downloader, gem, and Sass install.</p>
161
+
162
+ <hr>
163
+
164
+ <h5><strong>3.0</strong> &mdash; June 30, 2012</h5>
165
+ <p>Initial launch of Foundation 3, deprecating Foundation 2.2.1. Major enhancements include Sass/SCSS development, new grid system with box-sizing: border-box, new form styles, new UI elements, retooled download and install options, new docs, new marketing site.</p>
166
+
167
+ <hr>
168
+
169
+ <div class="panel">
170
+ <h3>Where Does Foundation Work?</h3>
171
+ <h5 class="subheader">Foundation is the most advanced front-end framework in existence. We've ditched IE7 so that we can do more awesome things and push the web to where it needs to be.</h5>
172
+ <a class="button" href="support.php">Browser Support &raquo;</a> <a class="secondary button" href="faq.php">Frequently Asked Questions &raquo;</a>
173
+ </div>
174
+
175
+
176
+ </div>
177
+ </div>
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
@@ -0,0 +1,43 @@
1
+ require 'bundler'
2
+ Bundler.require
3
+ require 'fileutils'
4
+
5
+ class FoundationDocs
6
+ def initialize
7
+ @environment = Sprockets::Environment.new
8
+ @environment.append_path File.expand_path('../../scss', __FILE__)
9
+ @environment.append_path File.expand_path('../css', __FILE__)
10
+ @environment.append_path File.expand_path('../../js', __FILE__)
11
+ @environment.append_path File.expand_path('../js', __FILE__)
12
+ end
13
+ def compile
14
+ FileUtils.mkdir_p('public/assets/vendor')
15
+ File.delete("public/assets/normalize.css") if File.exists?("public/assets/normalize.css")
16
+ File.delete("public/assets/docs.css") if File.exists?("public/assets/docs.css")
17
+ File.delete("public/assets/docs.js") if File.exists?("public/assets/docs.js")
18
+ File.delete("public/assets/vendor/custom.modernizr.js") if File.exists?("public/assets/vendor/custom.modernizr.js")
19
+ File.delete("public/assets/vendor/zepto.js") if File.exists?("public/assets/vendor/zepto.js")
20
+ File.delete("public/assets/vendor/jquery.js") if File.exists?("public/assets/vendor/jquery.js")
21
+
22
+ normalize_css_code = @environment["normalize.css"].to_s
23
+ docs_css_code = @environment["docs.css"].to_s
24
+ docs_js_code = Uglifier.compile(@environment["docs.js"].to_s)
25
+ modernizr_code = Uglifier.compile(@environment["vendor/custom.modernizr.js"].to_s)
26
+ jquery_code = Uglifier.compile(@environment["vendor/jquery.js"].to_s)
27
+ zepto_code = Uglifier.compile(@environment["vendor/zepto.js"].to_s)
28
+
29
+ File.open("public/assets/normalize.css","w") {|f| f.puts normalize_css_code }
30
+ File.open("public/assets/docs.css","w") {|f| f.puts docs_css_code}
31
+ File.open("public/assets/docs.js","w") {|f| f.puts docs_js_code}
32
+
33
+ File.open("public/assets/vendor/custom.modernizr.js","w") {|f| f.puts modernizr_code }
34
+ File.open("public/assets/vendor/zepto.js","w") {|f| f.puts zepto_code}
35
+ File.open("public/assets/vendor/jquery.js","w") {|f| f.puts jquery_code}
36
+ end
37
+ end
38
+
39
+ #s = Stasis.new(File.expand_path('.',__FILE__), File.expand_path('./public', __FILE__))
40
+ #s.render
41
+ `bundle exec stasis`
42
+ f=FoundationDocs.new
43
+ f.compile
@@ -0,0 +1,202 @@
1
+ <div class="row">
2
+ <div class="large-9 push-3 columns">
3
+ <div class="row">
4
+ <div class="large-12 columns">
5
+ <% @page_title = "Alert Boxes" %>
6
+ <h2><%= @page_title %></h2>
7
+ <h4 class="subheader">Alerts are a handy element you can drop into a form or inline on a page to communicate success, warnings, failure or just information. They'll conform to 100% of the container width you put them in.</h4>
8
+ </div>
9
+ </div>
10
+
11
+ <div class="row">
12
+ <div class="large-12 columns">
13
+ <div data-alert class="alert-box radius">
14
+ This is a standard alert (div.alert-box).
15
+ <a href="" class="close">&times;</a>
16
+ </div>
17
+
18
+ <div data-alert class="alert-box success">
19
+ This is a success alert (div.alert-box.success).
20
+ <a href="" class="close">&times;</a>
21
+ </div>
22
+
23
+ <div data-alert class="alert-box alert round">
24
+ This is an alert (div.alert-box.alert.round).
25
+ <a href="" class="close">&times;</a>
26
+ </div>
27
+
28
+ <div data-alert class="alert-box secondary">
29
+ This is a secondary alert (div.alert-box.secondary).
30
+ <a href="" class="close">&times;</a>
31
+ </div>
32
+
33
+ <hr>
34
+
35
+ <h3>Build With Predefined HTML Classes</h3>
36
+ <p>There are two ways to build alerts in Foundation 4: with our predefined HTML classes or with our structure and mixins. Building an alert using our predefined class is super-easy, you only need a block-level element with a class of <code>.alert-box</code> (we usually use a <code>&lt;div&gt;</code>). You may also include an anchor with a class of <code>.close</code> to create a close box. Here is the markup you'll need:</p>
37
+
38
+ <%= code_example '
39
+ <div data-alert class="alert-box">
40
+ <!-- Your content goes here -->
41
+ <a href="#" class="close">&times;</a>
42
+ </div>', :html %>
43
+
44
+ <p>For these styles to come across, make sure you have the <strong>default Foundation CSS package</strong> or that you've selected <strong>alerts from a custom package</strong>. These should be linked up following our default <a href="#getting-started">HTML page structure</a>.</p>
45
+
46
+ <hr>
47
+
48
+ <h3>Build with Mixins</h3>
49
+ <p>We've included SCSS mixins used to style alert boxes. To use these mixins, you'll need to have the <a href="#extention-install">extension installed</a> or grab <a href="#">_foundation-global.scss</a> and <a href="#">_alerts.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>
50
+
51
+ <%= code_example '
52
+ @import "foundation/foundation-global", "foundation/alerts";
53
+ ', :css %>
54
+
55
+ <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
56
+
57
+ <%= code_example '
58
+ <div data-alert class="your-class-name">
59
+ <!-- Your content goes here -->
60
+ <a href="#" class="close">&times;</a>
61
+ </div>', :html %>
62
+
63
+
64
+ <h5>Quick Mixin</h5>
65
+ <p>You can build your alert using our global mixin by including it on your custom class or ID in your 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>
66
+
67
+ <%= code_example '
68
+ /* Using the default styles */
69
+ .your-class-name { @include alert; }
70
+
71
+ /* Using the available options */
72
+ .your-class-name { @include alert(#ff6c3c); }
73
+ ', :css %>
74
+
75
+ <div data-alert class="alert-box">
76
+ This is a default alert.
77
+ <a href="#" class="close">&times;</a>
78
+ </div>
79
+
80
+ <div data-alert class="alert-base custom-bg">
81
+ This is an alert with a custom background set.
82
+ <a href="#" class="close">&times;</a>
83
+ </div>
84
+
85
+ <h5>Base Mixin</h5>
86
+ <p>Use this mixin to create the base styles for alert boxes. This will include styles that create the basic structure of an alert box.</p>
87
+
88
+
89
+ <%= code_example '
90
+ .your-class-name { @include alert-base; }
91
+ ', :css %>
92
+
93
+ <div class="alert-base">This is the base mixin.</div>
94
+
95
+ <h5>Background Mixin</h5>
96
+ <p>You can control the background, border and text styles for the alert using this mixin. We base the border and text style on the background color you choose using some sweet Sass logic.</p>
97
+
98
+ <%= code_example '
99
+ .your-class-name {
100
+ @include alert-base;
101
+ @include alert-style($bg);
102
+ }', :css %>
103
+
104
+ <div data-alert class="alert-base bg">This is base and bg mixins.</div>
105
+
106
+ <p>You can set <code>$bg</code> color to any of our predefined color variables or any hexadecimal color of your choosing. To set this value to something other than our default, use <code>@include alert-bg(#hexcolor);</code></p>
107
+
108
+ <h5>Close Box Mixin</h5>
109
+ <p>You can include a close box with each of the alert boxes by adding an anchor right before the closing <code>&lt;/div&gt;</code>. This anchor should have a class of <code>.close</code> in order to work with <strong>foundation.alerts.js</strong>, which contains the interaction for closing.</p>
110
+
111
+ <%= code_example '
112
+ .your-class-name {
113
+ @include alert-base;
114
+ @include alert-style;
115
+ .close { @include alert-close; }
116
+ }', :css %>
117
+
118
+ <div data-alert class="alert-base bg">
119
+ This is base, bg and close mixins.
120
+ <a href="" class="close">&times;</a>
121
+ </div>
122
+
123
+ <h5>Radius Mixin</h5>
124
+ <p>We've also created a global radius mixin that you can use to add border-radius to any element you'd like.</p>
125
+
126
+ <%= code_example '
127
+ .your-class-name {
128
+ @include alert-base;
129
+ @include alert-style($success-color);
130
+ @include radius($radius);
131
+ }', :css %>
132
+
133
+ <div data-alert class="alert-base bg radius success">
134
+ This is base, bg and radius mixins.
135
+ <a href="" class="close">&times;</a>
136
+ </div>
137
+
138
+ <h5>Default SCSS Variables</h5>
139
+ <%= code_example '
140
+ /* We use this to control alert padding. */
141
+ $alert-padding-top: emCalc(11px);
142
+ $alert-padding-left: $alert-padding-top;
143
+ $alert-padding-right: $alert-padding-top + emCalc(10px);
144
+ $alert-padding-bottom: $alert-padding-top + emCalc(1px);
145
+
146
+ /* We use these to control text style. */
147
+ $alert-font-weight: bold;
148
+ $alert-font-size: emCalc(14px);
149
+ $alert-font-color: #fff;
150
+ $alert-font-color-alt: darken($secondary-color, 60%);
151
+
152
+ /* We use this for close hover effect. */
153
+ $alert-function-factor: 10%;
154
+
155
+ /* We use these to control border styles. */
156
+ $alert-border-style: solid;
157
+ $alert-border-width: 1px;
158
+ $alert-border-color: darken($primary-color, $alert-function-factor);
159
+ $alert-bottom-margin: emCalc(20px);
160
+
161
+ /* We use these to style the close buttons */
162
+ $alert-close-color: #333;
163
+ $alert-close-position: emCalc(5px);
164
+ $alert-close-font-size: emCalc(22px);
165
+ $alert-close-opacity: 0.3;
166
+ $alert-close-opacity-hover: 0.5;
167
+ $alert-close-padding: 5px 4px 4px;
168
+
169
+ /* We use this to control border radius */
170
+ $alert-radius: $global-radius;
171
+ ', :css %>
172
+
173
+ <p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>.</p>
174
+
175
+ <hr>
176
+
177
+ <h3>Using the JavaScript</h3>
178
+ <p>You don't need ths JS to create alert boxes with Foundation. The only reason you'll need to include <code>foundation.alerts.js</code> is if you want to add the ability to close an alert. 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>
179
+
180
+ <p><a href="../javascript.html" title="How to install Foundation JavaScript">Read how to install Foundation JavaScript</a></p>
181
+
182
+ <p>Required Foundation Library: <code>foundation.alerts.js</code></p>
183
+
184
+ <p>Then, you'll need to add a data-attribute to make the JS work properly on that element. That looks like:</p>
185
+
186
+ <%= code_example '
187
+ <div data-alert class="alert-box">
188
+ <!-- Your content goes here -->
189
+ <a href="#" class="close">&times;</a>
190
+ </div>
191
+ ', :html %>
192
+ </div>
193
+ </div>
194
+
195
+ </div>
196
+
197
+ <div class="large-3 pull-9 columns">
198
+ <%= render "_sidebar-components.html.erb" %>
199
+ </div>
200
+
201
+ </div>
202
+
@@ -0,0 +1,118 @@
1
+ <div class="row">
2
+ <div class="large-9 push-3 columns">
3
+
4
+ <% @page_title = "Block Grid" %>
5
+ <div class="row">
6
+ <div class="large-12 columns">
7
+ <h2><%= @page_title %></h2>
8
+ <h4 class="subheader">Block grids give you a way to evenly split contents of a list within the grid. If you wanted to create a row of 5 images or paragraphs that need to stay evenly spaced no matter the screen size, the block grid is for you.</h4>
9
+
10
+ <ul class="small-block-grid-2 large-block-grid-5">
11
+ <li><img src="../img/demos/demo1.png"></li>
12
+ <li><img src="../img/demos/demo2.png"></li>
13
+ <li><img src="../img/demos/demo3.png"></li>
14
+ <li><img src="../img/demos/demo4.png"></li>
15
+ </ul>
16
+
17
+ <hr>
18
+
19
+ <h3>Building With Predefined HTML Classes</h3>
20
+ <p>Block grids are made from a <code>ul.small-block-grid-#</code> or <code>ul.large-block-grid-#</code>. These are ideal for blocked-in content generated by an application, as they do not require rows or even numbers of elements to display correctly.</p>
21
+
22
+ <p>These have a bit of flexibility since you have access to two separate grids between our built in 768px breakpoint. If you use the <code>small-block-grid</code> only, the grid will keep its spacing and configuration no matter the screen size. If you use <code>large-block-grid</code> only, the list items will stack on top of eachother for small devices. If you use both of those classes combined, you can control the configuration and layout separately for each breakpoint.</p>
23
+
24
+ <%= code_example '
25
+ <!-- Using only the small-block-grid -->
26
+ <ul class="small-block-grid-2">
27
+ <li><img src="../img/demos/demo1.png"></li>
28
+ <li><img src="../img/demos/demo2.png"></li>
29
+ <li><img src="../img/demos/demo3.png"></li>
30
+ <li><img src="../img/demos/demo4.png"></li>
31
+ </ul>
32
+
33
+ <!-- Using only the large-block-grid -->
34
+ <ul class="large-block-grid-4">
35
+ <li><img src="../img/demos/demo1.png"></li>
36
+ <li><img src="../img/demos/demo2.png"></li>
37
+ <li><img src="../img/demos/demo3.png"></li>
38
+ <li><img src="../img/demos/demo4.png"></li>
39
+ </ul>
40
+
41
+ <!-- Using both block grids together for different layouts -->
42
+ <ul class="small-block-grid-2 large-block-grid-4">
43
+ <li><img src="../img/demos/demo1.png"></li>
44
+ <li><img src="../img/demos/demo2.png"></li>
45
+ <li><img src="../img/demos/demo3.png"></li>
46
+ <li><img src="../img/demos/demo4.png"></li>
47
+ </ul>
48
+ ', :html %>
49
+
50
+ <p>For these styles to take effect, make sure you have the <strong>default Foundation CSS package</strong> or that you've <strong>selected block grid from a custom package</strong>. These should be linked up following our default <a href="#">HTML page structure</a>.</p>
51
+
52
+ <hr>
53
+
54
+ <h3>Using The Mixin</h3>
55
+ <p>We've included SCSS mixins used to style block-grids. 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="#">_block-grid.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>
56
+
57
+ <%= code_example '
58
+ @import "foundation/foundation-global", "foundation/block-grid";
59
+ ', :css %>
60
+
61
+ <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure. Since we don't have any media queries baked into the mixin itself, you can apply the styles at whatever breakpoint you want! Just change the configuration within each.</p>
62
+
63
+ <%= code_example '
64
+ <ul class="your-class-name">
65
+ <li><img src="../img/demos/demo1.png"></li>
66
+ <li><img src="../img/demos/demo2.png"></li>
67
+ <li><img src="../img/demos/demo3.png"></li>
68
+ <li><img src="../img/demos/demo4.png"></li>
69
+ </ul>', :html %>
70
+
71
+ <h5>Quick Mixin</h5>
72
+ <p>You can build your block-grid using our global mixin by including it on your custom class or ID in your own stylesheet. The mixin contains options configuring the block grid layout and margin on the fly. The global mixin looks like this:</p>
73
+
74
+ <%= code_example '
75
+ /* Mixin and configurable options */
76
+ .your-class-name { @import block-grid($per-row, $spacing, $base-styles); }
77
+
78
+ /* This controls how many elements will be on each row of the block grid. */
79
+ /* Set this to whatever number you need, up to the max allowed in the variable */
80
+ $per-row: false
81
+
82
+ /* This controls how much space is between each item in the block grid */
83
+ $spacing: $block-grid-default-spacing
84
+
85
+ /* This controls whether or not base styles come through, set to false to leave out */
86
+ /* This is handy for when you create multiple block-grids and want less CSS output repetition */
87
+ $base-style: true
88
+ ', :css %>
89
+
90
+ <ul class="small-block-grid-5">
91
+ <li><img src="../img/demos/demo1.png"></li>
92
+ <li><img src="../img/demos/demo2.png"></li>
93
+ <li><img src="../img/demos/demo3.png"></li>
94
+ <li><img src="../img/demos/demo4.png"></li>
95
+ <li><img src="../img/demos/demo5.png"></li>
96
+ </ul>
97
+
98
+ <h5>Available SCSS Variables</h5>
99
+
100
+ <%= code_example '
101
+ /* We use this to control the maximum blocks and spacing */
102
+ $block-grid-elements: 12;
103
+ $block-grid-default-spacing: 10px;
104
+ ', :css %>
105
+
106
+ </div>
107
+ </div>
108
+
109
+ </div>
110
+
111
+ <div class="large-3 pull-9 columns">
112
+ <%= render "_sidebar-components.html.erb" %>
113
+ </div>
114
+ </div>
115
+
116
+
117
+
118
+