zurb-foundation 3.0.7 → 3.0.8.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/CONTRIBUTING.md +43 -0
- data/Gemfile.lock +2 -27
- data/README.md +2 -2
- data/foundation.gemspec +1 -3
- data/index.html +12 -6
- data/lib/foundation/version.rb +1 -1
- data/lib/zurb-foundation.rb +11 -4
- data/{stylesheets → scss}/foundation/_settings.scss +17 -2
- data/{stylesheets → scss}/foundation/common/_base.scss +0 -0
- data/{stylesheets → scss}/foundation/common/_forms.scss +2 -2
- data/{stylesheets → scss}/foundation/common/_globals.scss +3 -0
- data/{stylesheets → scss}/foundation/common/_typography.scss +7 -5
- data/{stylesheets → scss}/foundation/components/_grid.scss +34 -19
- data/{stylesheets → scss}/foundation/components/modules/_all.scss +1 -1
- data/{stylesheets → scss}/foundation/components/modules/_buttons.scss +14 -12
- data/{stylesheets → scss}/foundation/components/modules/_navbar.scss +0 -0
- data/{stylesheets → scss}/foundation/components/modules/_offcanvas.scss +0 -0
- data/{stylesheets → scss}/foundation/components/modules/_orbit.scss +0 -0
- data/{stylesheets → scss}/foundation/components/modules/_reveal.scss +1 -0
- data/{stylesheets → scss}/foundation/components/modules/_tabs.scss +6 -4
- data/{stylesheets → scss}/foundation/components/modules/_ui.scss +19 -29
- data/{stylesheets → scss}/foundation/functions/_all.scss +0 -0
- data/{stylesheets → scss}/foundation/functions/_convert-number-to-word.scss +0 -0
- data/{stylesheets → scss}/foundation/functions/_grid-calc.scss +0 -0
- data/{stylesheets → scss}/foundation/functions/_modular-scale.sass +0 -0
- data/{stylesheets → scss}/foundation/mixins/_all.scss +0 -0
- data/{stylesheets → scss}/foundation/mixins/_clearfix.scss +0 -0
- data/{stylesheets → scss}/foundation/mixins/_css-triangle.scss +0 -0
- data/{stylesheets → scss}/foundation/mixins/_font-size.scss +2 -0
- data/{stylesheets → scss}/foundation/mixins/_respond-to.scss +0 -0
- data/{stylesheets → scss}/foundation/mixins/_semantic-grid.scss +28 -8
- data/{stylesheets → scss}/foundation.scss +2 -2
- data/templates/project/index.html +12 -12
- data/templates/project/manifest.rb +27 -42
- data/templates/project/{sass → scss}/_settings.scss +17 -0
- data/templates/project/{sass → scss}/app.scss +4 -4
- data/templates/upgrade/manifest.rb +39 -0
- data/test/buttons.html +184 -0
- data/test/config.rb +11 -0
- data/test/elements.html +339 -0
- data/test/forms.html +376 -0
- data/test/grid.html +560 -0
- data/test/images/orbit-demo/demo1.jpeg +0 -0
- data/test/images/orbit-demo/demo2.jpeg +0 -0
- data/test/images/orbit-demo/demo3.jpeg +0 -0
- data/test/images/orbit-demo/slider-background.jpeg +0 -0
- data/test/index.html +84 -0
- data/test/navigation.html +239 -0
- data/test/orbit.html +106 -0
- data/test/reveal.html +78 -0
- data/test/scss/_settings.scss +75 -0
- data/test/scss/styles.scss +2 -0
- data/test/tabs.html +184 -0
- data/test/template.html +60 -0
- data/test/type.html +194 -0
- data/vendor/assets/javascripts/foundation/app.js +5 -4
- data/vendor/assets/javascripts/foundation/index.js +1 -0
- data/vendor/assets/javascripts/foundation/jquery.foundation.buttons.js +6 -2
- data/vendor/assets/javascripts/foundation/jquery.foundation.forms.js +7 -7
- data/vendor/assets/javascripts/foundation/jquery.foundation.mediaQueryToggle.js +21 -0
- data/vendor/assets/javascripts/foundation/jquery.foundation.orbit.js +2 -1
- metadata +73 -75
- data/config/assets.yml +0 -58
- data/public/assets/foundation.js +0 -11
- data/public/assets/jquery.js +0 -23
- data/test.html +0 -232
- data/test2.html +0 -320
- data/type.html +0 -134
data/test/forms.html
ADDED
@@ -0,0 +1,376 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
|
3
|
+
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
|
4
|
+
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
|
5
|
+
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
|
6
|
+
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
7
|
+
<head>
|
8
|
+
<meta charset="utf-8" />
|
9
|
+
|
10
|
+
<!-- Set the viewport width to device width for mobile -->
|
11
|
+
<meta name="viewport" content="width=device-width" />
|
12
|
+
|
13
|
+
<title>Foundation Forms Testing</title>
|
14
|
+
|
15
|
+
<!-- Included CSS Files -->
|
16
|
+
<link rel="stylesheet" href="stylesheets/styles.css">
|
17
|
+
|
18
|
+
<script src="../vendor/assets/javascripts/foundation/modernizr.foundation.js"></script>
|
19
|
+
|
20
|
+
<!-- IE Fix for HTML5 Tags -->
|
21
|
+
<!--[if lt IE 9]>
|
22
|
+
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
23
|
+
<![endif]-->
|
24
|
+
</head>
|
25
|
+
<body>
|
26
|
+
|
27
|
+
<div class="row">
|
28
|
+
<div class="twelve columns">
|
29
|
+
<p><a href="index.html">« Back</a></p>
|
30
|
+
<h2>Foundation Forms Testing</h2>
|
31
|
+
<hr />
|
32
|
+
<dl class="sub-nav">
|
33
|
+
<dt>Go to:</dt>
|
34
|
+
<dd><a href="#row-layout">Row Layout</a></dd>
|
35
|
+
<dd><a href="#fieldsets">Fieldsets</a></dd>
|
36
|
+
<dd><a href="#collapsed">Collapsed Columns</a></dd>
|
37
|
+
<dd><a href="#errors">Errors</a></dd>
|
38
|
+
<dd><a href="#custom">Custom Inputs</a></dd>
|
39
|
+
</dl>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<!-- Test Foundation Components Here -->
|
44
|
+
<div class="row">
|
45
|
+
<div class="twelve columns">
|
46
|
+
|
47
|
+
<a name="general"></a>
|
48
|
+
<h3>Forms</h3>
|
49
|
+
<h4 class="subheader">We set out in Foundation 3 to create an easy to handle, powerful, and versatile form layout system. A combination of form styles and the Foundation grid means you can do basically anything.</h4>
|
50
|
+
<br>
|
51
|
+
|
52
|
+
<div class="row">
|
53
|
+
<div class="four columns">
|
54
|
+
<a name="row-layout"></a>
|
55
|
+
<h4>Row Layouts</h4>
|
56
|
+
<p>Here's an example of a form layout controlled with rows and columns.</p>
|
57
|
+
</div>
|
58
|
+
<br>
|
59
|
+
<div class="eight columns">
|
60
|
+
<form>
|
61
|
+
<label>This is a label.</label>
|
62
|
+
<input type="text" placeholder="Standard Input" />
|
63
|
+
|
64
|
+
<label>Address</label>
|
65
|
+
<input type="text" class="twelve" placeholder="Street" />
|
66
|
+
<div class="row">
|
67
|
+
<div class="six columns">
|
68
|
+
<input type="text" placeholder="City" />
|
69
|
+
</div>
|
70
|
+
<div class="three columns">
|
71
|
+
<input type="text" placeholder="State" />
|
72
|
+
</div>
|
73
|
+
<div class="three columns">
|
74
|
+
<input type="text" placeholder="ZIP" />
|
75
|
+
</div>
|
76
|
+
</div>
|
77
|
+
</form>
|
78
|
+
<p>Sometimes you want a form with labels to the left of your inputs. Piece of cake. You can add a class of <code>.right</code> to a label to have it align to the right, and if your label is next to an input (in another column) adding a class of <code>.inline</code> will have it vertically center against an input.</p>
|
79
|
+
|
80
|
+
<br>
|
81
|
+
|
82
|
+
<form>
|
83
|
+
<div class="row">
|
84
|
+
<div class="two mobile-one columns">
|
85
|
+
<label class="right inline">Address Name:</label>
|
86
|
+
</div>
|
87
|
+
<div class="ten mobile-three columns">
|
88
|
+
<input type="text" placeholder="e.g. Home" class="eight" />
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
<div class="row">
|
92
|
+
<div class="two mobile-one columns">
|
93
|
+
<label class="right inline">City:</label>
|
94
|
+
</div>
|
95
|
+
<div class="ten mobile-three columns">
|
96
|
+
<input type="text" class="eight" />
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
<div class="row">
|
100
|
+
<div class="two mobile-one columns">
|
101
|
+
<label class="right inline">ZIP:</label>
|
102
|
+
</div>
|
103
|
+
<div class="ten mobile-three columns">
|
104
|
+
<input type="text" class="three" />
|
105
|
+
</div>
|
106
|
+
</div>
|
107
|
+
</form>
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
|
111
|
+
<br>
|
112
|
+
|
113
|
+
<div class="row">
|
114
|
+
<div class="four columns">
|
115
|
+
<a name="fieldsets"></a>
|
116
|
+
<h4>Fieldsets</h4>
|
117
|
+
<p>Simple elements that can contain all or part of a form to create better division.</p>
|
118
|
+
</div>
|
119
|
+
<div class="eight columns">
|
120
|
+
<form class="custom">
|
121
|
+
<fieldset>
|
122
|
+
|
123
|
+
<legend>Fieldset Name</legend>
|
124
|
+
|
125
|
+
<label>This is a label.</label>
|
126
|
+
<input type="text" placeholder="Standard Input" />
|
127
|
+
|
128
|
+
<label>Address</label>
|
129
|
+
<input type="text" />
|
130
|
+
<input type="text" class="six" />
|
131
|
+
|
132
|
+
</fieldset>
|
133
|
+
</form>
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
<br>
|
138
|
+
|
139
|
+
<div class="row">
|
140
|
+
<div class="four columns">
|
141
|
+
<a name="collapsed"></a>
|
142
|
+
<h4>Labels and Actions with Collapsed Columns</h4>
|
143
|
+
<p>Foundation forms support actions tied to buttons, and prefix / postfix labels. Essentially you can use a 'collapsed' row to create label / action / input combinations. Here are a few examples.</p>
|
144
|
+
</div>
|
145
|
+
<br>
|
146
|
+
<div class="eight columns">
|
147
|
+
<label>Input with a prefix character</label>
|
148
|
+
<div class="row">
|
149
|
+
<div class="eight columns">
|
150
|
+
<div class="row collapse">
|
151
|
+
<div class="two mobile-one columns">
|
152
|
+
<span class="prefix">#</span>
|
153
|
+
</div>
|
154
|
+
<div class="ten mobile-three columns">
|
155
|
+
<input type="text" />
|
156
|
+
</div>
|
157
|
+
</div>
|
158
|
+
</div>
|
159
|
+
</div>
|
160
|
+
<label>Input with a postfix label</label>
|
161
|
+
<div class="row">
|
162
|
+
<div class="eight columns">
|
163
|
+
<div class="row collapse">
|
164
|
+
<div class="nine mobile-three columns">
|
165
|
+
<input type="text" />
|
166
|
+
</div>
|
167
|
+
<div class="three mobile-one columns">
|
168
|
+
<span class="postfix">.com</span>
|
169
|
+
</div>
|
170
|
+
</div>
|
171
|
+
</div>
|
172
|
+
</div>
|
173
|
+
<label>Input with a postfix action (button)</label>
|
174
|
+
<div class="row">
|
175
|
+
<div class="eight columns">
|
176
|
+
<div class="row collapse">
|
177
|
+
<div class="eight mobile-three columns">
|
178
|
+
<input type="text" />
|
179
|
+
</div>
|
180
|
+
<div class="four mobile-one columns">
|
181
|
+
<a class="button expand postfix">Search</a>
|
182
|
+
</div>
|
183
|
+
</div>
|
184
|
+
</div>
|
185
|
+
</div>
|
186
|
+
</div>
|
187
|
+
</div>
|
188
|
+
|
189
|
+
<br><br>
|
190
|
+
|
191
|
+
<div class="row">
|
192
|
+
<div class="four columns">
|
193
|
+
<a name="errors"></a>
|
194
|
+
<h4>Error States</h4>
|
195
|
+
<p>Foundation includes error states for labels, inputs and messaging that you can have your app generate programatically.
|
196
|
+
</div>
|
197
|
+
<br>
|
198
|
+
<div class="eight columns">
|
199
|
+
<div class="row">
|
200
|
+
<div class="six columns">
|
201
|
+
<label class="error">Field with Error</label>
|
202
|
+
<input type="text" class="error" />
|
203
|
+
<small class="error">Invalid entry</small>
|
204
|
+
</div>
|
205
|
+
|
206
|
+
<div class="six columns end error">
|
207
|
+
<label>Another Error</label>
|
208
|
+
<input type="text" />
|
209
|
+
<small>Invalid entry</small>
|
210
|
+
</div>
|
211
|
+
</div>
|
212
|
+
</div>
|
213
|
+
</div>
|
214
|
+
|
215
|
+
<div class="row">
|
216
|
+
<div class="four columns">
|
217
|
+
<h4>Large Form Example</h4>
|
218
|
+
<p>Here's an example of a really extensive form.</p>
|
219
|
+
</div>
|
220
|
+
<div class="eight columns">
|
221
|
+
<form>
|
222
|
+
<fieldset>
|
223
|
+
<legend>Large Form Example</legend>
|
224
|
+
|
225
|
+
<div class="row">
|
226
|
+
<div class="five columns">
|
227
|
+
|
228
|
+
<label>Name</label>
|
229
|
+
<input type="text" />
|
230
|
+
|
231
|
+
<label>Occupation</label>
|
232
|
+
<input type="text" />
|
233
|
+
|
234
|
+
<label>Twitter</label>
|
235
|
+
<div class="row collapse">
|
236
|
+
<div class="two mobile-one columns">
|
237
|
+
<span class="prefix">@</span>
|
238
|
+
</div>
|
239
|
+
<div class="ten mobile-three columns">
|
240
|
+
<input type="text" placeholder="foundationzurb" />
|
241
|
+
</div>
|
242
|
+
</div>
|
243
|
+
|
244
|
+
<label>URL</label>
|
245
|
+
<div class="row collapse">
|
246
|
+
<div class="nine mobile-three columns">
|
247
|
+
<input type="text" placeholder="foundation.zurb" />
|
248
|
+
</div>
|
249
|
+
<div class="three mobile-one columns">
|
250
|
+
<span class="postfix">.com</span>
|
251
|
+
</div>
|
252
|
+
</div>
|
253
|
+
|
254
|
+
</div>
|
255
|
+
|
256
|
+
<div class="five columns">
|
257
|
+
|
258
|
+
<label class="error">Field with Error</label>
|
259
|
+
<input type="text" class="error" />
|
260
|
+
<small class="error">Invalid entry</small>
|
261
|
+
|
262
|
+
<div class="error">
|
263
|
+
<label>Another Error</label>
|
264
|
+
<input type="text" />
|
265
|
+
<small>Invalid entry</small>
|
266
|
+
</div>
|
267
|
+
|
268
|
+
</div>
|
269
|
+
</div>
|
270
|
+
|
271
|
+
<label>Address</label>
|
272
|
+
<input type="text" placeholder="Street (e.g. 123 Awesome St.)" />
|
273
|
+
|
274
|
+
<div class="row">
|
275
|
+
<div class="six columns">
|
276
|
+
<input type="text" placeholder="City" />
|
277
|
+
</div>
|
278
|
+
<div class="two columns" />
|
279
|
+
<select>
|
280
|
+
<option>CA</option>
|
281
|
+
</select>
|
282
|
+
</div>
|
283
|
+
<div class="four columns">
|
284
|
+
<input type="text" placeholder="ZIP" />
|
285
|
+
</div>
|
286
|
+
</div>
|
287
|
+
|
288
|
+
</fieldset>
|
289
|
+
</form>
|
290
|
+
</div>
|
291
|
+
</div>
|
292
|
+
|
293
|
+
<br><br>
|
294
|
+
|
295
|
+
<div class="row">
|
296
|
+
<div class="four columns">
|
297
|
+
<a name="custom"></a>
|
298
|
+
<h4>Custom Inputs</h4>
|
299
|
+
<p>Custom form input types that are included with Foundation.</p>
|
300
|
+
</div>
|
301
|
+
<div class="eight columns">
|
302
|
+
<form class="custom">
|
303
|
+
|
304
|
+
<h5>Radio Buttons and Checkboxes</h5>
|
305
|
+
<div class="row">
|
306
|
+
<div class="four columns">
|
307
|
+
<label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;"><span class="custom radio"></span> Radio Button 1</label>
|
308
|
+
<label for="radio2"><input name="radio1" type="radio" id="radio2" style="display:none;"><span class="custom radio checked"></span> Radio Button 2</label>
|
309
|
+
<label for="radio3"><input name="radio1" type="radio" id="radio3" disabled style="display:none;"><span class="custom radio"></span> Radio Button 3</label>
|
310
|
+
</div>
|
311
|
+
<div class="four columns">
|
312
|
+
<label for="radio4"><input name="radio2" type="radio" id="radio4"> Radio Button 1</label>
|
313
|
+
<label for="radio5"><input name="radio2" CHECKED type="radio" id="radio5"> Radio Button 2</label>
|
314
|
+
<label for="radio6"><input name="radio2" type="radio" id="radio6"> Radio Button 3</label>
|
315
|
+
</div>
|
316
|
+
<div class="four columns">
|
317
|
+
<label for="checkbox1"><input type="checkbox" id="checkbox1" style="display: none;"><span class="custom checkbox"></span> Label for Checkbox</label>
|
318
|
+
<label for="checkbox2"><input type="checkbox" id="checkbox2" checked style="display: none;"><span class="custom checkbox checked"></span> Label for Checkbox</label>
|
319
|
+
<label for="checkbox3"><input type="checkbox" CHECKED id="checkbox3"> Label for Checkbox</label>
|
320
|
+
</div>
|
321
|
+
</div>
|
322
|
+
|
323
|
+
<br />
|
324
|
+
<h5>Dropdown / Select Elements</h5>
|
325
|
+
|
326
|
+
<label for="customDropdown">Dropdown Label</label>
|
327
|
+
<select style="display:none;" id="customDropdown">
|
328
|
+
<option SELECTED>This is a dropdown</option>
|
329
|
+
<option>This is another option</option>
|
330
|
+
<option>Look, a third option</option>
|
331
|
+
</select>
|
332
|
+
<div class="custom dropdown">
|
333
|
+
<a href="#" class="current">
|
334
|
+
This is a dropdown
|
335
|
+
</a>
|
336
|
+
<a href="#" class="selector"></a>
|
337
|
+
<ul>
|
338
|
+
<li>This is a dropdown</li>
|
339
|
+
<li>This is another option</li>
|
340
|
+
<li>Look, a third option</li>
|
341
|
+
</ul>
|
342
|
+
</div>
|
343
|
+
|
344
|
+
<label for="customDropdown2">Dropdown Label</label>
|
345
|
+
<select id="customDropdown2">
|
346
|
+
<option>This is a dropdown</option>
|
347
|
+
<option SELECTED>This is another option</option>
|
348
|
+
<option>Look, a third option</option>
|
349
|
+
</select>
|
350
|
+
|
351
|
+
</form>
|
352
|
+
</div>
|
353
|
+
</div>
|
354
|
+
|
355
|
+
</div>
|
356
|
+
</div>
|
357
|
+
|
358
|
+
<!-- Included JS Files -->
|
359
|
+
<script src="../vendor/assets/javascripts/foundation/jquery.js"></script>
|
360
|
+
<script src="../vendor/assets/javascripts/foundation/jquery.foundation.mediaQueryToggle.js"></script>
|
361
|
+
<script src="../vendor/assets/javascripts/foundation/jquery.placeholder.js"></script>
|
362
|
+
<script src="../vendor/assets/javascripts/foundation/jquery.foundation.alerts.js"></script>
|
363
|
+
<script src="../vendor/assets/javascripts/foundation/jquery.foundation.accordion.js"></script>
|
364
|
+
<script src="../vendor/assets/javascripts/foundation/jquery.foundation.buttons.js"></script>
|
365
|
+
<script src="../vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js"></script>
|
366
|
+
<script src="../vendor/assets/javascripts/foundation/jquery.foundation.forms.js"></script>
|
367
|
+
<script src="../vendor/assets/javascripts/foundation/jquery.foundation.tabs.js"></script>
|
368
|
+
<script src="../vendor/assets/javascripts/foundation/jquery.foundation.navigation.js"></script>
|
369
|
+
<script src="../vendor/assets/javascripts/foundation/jquery.foundation.reveal.js"></script>
|
370
|
+
<script src="../vendor/assets/javascripts/foundation/jquery.foundation.orbit.js"></script>
|
371
|
+
<script src="../vendor/assets/javascripts/foundation/app.js"></script>
|
372
|
+
<script type="text/javascript">
|
373
|
+
// Page-Specific JavaScript Goes Here
|
374
|
+
</script>
|
375
|
+
</body>
|
376
|
+
</html>
|