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,13 @@
1
+ iframe.qunit-subsuite {
2
+ position: fixed;
3
+ bottom: 0;
4
+ left: 0;
5
+
6
+ margin: 0;
7
+ padding: 0;
8
+ border-width: 1px 0 0;
9
+ height: 45%;
10
+ width: 100%;
11
+
12
+ background: #fff;
13
+ }
@@ -0,0 +1,235 @@
1
+ /**
2
+ * QUnit v1.10.0 - A JavaScript Unit Testing Framework
3
+ *
4
+ * http://qunitjs.com
5
+ *
6
+ * Copyright 2012 jQuery Foundation and other contributors
7
+ * Released under the MIT license.
8
+ * http://jquery.org/license
9
+ */
10
+
11
+ /** Font Family and Sizes */
12
+
13
+ #qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
14
+ font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
15
+ }
16
+
17
+ #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
18
+ #qunit-tests { font-size: smaller; }
19
+
20
+
21
+ /** Resets */
22
+
23
+ #qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
24
+ margin: 0;
25
+ padding: 0;
26
+ }
27
+
28
+
29
+ /** Header */
30
+
31
+ #qunit-header {
32
+ padding: 0.5em 0 0.5em 1em;
33
+
34
+ color: #8699a4;
35
+ background-color: #0d3349;
36
+
37
+ font-size: 1.5em;
38
+ line-height: 1em;
39
+ font-weight: normal;
40
+
41
+ border-radius: 5px 5px 0 0;
42
+ -moz-border-radius: 5px 5px 0 0;
43
+ -webkit-border-top-right-radius: 5px;
44
+ -webkit-border-top-left-radius: 5px;
45
+ }
46
+
47
+ #qunit-header a {
48
+ text-decoration: none;
49
+ color: #c2ccd1;
50
+ }
51
+
52
+ #qunit-header a:hover,
53
+ #qunit-header a:focus {
54
+ color: #fff;
55
+ }
56
+
57
+ #qunit-testrunner-toolbar label {
58
+ display: inline-block;
59
+ padding: 0 .5em 0 .1em;
60
+ }
61
+
62
+ #qunit-banner {
63
+ height: 5px;
64
+ }
65
+
66
+ #qunit-testrunner-toolbar {
67
+ padding: 0.5em 0 0.5em 2em;
68
+ color: #5E740B;
69
+ background-color: #eee;
70
+ overflow: hidden;
71
+ }
72
+
73
+ #qunit-userAgent {
74
+ padding: 0.5em 0 0.5em 2.5em;
75
+ background-color: #2b81af;
76
+ color: #fff;
77
+ text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
78
+ }
79
+
80
+ #qunit-modulefilter-container {
81
+ float: right;
82
+ }
83
+
84
+ /** Tests: Pass/Fail */
85
+
86
+ #qunit-tests {
87
+ list-style-position: inside;
88
+ }
89
+
90
+ #qunit-tests li {
91
+ padding: 0.4em 0.5em 0.4em 2.5em;
92
+ border-bottom: 1px solid #fff;
93
+ list-style-position: inside;
94
+ }
95
+
96
+ #qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running {
97
+ display: none;
98
+ }
99
+
100
+ #qunit-tests li strong {
101
+ cursor: pointer;
102
+ }
103
+
104
+ #qunit-tests li a {
105
+ padding: 0.5em;
106
+ color: #c2ccd1;
107
+ text-decoration: none;
108
+ }
109
+ #qunit-tests li a:hover,
110
+ #qunit-tests li a:focus {
111
+ color: #000;
112
+ }
113
+
114
+ #qunit-tests ol {
115
+ margin-top: 0.5em;
116
+ padding: 0.5em;
117
+
118
+ background-color: #fff;
119
+
120
+ border-radius: 5px;
121
+ -moz-border-radius: 5px;
122
+ -webkit-border-radius: 5px;
123
+ }
124
+
125
+ #qunit-tests table {
126
+ border-collapse: collapse;
127
+ margin-top: .2em;
128
+ }
129
+
130
+ #qunit-tests th {
131
+ text-align: right;
132
+ vertical-align: top;
133
+ padding: 0 .5em 0 0;
134
+ }
135
+
136
+ #qunit-tests td {
137
+ vertical-align: top;
138
+ }
139
+
140
+ #qunit-tests pre {
141
+ margin: 0;
142
+ white-space: pre-wrap;
143
+ word-wrap: break-word;
144
+ }
145
+
146
+ #qunit-tests del {
147
+ background-color: #e0f2be;
148
+ color: #374e0c;
149
+ text-decoration: none;
150
+ }
151
+
152
+ #qunit-tests ins {
153
+ background-color: #ffcaca;
154
+ color: #500;
155
+ text-decoration: none;
156
+ }
157
+
158
+ /*** Test Counts */
159
+
160
+ #qunit-tests b.counts { color: black; }
161
+ #qunit-tests b.passed { color: #5E740B; }
162
+ #qunit-tests b.failed { color: #710909; }
163
+
164
+ #qunit-tests li li {
165
+ padding: 5px;
166
+ background-color: #fff;
167
+ border-bottom: none;
168
+ list-style-position: inside;
169
+ }
170
+
171
+ /*** Passing Styles */
172
+
173
+ #qunit-tests li li.pass {
174
+ color: #3c510c;
175
+ background-color: #fff;
176
+ border-left: 10px solid #C6E746;
177
+ }
178
+
179
+ #qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
180
+ #qunit-tests .pass .test-name { color: #366097; }
181
+
182
+ #qunit-tests .pass .test-actual,
183
+ #qunit-tests .pass .test-expected { color: #999999; }
184
+
185
+ #qunit-banner.qunit-pass { background-color: #C6E746; }
186
+
187
+ /*** Failing Styles */
188
+
189
+ #qunit-tests li li.fail {
190
+ color: #710909;
191
+ background-color: #fff;
192
+ border-left: 10px solid #EE5757;
193
+ white-space: pre;
194
+ }
195
+
196
+ #qunit-tests > li:last-child {
197
+ border-radius: 0 0 5px 5px;
198
+ -moz-border-radius: 0 0 5px 5px;
199
+ -webkit-border-bottom-right-radius: 5px;
200
+ -webkit-border-bottom-left-radius: 5px;
201
+ }
202
+
203
+ #qunit-tests .fail { color: #000000; background-color: #EE5757; }
204
+ #qunit-tests .fail .test-name,
205
+ #qunit-tests .fail .module-name { color: #000000; }
206
+
207
+ #qunit-tests .fail .test-actual { color: #EE5757; }
208
+ #qunit-tests .fail .test-expected { color: green; }
209
+
210
+ #qunit-banner.qunit-fail { background-color: #EE5757; }
211
+
212
+
213
+ /** Result */
214
+
215
+ #qunit-testresult {
216
+ padding: 0.5em 0.5em 0.5em 2.5em;
217
+
218
+ color: #2b81af;
219
+ background-color: #D2E0E6;
220
+
221
+ border-bottom: 1px solid white;
222
+ }
223
+ #qunit-testresult .module-name {
224
+ font-weight: bold;
225
+ }
226
+
227
+ /** Fixture */
228
+
229
+ #qunit-fixture {
230
+ position: absolute;
231
+ top: -10000px;
232
+ left: -10000px;
233
+ width: 1000px;
234
+ height: 1000px;
235
+ }
@@ -0,0 +1,61 @@
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 = "FAQ" %>
9
+ <h2><%= @page_title %></h2>
10
+
11
+ <h4 class="subheader">We hear a lot of questions from people using Foundation and realized that a lot of the same ones were being asked. We put together this list of FAQs to help you find answers to common questions.</h4>
12
+
13
+ <h4>Why doesn't Foundation 3 support IE7 or IE8?</h4>
14
+ <p>Foundation 4 is mobile-first, meaning it relies on media queries to layer in more complex layouts and components. Browsers or devices that don't support media queries will be restricted to a simple, single-column layout. In some ways, Foundation 4 better supports IE6-7 inasmuch as it provides a mobile but not broken experience. In IE8 Foundation 4 will provide less than Foundation 3, but with IE8's market share in such steep decline we thought this was the right time.</p>
15
+
16
+ <p>If IE8 support is important for your users / customers, you can use <a href="../files/foundation-download-2.2.1.zip">Foundation 3.2</a>, which supports IE8. It's not mobile first but it's pretty good stuff.</p>
17
+
18
+ <h4>Can I use Foundation for something I'm going to sell?</h4>
19
+ <p>Yes! Foundation is licensed under the MIT open source license, meaning you can do almost anything with it. The only thing you can't do is imply that Foundation itself is what you're selling.</p>
20
+
21
+ <h4>Is Foundation tested on [some other device or browser]?</h4>
22
+ <p>We try and be comprehensive in our testing, but there are thousands of devices so it's often just not feasible. We'd love to hear about Foundation's behaviour on other devices, but the list above is what we test each release on. If your browser or device is not listed your results may vary.</p>
23
+
24
+ <h4>Where can I find the Foundation 3 docs?</h4>
25
+ <p>For those of you still working on Foundation 2 sites, or who need to continue supporting IE8 with Foundation, we keep the Foundation 3 docs available. <a href="f3/">View the Foundation 3 Docs &rarr;</a></p>
26
+
27
+ <hr>
28
+
29
+ <h2>Getting Help</h2>
30
+ <h5 class="subheader">If the documentation and questions above aren't enough, there are several avenues of support available for you to pursue.</h5>
31
+
32
+ <h5><a href="https://groups.google.com/forum/?fromgroups#!forum/foundation-framework-">Foundation Framework Google Group</a></h5>
33
+ <p>This is an active group of Foundation users who can answer questions about implementation or approach. If you aren't sure how to do something, or something isn't working like you'd expect, reach out here.</p>
34
+
35
+ <h5><a href="http://github.com/zurb/foundation/issues">Github Issues</a></h5>
36
+ <p>If you've found a bug in the framework (or think you have) you can file it here. We try and address these as part of ongoing development. Please use this only for bugs or things that seem incorrect, support requests will not be addressed quickly here.</p>
37
+
38
+ <h5><a href="http://twitter.com/foundationzurb">@foundationzurb</a></h5>
39
+ <p><a href="http://twitter.com/foundationzurb">Follow us on Twitter</a> to hear about new sites using Foundation, code examples, playground pieces from ZURB and more. You can also ping us with quick questions or other support issues, we're usually pretty speedy.</p>
40
+
41
+ <h5><a href="mailto:foundation@zurb.com">Get in Touch</a></h5>
42
+ <p>If you're totally stuck and need some help, shoot us <a href="mailto:foundation@zurb.com">an email</a> and we'll typically get back within a day or two.</p>
43
+
44
+ <hr>
45
+
46
+ <div class="panel">
47
+ <h3>What's Changed Recently?</h3>
48
+ <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. Take a look at our changelog to know what's recently been changed or updated.</h5>
49
+ <a class="button" href="support.php">Browser Support &raquo;</a> <a class="secondary button" href="changelog.php">See the Version Changelog &raquo;</a>
50
+ </div>
51
+
52
+ </div>
53
+ </div>
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,299 @@
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
+ <h2>Getting Started</h2>
9
+ <h5 class="subheader">Whether you are using Scss or CSS, we've made it easy to start a project so that you can help take over the world one responsive site at a time.</h5>
10
+ <p>Foundation is developed in <a href="http://www.sass-lang.com">Sass</a>, which is powerful CSS pre-processor that helps you write cleaner, more organized, CSS that you can more easily maintain over time without the typical headaches of vanilla CSS. On top of our minimal styling, we've written powerful Javascript plugins that will make useful interactions easier to implement across screen sizes.</p>
11
+
12
+ <hr>
13
+
14
+ <h3>What comes with Foundation?</h3>
15
+ <h5 class="subheader">We've got you covered when it comes to useful features and we've made it easy to take out what you don't need. Here's what you'll get when you create a project using our Sass version or the default CSS version:</h5>
16
+
17
+ <div class="row">
18
+ <div class="large-4 columns">
19
+ <dl>
20
+ <dt><h5><a href="components/grid.html">The Grid</a></h5></dt>
21
+ <dd>Our grid works on almost any device and has support for nesting, source ordering, offsets and device presentation. It almost makes creating layouts too easy!</dd>
22
+ </dl>
23
+ </div>
24
+ <div class="large-4 columns">
25
+ <dl>
26
+ <dt><h5><a href="components/type.html">Typography</a></h5></dt>
27
+ <dd>Our type is based on a golden ratio modular scale that creates meaningful relationships for the copy on the page. It's easily updated using Scss or our CSS customizer.</dd>
28
+ </dl>
29
+ </div>
30
+ <div class="large-4 columns">
31
+ <dl>
32
+ <dt><h5><a href="components/buttons.html">Buttons</a></h5></dt>
33
+ <dd>Buttons are a core interactive element of the Web. We've included styles for creating simple marketing CTAs to complex application toolbars.</dd>
34
+ </dl>
35
+ </div>
36
+ </div>
37
+
38
+ <div class="row">
39
+ <div class="large-4 columns">
40
+ <dl>
41
+ <dt><h5><a href="components/top-bar.html">Navigation</a></h5></dt>
42
+ <dd>People have to get around. Navigation styles in Foundation include a complex top bar that supports 3-level dropdown navigation for simple bars, sidebars and subnav pills.</dd>
43
+ </dl>
44
+ </div>
45
+ <div class="large-4 columns">
46
+ <dl>
47
+ <dt><h5><a href="components/forms.html">Forms</a></h5></dt>
48
+ <dd>Built with the Foundation Grid, you can create simple or complicated forms quickly and easily&mdash; validation states, custom select, radio buttons and more.</dd>
49
+ </dl>
50
+ </div>
51
+ <div class="large-4 columns">
52
+ <dl>
53
+ <dt><h5><a href="components/panels.html">UI Elements</a></h5></dt>
54
+ <dd>We've also included lots of useful elements like visibility classes (to hide or show things based on screen size or orientation), labels, alerts, tooltips, panels and a lot more.</dd>
55
+ </dl>
56
+ </div>
57
+ </div>
58
+
59
+ <div class="row">
60
+ <div class="large-4 columns">
61
+ <dl>
62
+ <dt><h5><a href="components/section.html">Section</a></h5></dt>
63
+ <dd>Whether it's entire pages or simple tabbed content, Foundation's tabs get the job done. Not only stylish, but interactive out of the box.</dd>
64
+ </dl>
65
+ </div>
66
+ <div class="large-4 columns">
67
+ <dl>
68
+ <dt><h5><a href="components/orbit.html">Orbit</a></h5></dt>
69
+ <dd>A powerful image or content slider that works responsively and includes tons of useful options, such as timers, paddles, bullet thumbs and more.</dd>
70
+ </dl>
71
+ </div>
72
+ <div class="large-4 columns">
73
+ <dl>
74
+ <dt><h5><a href="components/reveal.html">Reveal</a></h5></dt>
75
+ <dd>You can easily call modals without writing any JS, even spawn subsequent modals cleanly on the same page. Reveal works across devices.</dd>
76
+ </dl>
77
+ </div>
78
+ </div>
79
+
80
+ <div class="row">
81
+ <div class="large-4 columns">
82
+ <dl>
83
+ <dt><h5><a href="components/clearing.html">Clearing</a></h5></dt>
84
+ <dd>Show off your images in style with our easy to use gallery plugin. It's built with simple unordered lists that can be styled to your hearts content.</dd>
85
+ </dl>
86
+ </div>
87
+ <div class="large-4 columns">
88
+ <dl>
89
+ <dt><h5><a href="components/magellan.html">Magellan</a></h5></dt>
90
+ <dd>A flexible sticky navigation that knows where you are on the page. You just tell it what to recognize and set it off.</dd>
91
+ </dl>
92
+ </div>
93
+ <div class="large-4 columns">
94
+ <dl>
95
+ <dt><h5><a href="components/joyride.html">Joyride</a></h5></dt>
96
+ <dd>This plugin lets you give users a tour of your site our app. Joyride is easy to customize using CSS or our Scss variables.</dd>
97
+ </dl>
98
+ </div>
99
+ </div>
100
+
101
+ <div class="row">
102
+ <div class="large-4 columns">
103
+ <dl>
104
+ <dt><h5><a href="components/tooltips.html">Tooltips</a></h5></dt>
105
+ <dd>Tooltips lets you add quick hover or tap tooltips to elements.</dd>
106
+ </dl>
107
+ </div>
108
+ <div class="large-4 columns end">
109
+ <dl>
110
+ <dt><h5><a href="components/dropdown.html">Dropdown</a></h5></dt>
111
+ <dd>We've made a dropdown plugin that makes it easy to attach a popover dropdown to any element on the page.</dd>
112
+ </dl>
113
+ </div>
114
+ </div>
115
+
116
+ <hr>
117
+
118
+ <h3>How is a project structured?</h3>
119
+ <h5 class="subheader">We follow common patterns for directory structure that are logical and easily maintained. Below is an explanation of each file you'll get when you create a project using our gem or download via our <a href="/download.php">customizer</a>.</h5>
120
+
121
+ <div class="row">
122
+ <div class="large-4 columns">
123
+ <dl>
124
+ <dt><h5>css</h5></dt>
125
+ <dd>Includes <code>foundation.css</code> and <code>foundation.min.css</code> so you can choose which to use. We've also included <code>app.css</code> that you can use for custom styles that will sit on top of the Foundation core as overrides.</dd>
126
+ </dl>
127
+ </div>
128
+ <div class="large-4 columns">
129
+ <dl>
130
+ <dt><h5>js</h5></dt>
131
+ <dd>All of our plugins and the necessary JavaScript to make Foundation work properly. <strong>All JS is initiated by default</strong>.</dd>
132
+ </dl>
133
+ </div>
134
+ <div class="large-4 columns">
135
+ <dl>
136
+ <dt><h5>img</h5></dt>
137
+ <dd>This directory actually comes empty in Foundation 4! We no longer have any images included in the core of Foundation.</dd>
138
+ </dl>
139
+ </div>
140
+ </div>
141
+
142
+ <div class="row">
143
+ <div class="large-4 columns">
144
+ <dl>
145
+ <dt><h5>index.html</h5></dt>
146
+ <dd>A sample structure for page content, giving you something to use as a basic structural template for the rest of the pages in your project.</dd>
147
+ </dl>
148
+ </div>
149
+ <div class="large-4 columns">
150
+ <dl>
151
+ <dt><h5>humans.txt</h5></dt>
152
+ <dd>A way to tell the world about the people that worked on the sites you build, giving them kudos they deserve.</dd>
153
+ </dl>
154
+ </div>
155
+ <div class="large-4 columns">
156
+ <dl>
157
+ <dt><h5>robots.txt</h5></dt>
158
+ <dd>Give instructions to web robots so search engines know what to do when they crawl your site for content.</dd>
159
+ </dl>
160
+ </div>
161
+ </div>
162
+ <br>
163
+ <div class="row">
164
+ <div class="large-12 columns">
165
+ <div class="panel">
166
+ <h6 class="subheader"><strong>Using the Gem?</strong> You'll see a couple extra pieces in your project upon creation. These are:</h6>
167
+ <dl>
168
+ <dt>sass/</dt>
169
+ <dd>Your main style folder is named <strong>sass/</strong> and contains <code>app.scss</code>, <code>foundation.scss</code> (which imports Foundation, or the parts you want), and <code>normalize.scss</code>. Override the Foundation styles within your app.scss file. You can see the compiled CSS in your stylesheets directory after you manually <span class="has-tip top" title="$ compass compile <filename>">compile</span> or <span class="has-tip top" title="$ compass watch <directory>">watch</span>. This directory also includes <code>_settings.scss</code>, which is used to control variables that help easily style Foundation.</dd>
170
+ <dt></i>config.rb</dt>
171
+ <dd>This file is used by <a href="http://compass-style.org">Compass</a> to compile your project. Here you can control the output style of your CSS, the structure of your directories and other useful settings.</dd>
172
+ </dl>
173
+ </div>
174
+ </div>
175
+ </div>
176
+
177
+ <hr>
178
+
179
+ <h3>HTML Page Markup</h3>
180
+ <h5 class="subheader">Our markup structure is straight forward and gives you the flexibility you need to create to your hearts desires. Here's an example page that includes the basics:</h5>
181
+
182
+ <%= code_example '
183
+
184
+ <!DOCTYPE html>
185
+ <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
186
+ <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
187
+
188
+ <head>
189
+ <meta charset="utf-8" />
190
+ <meta name="viewport" content="width=device-width" />
191
+ <title>Foundation 4</title>
192
+
193
+ <link rel="stylesheet" href="css/normalize.css" />
194
+ <link rel="stylesheet" href="css/foundation.css" />
195
+ <link rel="stylesheet" href="css/app.css" />
196
+
197
+ <script src="js/vendor/custom.modernizr.js"></script>
198
+
199
+ </head>
200
+ <body>
201
+
202
+ <!-- body content here -->
203
+
204
+ <script>
205
+ document.write(\'<script src=\' +
206
+ (\'__proto__\' in {} ? \'js/vendor/zepto\' : \'js/vendor/jquery\') +
207
+ \'.js><\/script>\')
208
+ </script>
209
+
210
+ <script src="js/foundation/foundation.alerts.js"></script>
211
+
212
+ <script src="js/foundation/foundation.clearing.js"></script>
213
+
214
+ <script src="js/foundation/foundation.cookie.js"></script>
215
+
216
+ <script src="js/foundation/foundation.dropdown.js"></script>
217
+
218
+ <script src="js/foundation/foundation.forms.js"></script>
219
+
220
+ <script src="js/foundation/foundation.joyride.js"></script>
221
+
222
+ <script src="js/foundation/foundation.js"></script>
223
+
224
+ <script src="js/foundation/foundation.magellan.js"></script>
225
+
226
+ <script src="js/foundation/foundation.orbit.js"></script>
227
+
228
+ <script src="js/foundation/foundation.placeholder.js"></script>
229
+
230
+ <script src="js/foundation/foundation.reveal.js"></script>
231
+
232
+ <script src="js/foundation/foundation.section.js"></script>
233
+
234
+ <script src="js/foundation/foundation.tooltips.js"></script>
235
+
236
+ <script src="js/foundation/foundation.topbar.js"></script>
237
+
238
+ <script src="js/foundation/app.js"></script>
239
+ </body>
240
+ </html>
241
+
242
+ ', :html %>
243
+
244
+ <div class="row">
245
+ <div class="large-4 columns">
246
+ <dl>
247
+ <dt><h5>Doctype &amp; Head</h5></dt>
248
+ <dd>We use the HTML doctype declaration to tell the browser what to expect. From there we've used a <a href="http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/">technique by Paul Irish</a> that attaches classes to the HTML for IE. After that, we set the character set to UTF-8.</dd>
249
+ <dt>Meta Viewport tag</dt>
250
+ <dd>This is used to make sure smaller devices use the device width as the viewport width.</dd>
251
+ <dt>Title Tag</dt>
252
+ <dd>This one is pretty self-explanatory. You're setting the name of the current page with this value.</dd>
253
+ </dl>
254
+ </div>
255
+ <div class="large-4 columns">
256
+ <dl>
257
+ <dt><h5>CSS &amp; Modernizr</h5></dt>
258
+ <dd>The default CSS download includes everything you need to get going, including necessary styles and our custom Modernizr script.</dd>
259
+ <dt>CSS</dt>
260
+ <dd>We include <code>foundation.min.css</code> and <code>foundation.css</code>. The difference here is whether or not you want minified code or not (link whichever you want, but not both). You'll also notice <code>app.css</code>, which can be used for your own Foundation overrides.</dd>
261
+ <dt>Modernizr</dt>
262
+ <dd>We use this to give us the HTML5 Shiv, touch classes and JS media queries that help us control Foundation.</dd>
263
+ </dl>
264
+ </div>
265
+ <div class="large-4 columns">
266
+ <dl>
267
+ <dt><h5>Javascripts</h5></dt>
268
+ <dd>Our JS is linked up right before the closing body tag and includes all necessary plugins and initializers to hit the ground running.</dd>
269
+ <dt>jQuery</dt>
270
+ <dd>We stay as close as possible to the latest version of jQuery at all times. jQuery needs to be included before any Foundation JS.</dd>
271
+ <dt>Foundation JS</dt>
272
+ <dd>We include <code>foundation.min.js</code> by default, which includes all the available plugins. If you want to customize, we have every individual plugin commented for you to quickly pick and choose.</dd>
273
+ </dl>
274
+ </div>
275
+ </div>
276
+
277
+ <hr>
278
+
279
+ <div class="panel">
280
+ <h3>Get going!</h3>
281
+ <h5 class="subheader">Now that you understand the gist of what Foundation is and how it works, it's time to start a project! We've got two different ways for you to build projects with Foundation, a Compass Gem using Scss or a with plain CSS.</h5>
282
+ <a href="../sass.html" class="button">Using the Gem</a></li>
283
+ <a href="../download.php" class="button secondary">Quickstart with CSS</a></li>
284
+ </div>
285
+ </div>
286
+ </div>
287
+ </section>
288
+
289
+
290
+ </div>
291
+ </div>
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+