survivalkit 1.0.beta.11 → 1.0.beta.12
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +4 -0
- data/lib/survivalkit.rb +2 -2
- data/stylesheets/survivalkit/fonts/_all.scss +2 -0
- data/stylesheets/survivalkit/fonts/_ss-social.scss +136 -0
- data/stylesheets/survivalkit/fonts/_ss-standard.scss +426 -0
- data/stylesheets/survivalkit/reset/_reset.scss +4 -0
- data/templates/clean/manifest.rb +0 -2
- data/templates/drupal/manifest.rb +0 -2
- data/templates/project/manifest.rb +44 -46
- data/templates/project/sources/FitVids/README.md +49 -0
- data/templates/project/sources/FitVids/jquery.fitvids.js +80 -0
- data/templates/project/sources/FitVids/tests.html +66 -0
- data/templates/project/sources/Geared-Scrolling/README.md +31 -0
- data/templates/project/sources/Geared-Scrolling/css/specific.css +88 -0
- data/templates/project/sources/Geared-Scrolling/images/col1.png +0 -0
- data/templates/project/sources/Geared-Scrolling/images/col2.png +0 -0
- data/templates/project/sources/Geared-Scrolling/images/col3.png +0 -0
- data/templates/project/sources/Geared-Scrolling/images/header.png +0 -0
- data/templates/project/sources/Geared-Scrolling/index.html +32 -0
- data/templates/project/sources/Geared-Scrolling/js/init.js +11 -0
- data/templates/project/sources/Geared-Scrolling/js/jquery.heyday.gearedscrolling.js +283 -0
- data/templates/project/sources/Lettering.js/README.md +58 -0
- data/templates/project/sources/Lettering.js/examples/index.html +135 -0
- data/templates/project/sources/Lettering.js/examples/style.css +171 -0
- data/templates/project/sources/Lettering.js/jquery.lettering.js +66 -0
- data/templates/project/sources/Respond/README.md +100 -0
- data/templates/project/sources/Respond/cross-domain/example.html +24 -0
- data/templates/project/sources/Respond/cross-domain/respond-proxy.html +96 -0
- data/templates/project/sources/Respond/cross-domain/respond.proxy.gif +0 -0
- data/templates/project/sources/Respond/cross-domain/respond.proxy.js +127 -0
- data/templates/project/sources/Respond/respond.min.js +6 -0
- data/templates/project/sources/Respond/respond.src.js +326 -0
- data/templates/project/sources/Respond/test/test.css +80 -0
- data/templates/project/sources/Respond/test/test.html +20 -0
- data/templates/project/sources/Respond/test/test2.css +8 -0
- data/templates/project/sources/Respond/test/unit/index.html +29 -0
- data/templates/project/sources/Respond/test/unit/qunit/qunit.css +226 -0
- data/templates/project/sources/Respond/test/unit/qunit/qunit.js +1598 -0
- data/templates/project/sources/Respond/test/unit/test.css +73 -0
- data/templates/project/sources/Respond/test/unit/test2.css +5 -0
- data/templates/project/sources/Respond/test/unit/test3.css +5 -0
- data/templates/project/sources/Respond/test/unit/tests.js +144 -0
- data/templates/project/sources/box-sizing-polyfill/README.md +24 -0
- data/templates/project/sources/box-sizing-polyfill/boxsizing.htc +501 -0
- data/templates/project/sources/formalize/README.txt +26 -0
- data/templates/project/sources/formalize/assets/css/_formalize.sass +326 -0
- data/templates/project/sources/formalize/assets/css/demo.css +654 -0
- data/templates/project/sources/formalize/assets/css/formalize.css +368 -0
- data/templates/project/sources/formalize/assets/css/reset.css +211 -0
- data/templates/project/sources/formalize/assets/css/text.css +81 -0
- data/templates/project/sources/formalize/assets/images/button.png +0 -0
- data/templates/project/sources/formalize/assets/images/select_arrow.gif +0 -0
- data/templates/project/sources/formalize/assets/js/dojo.formalize.js +202 -0
- data/templates/project/sources/formalize/assets/js/dojo.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/extjs.formalize.js +192 -0
- data/templates/project/sources/formalize/assets/js/extjs.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/jquery.formalize.js +181 -0
- data/templates/project/sources/formalize/assets/js/jquery.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/mootools.formalize.js +193 -0
- data/templates/project/sources/formalize/assets/js/mootools.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/prototype.formalize.js +192 -0
- data/templates/project/sources/formalize/assets/js/prototype.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/yui.formalize.js +183 -0
- data/templates/project/sources/formalize/assets/js/yui.formalize.min.js +1 -0
- data/templates/project/sources/formalize/demo.html +130 -0
- data/templates/project/sources/formalize/dojo_demo.html +215 -0
- data/templates/project/sources/formalize/dojo_disabled.html +215 -0
- data/templates/project/sources/formalize/dojo_errors.html +215 -0
- data/templates/project/sources/formalize/extjs_demo.html +215 -0
- data/templates/project/sources/formalize/extjs_disabled.html +215 -0
- data/templates/project/sources/formalize/extjs_errors.html +215 -0
- data/templates/project/sources/formalize/jquery_demo.html +215 -0
- data/templates/project/sources/formalize/jquery_disabled.html +215 -0
- data/templates/project/sources/formalize/jquery_errors.html +215 -0
- data/templates/project/sources/formalize/mootools_demo.html +215 -0
- data/templates/project/sources/formalize/mootools_disabled.html +215 -0
- data/templates/project/sources/formalize/mootools_errors.html +215 -0
- data/templates/project/sources/formalize/prototype_demo.html +215 -0
- data/templates/project/sources/formalize/prototype_disabled.html +215 -0
- data/templates/project/sources/formalize/prototype_errors.html +215 -0
- data/templates/project/sources/formalize/unstyled.html +210 -0
- data/templates/project/sources/formalize/yui_demo.html +223 -0
- data/templates/project/sources/formalize/yui_disabled.html +223 -0
- data/templates/project/sources/formalize/yui_errors.html +223 -0
- data/templates/project/sources/iOS-Orientationchange-Fix/README.md +16 -0
- data/templates/project/sources/iOS-Orientationchange-Fix/demo.html +43 -0
- data/templates/project/sources/iOS-Orientationchange-Fix/ios-orientationchange-fix.js +56 -0
- data/templates/project/sources/jQuery-widowFix/index.html +159 -0
- data/templates/project/sources/jQuery-widowFix/js/jquery-1.4.3.min.js +166 -0
- data/templates/project/sources/jQuery-widowFix/js/jquery.widowFix-1.3.2.js +135 -0
- data/templates/project/sources/jQuery-widowFix/js/jquery.widowFix-1.3.2.min.js +10 -0
- data/templates/project/sources/jQuery-widowFix/sample.html +84 -0
- data/templates/project/sources/jquery-html5-placeholder-shim/jquery.html5-placeholder-shim.js +96 -0
- data/templates/project/sources/jquery-html5-placeholder-shim/readme.md +22 -0
- data/templates/project/sources/jquery-html5-placeholder-shim/test.html +103 -0
- data/templates/project/sources/ss-social/ss-social.js +78 -0
- data/templates/project/sources/ss-standard/ss-standard.js +78 -0
- data/templates/shared/partials/01-variables/_colors.scss +2 -6
- data/templates/shared/partials/01-variables/_fonts.scss +49 -2
- data/templates/shared/partials/01-variables/_settings.scss +48 -13
- data/templates/shared/partials/04-base/_all.scss +0 -2
- data/templates/shared/partials/04-base/_common.scss +0 -4
- data/templates/shared/partials/05-layout/_grids-susy.scss +4 -4
- data/templates/shared/style.scss +9 -9
- metadata +93 -5
- data/templates/shared/partials/04-base/_edits.scss +0 -8
- data/templates/shared/partials/04-base/_font-face.scss +0 -14
@@ -0,0 +1 @@
|
|
1
|
+
var FORMALIZE=function(e,t,n){function r(e){var n=t.createElement("b");return n.innerHTML="<!--[if IE "+e+"]><br><![endif]-->",!!n.getElementsByTagName("br").length}var i="placeholder"in t.createElement("input"),s="autofocus"in t.createElement("input"),o=r(6),u=r(7);return{go:function(){var e,t=this.init;for(e in t)t.hasOwnProperty(e)&&t[e]()},init:{disable_link_button:function(){$(t.documentElement).observe("click",function(e){var t=e.target,n=t.tagName.toLowerCase()==="a"&&t.className.match("button_disabled");n&&e.preventDefault()})},full_input_size:function(){if(!u||!$$("textarea, input.input_full").length)return;$$("textarea, input.input_full").each(function(e){Element.wrap(e,"span",{"class":"input_full_wrap"})})},ie6_skin_inputs:function(){if(!o||!$$("input, select, textarea").length)return;var e=/button|submit|reset/,t=/date|datetime|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/;$$("input").each(function(n){n.getAttribute("type").match(e)?(n.addClassName("ie6_button"),n.disabled&&n.addClassName("ie6_button_disabled")):n.getAttribute("type").match(t)&&(n.addClassName("ie6_input"),n.disabled&&n.addClassName("ie6_input_disabled"))}),$$("textarea, select").each(function(e){e.disabled&&e.addClassName("ie6_input_disabled")})},autofocus:function(){if(s||!$$("[autofocus]").length)return;var e=$$("[autofocus]")[0];e.disabled||e.focus()},placeholder:function(){if(i||!$$("[placeholder]").length)return;FORMALIZE.misc.add_placeholder(),$$("[placeholder]").each(function(e){if(e.type==="password")return;var t=e.getAttribute("placeholder"),n=e.up("form");e.observe("focus",function(){e.value===t&&(e.value="",e.removeClassName("placeholder_text"))}),e.observe("blur",function(){FORMALIZE.misc.add_placeholder()}),n.observe("submit",function(){e.value===t&&(e.value="",e.removeClassName("placeholder_text"))}),n.observe("reset",function(){setTimeout(FORMALIZE.misc.add_placeholder,50)})})}},misc:{add_placeholder:function(){if(i||!$$("[placeholder]").length)return;$$("[placeholder]").each(function(e){if(e.type==="password")return;var t=e.getAttribute("placeholder");if(!e.value||e.value===t)e.value=t,e.addClassName("placeholder_text")})}}}}(this,this.document);$(document).observe("dom:loaded",function(){FORMALIZE.go()})
|
@@ -0,0 +1,183 @@
|
|
1
|
+
/*
|
2
|
+
Formalize - version 1.2
|
3
|
+
|
4
|
+
Note: This file depends on the YUI library.
|
5
|
+
*/
|
6
|
+
|
7
|
+
YUI.add('formalize', function(Y) {
|
8
|
+
// Internet Explorer detection.
|
9
|
+
function IE(version) {
|
10
|
+
var b = document.createElement('b');
|
11
|
+
b.innerHTML = '<!--[if IE ' + version + ']><br><![endif]-->';
|
12
|
+
return !!b.getElementsByTagName('br').length;
|
13
|
+
}
|
14
|
+
|
15
|
+
// Private constants.
|
16
|
+
var PLACEHOLDER_SUPPORTED = 'placeholder' in document.createElement('input');
|
17
|
+
var AUTOFOCUS_SUPPORTED = 'autofocus' in document.createElement('input');
|
18
|
+
var IE6 = IE(6);
|
19
|
+
var IE7 = IE(7);
|
20
|
+
|
21
|
+
// Expose innards of Formalize.
|
22
|
+
Y.formalize = {
|
23
|
+
// Y.formalize.go
|
24
|
+
go: function() {
|
25
|
+
var i, j = this.init;
|
26
|
+
|
27
|
+
for (i in j) {
|
28
|
+
j.hasOwnProperty(i) && j[i]();
|
29
|
+
}
|
30
|
+
},
|
31
|
+
// Y.formalize.init
|
32
|
+
init: {
|
33
|
+
// Y.formalize.init.disable_link_button
|
34
|
+
disable_link_button: function() {
|
35
|
+
Y.one(document.documentElement).delegate('click', function(ev) {
|
36
|
+
ev.preventDefault();
|
37
|
+
}, 'a.button_disabled');
|
38
|
+
},
|
39
|
+
// Y.formalize.init.full_input_size
|
40
|
+
full_input_size: function() {
|
41
|
+
if (!IE7 || !Y.all('textarea, input.input_full')) {
|
42
|
+
return;
|
43
|
+
}
|
44
|
+
|
45
|
+
// This fixes width: 100% on <textarea> and class="input_full".
|
46
|
+
// It ensures that form elements don't go wider than container.
|
47
|
+
Y.all('textarea, input.input_full').each(function(el) {
|
48
|
+
var wrapper = Y.Node.create('<span class="input_full_wrap"></span>');
|
49
|
+
wrapper.append(el.replace(wrapper));
|
50
|
+
});
|
51
|
+
},
|
52
|
+
// Y.formalize.init.ie6_skin_inputs
|
53
|
+
ie6_skin_inputs: function() {
|
54
|
+
// Test for Internet Explorer 6.
|
55
|
+
if (!IE6 || !Y.all('input, select, textarea')) {
|
56
|
+
// Exit if the browser is not IE6,
|
57
|
+
// or if no form elements exist.
|
58
|
+
return;
|
59
|
+
}
|
60
|
+
|
61
|
+
// For <input type="submit" />, etc.
|
62
|
+
var button_regex = /button|submit|reset/;
|
63
|
+
|
64
|
+
// For <input type="text" />, etc.
|
65
|
+
var type_regex = /date|datetime|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/;
|
66
|
+
|
67
|
+
Y.all('input').each(function(el) {
|
68
|
+
// Is it a button?
|
69
|
+
if (el.getAttribute('type').match(button_regex)) {
|
70
|
+
el.addClass('ie6_button');
|
71
|
+
|
72
|
+
/* Is it disabled? */
|
73
|
+
if (el.disabled) {
|
74
|
+
el.addClass('ie6_button_disabled');
|
75
|
+
}
|
76
|
+
}
|
77
|
+
// Or is it a textual input?
|
78
|
+
else if (el.getAttribute('type').match(type_regex)) {
|
79
|
+
el.addClass('ie6_input');
|
80
|
+
|
81
|
+
/* Is it disabled? */
|
82
|
+
if (el.disabled) {
|
83
|
+
el.addClass('ie6_input_disabled');
|
84
|
+
}
|
85
|
+
}
|
86
|
+
});
|
87
|
+
|
88
|
+
Y.all('textarea, select').each(function(el) {
|
89
|
+
/* Is it disabled? */
|
90
|
+
if (el.disabled) {
|
91
|
+
el.addClass('ie6_input_disabled');
|
92
|
+
}
|
93
|
+
});
|
94
|
+
},
|
95
|
+
// Y.formalize.init.autofocus
|
96
|
+
autofocus: function() {
|
97
|
+
if (AUTOFOCUS_SUPPORTED || !Y.one('[autofocus]')) {
|
98
|
+
return;
|
99
|
+
}
|
100
|
+
|
101
|
+
var el = Y.Node.getDOMNode(Y.one('[autofocus]'));
|
102
|
+
|
103
|
+
if (!el.disabled) {
|
104
|
+
el.focus();
|
105
|
+
}
|
106
|
+
},
|
107
|
+
// Y.formalize.init.placeholder
|
108
|
+
placeholder: function() {
|
109
|
+
if (PLACEHOLDER_SUPPORTED || !Y.one('[placeholder]')) {
|
110
|
+
// Exit if placeholder is supported natively,
|
111
|
+
// or if page does not have any placeholder.
|
112
|
+
return;
|
113
|
+
}
|
114
|
+
|
115
|
+
Y.formalize.misc.add_placeholder();
|
116
|
+
|
117
|
+
Y.all('[placeholder]').each(function(el) {
|
118
|
+
// Placeholder obscured in older browsers,
|
119
|
+
// so there's no point adding to password.
|
120
|
+
if (el.getAttribute('type') === 'password') {
|
121
|
+
return;
|
122
|
+
}
|
123
|
+
|
124
|
+
var text = el.getAttribute('placeholder');
|
125
|
+
var form = el.ancestor('form');
|
126
|
+
|
127
|
+
function add_placeholder() {
|
128
|
+
if (!el.get('value') || el.get('value') === text) {
|
129
|
+
el.set('value', text).addClass('placeholder_text');
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
el.on('focus', function() {
|
134
|
+
if (el.get('value') === text) {
|
135
|
+
el.set('value', '').removeClass('placeholder_text');
|
136
|
+
}
|
137
|
+
});
|
138
|
+
|
139
|
+
el.on('blur', function() {
|
140
|
+
Y.formalize.misc.add_placeholder();
|
141
|
+
});
|
142
|
+
|
143
|
+
// Prevent <form> from accidentally
|
144
|
+
// submitting the placeholder text.
|
145
|
+
form && form.on('submit', function() {
|
146
|
+
if (el.get('value') === text) {
|
147
|
+
el.set('value', '').removeClass('placeholder_text');
|
148
|
+
}
|
149
|
+
});
|
150
|
+
|
151
|
+
form && form.on('reset', function() {
|
152
|
+
setTimeout(Y.formalize.misc.add_placeholder, 50);
|
153
|
+
});
|
154
|
+
});
|
155
|
+
}
|
156
|
+
},
|
157
|
+
// Y.formalize.misc
|
158
|
+
misc: {
|
159
|
+
// Y.formalize.misc.add_placeholder
|
160
|
+
add_placeholder: function() {
|
161
|
+
if (PLACEHOLDER_SUPPORTED || !Y.one('[placeholder]')) {
|
162
|
+
// Exit if placeholder is supported natively,
|
163
|
+
// or if page does not have any placeholder.
|
164
|
+
return;
|
165
|
+
}
|
166
|
+
|
167
|
+
Y.all('[placeholder]').each(function(el) {
|
168
|
+
// Placeholder obscured in older browsers,
|
169
|
+
// so there's no point adding to password.
|
170
|
+
if (el.getAttribute('type') === 'password') {
|
171
|
+
return;
|
172
|
+
}
|
173
|
+
|
174
|
+
var text = el.getAttribute('placeholder');
|
175
|
+
|
176
|
+
if (!el.get('value') || el.get('value') === text) {
|
177
|
+
el.set('value', text).addClass('placeholder_text');
|
178
|
+
}
|
179
|
+
});
|
180
|
+
}
|
181
|
+
}
|
182
|
+
};
|
183
|
+
}, '1.1', {requires: ['node', 'event']});
|
@@ -0,0 +1 @@
|
|
1
|
+
YUI.add("formalize",function(e){function t(e){var t=document.createElement("b");return t.innerHTML="<!--[if IE "+e+"]><br><![endif]-->",!!t.getElementsByTagName("br").length}var n="placeholder"in document.createElement("input"),r="autofocus"in document.createElement("input"),i=t(6),s=t(7);e.formalize={go:function(){var e,t=this.init;for(e in t)t.hasOwnProperty(e)&&t[e]()},init:{disable_link_button:function(){e.one(document.documentElement).delegate("click",function(e){e.preventDefault()},"a.button_disabled")},full_input_size:function(){if(!s||!e.all("textarea, input.input_full"))return;e.all("textarea, input.input_full").each(function(t){var n=e.Node.create('<span class="input_full_wrap"></span>');n.append(t.replace(n))})},ie6_skin_inputs:function(){if(!i||!e.all("input, select, textarea"))return;var t=/button|submit|reset/,n=/date|datetime|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/;e.all("input").each(function(e){e.getAttribute("type").match(t)?(e.addClass("ie6_button"),e.disabled&&e.addClass("ie6_button_disabled")):e.getAttribute("type").match(n)&&(e.addClass("ie6_input"),e.disabled&&e.addClass("ie6_input_disabled"))}),e.all("textarea, select").each(function(e){e.disabled&&e.addClass("ie6_input_disabled")})},autofocus:function(){if(r||!e.one("[autofocus]"))return;var t=e.Node.getDOMNode(e.one("[autofocus]"));t.disabled||t.focus()},placeholder:function(){if(n||!e.one("[placeholder]"))return;e.formalize.misc.add_placeholder(),e.all("[placeholder]").each(function(t){function i(){(!t.get("value")||t.get("value")===n)&&t.set("value",n).addClass("placeholder_text")}if(t.getAttribute("type")==="password")return;var n=t.getAttribute("placeholder"),r=t.ancestor("form");t.on("focus",function(){t.get("value")===n&&t.set("value","").removeClass("placeholder_text")}),t.on("blur",function(){e.formalize.misc.add_placeholder()}),r&&r.on("submit",function(){t.get("value")===n&&t.set("value","").removeClass("placeholder_text")}),r&&r.on("reset",function(){setTimeout(e.formalize.misc.add_placeholder,50)})})}},misc:{add_placeholder:function(){if(n||!e.one("[placeholder]"))return;e.all("[placeholder]").each(function(e){if(e.getAttribute("type")==="password")return;var t=e.getAttribute("placeholder");(!e.get("value")||e.get("value")===t)&&e.set("value",t).addClass("placeholder_text")})}}}},"1.1",{requires:["node","event"]})
|
@@ -0,0 +1,130 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<title>Formalize CSS - Demo</title>
|
6
|
+
<style>
|
7
|
+
|
8
|
+
body {
|
9
|
+
background: #fff;
|
10
|
+
color: #333;
|
11
|
+
font: 13px/1.5 Arial, sans-serif;
|
12
|
+
}
|
13
|
+
|
14
|
+
h1 {
|
15
|
+
font-size: 20px;
|
16
|
+
}
|
17
|
+
|
18
|
+
a {
|
19
|
+
color: #06c;
|
20
|
+
outline: 0;
|
21
|
+
}
|
22
|
+
|
23
|
+
a:hover {
|
24
|
+
color: #f60;
|
25
|
+
}
|
26
|
+
|
27
|
+
</style>
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<h1>
|
31
|
+
Formalize CSS - Demo
|
32
|
+
</h1>
|
33
|
+
<p>
|
34
|
+
<a href="http://formalize.me/">Formalize home</a>
|
35
|
+
|
|
36
|
+
<a href="http://sonspring.com/journal/formalize-css">Blog post</a>
|
37
|
+
|
|
38
|
+
<a href="http://github.com/nathansmith/formalize/">GitHub repo</a>
|
39
|
+
</p>
|
40
|
+
<ul>
|
41
|
+
<li>
|
42
|
+
<a href="unstyled.html">Unstyled - Default</a>
|
43
|
+
</li>
|
44
|
+
</ul>
|
45
|
+
<p>
|
46
|
+
Demo with Dojo...
|
47
|
+
</p>
|
48
|
+
<ul>
|
49
|
+
<li>
|
50
|
+
<a href="dojo_demo.html">Normal</a>
|
51
|
+
</li>
|
52
|
+
<li>
|
53
|
+
<a href="dojo_disabled.html">Disabled</a>
|
54
|
+
</li>
|
55
|
+
<li>
|
56
|
+
<a href="dojo_errors.html">Errors</a>
|
57
|
+
</li>
|
58
|
+
</ul>
|
59
|
+
<p>
|
60
|
+
Demo with ExtJS...
|
61
|
+
</p>
|
62
|
+
<ul>
|
63
|
+
<li>
|
64
|
+
<a href="extjs_demo.html">Normal</a>
|
65
|
+
</li>
|
66
|
+
<li>
|
67
|
+
<a href="extjs_disabled.html">Disabled</a>
|
68
|
+
</li>
|
69
|
+
<li>
|
70
|
+
<a href="extjs_errors.html">Errors</a>
|
71
|
+
</li>
|
72
|
+
</ul>
|
73
|
+
<p>
|
74
|
+
Demo with jQuery...
|
75
|
+
</p>
|
76
|
+
<ul>
|
77
|
+
<li>
|
78
|
+
<a href="jquery_demo.html">Normal</a>
|
79
|
+
</li>
|
80
|
+
<li>
|
81
|
+
<a href="jquery_disabled.html">Disabled</a>
|
82
|
+
</li>
|
83
|
+
<li>
|
84
|
+
<a href="jquery_errors.html">Errors</a>
|
85
|
+
</li>
|
86
|
+
</ul>
|
87
|
+
<p>
|
88
|
+
Demo with MooTools...
|
89
|
+
</p>
|
90
|
+
<ul>
|
91
|
+
<li>
|
92
|
+
<a href="mootools_demo.html">Normal</a>
|
93
|
+
</li>
|
94
|
+
<li>
|
95
|
+
<a href="mootools_disabled.html">Disabled</a>
|
96
|
+
</li>
|
97
|
+
<li>
|
98
|
+
<a href="mootools_errors.html">Errors</a>
|
99
|
+
</li>
|
100
|
+
</ul>
|
101
|
+
<p>
|
102
|
+
Demo with Prototype...
|
103
|
+
</p>
|
104
|
+
<ul>
|
105
|
+
<li>
|
106
|
+
<a href="prototype_demo.html">Normal</a>
|
107
|
+
</li>
|
108
|
+
<li>
|
109
|
+
<a href="prototype_disabled.html">Disabled</a>
|
110
|
+
</li>
|
111
|
+
<li>
|
112
|
+
<a href="prototype_errors.html">Errors</a>
|
113
|
+
</li>
|
114
|
+
</ul>
|
115
|
+
<p>
|
116
|
+
Demo with YUI...
|
117
|
+
</p>
|
118
|
+
<ul>
|
119
|
+
<li>
|
120
|
+
<a href="yui_demo.html">Normal</a>
|
121
|
+
</li>
|
122
|
+
<li>
|
123
|
+
<a href="yui_disabled.html">Disabled</a>
|
124
|
+
</li>
|
125
|
+
<li>
|
126
|
+
<a href="yui_errors.html">Errors</a>
|
127
|
+
</li>
|
128
|
+
</ul>
|
129
|
+
</body>
|
130
|
+
</html>
|
@@ -0,0 +1,215 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<title>Formalize CSS</title>
|
6
|
+
<link rel="stylesheet" href="assets/css/demo.css" />
|
7
|
+
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojo/dojo.js"></script>
|
8
|
+
<script src="assets/js/dojo.formalize.js"></script>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<div id="wrapper">
|
12
|
+
<h1>
|
13
|
+
Example of all form elements
|
14
|
+
</h1>
|
15
|
+
<form action="#" method="post" enctype="multipart/form-data" onsubmit="return false">
|
16
|
+
<p>
|
17
|
+
<input type="checkbox" id="test_checkbox_1" name="test_checkbox_1" />
|
18
|
+
<label for="test_checkbox_1">
|
19
|
+
Test checkbox 1
|
20
|
+
</label>
|
21
|
+
|
22
|
+
|
23
|
+
<input type="checkbox" id="test_checkbox_2" name="test_checkbox_2" />
|
24
|
+
<label for="test_checkbox_2">
|
25
|
+
Test checkbox 2
|
26
|
+
</label>
|
27
|
+
|
28
|
+
|
29
|
+
<input type="checkbox" id="test_checkbox_3" name="test_checkbox_3" />
|
30
|
+
<label for="test_checkbox_3">
|
31
|
+
Test checkbox 3
|
32
|
+
</label>
|
33
|
+
</p>
|
34
|
+
<p>
|
35
|
+
<input type="radio" id="test_radio_1" name="test_radio_group" />
|
36
|
+
<label for="test_radio_1">
|
37
|
+
Test radio 1
|
38
|
+
</label>
|
39
|
+
|
40
|
+
|
41
|
+
<input type="radio" id="test_radio_2" name="test_radio_group" />
|
42
|
+
<label for="test_radio_2">
|
43
|
+
Test radio 2
|
44
|
+
</label>
|
45
|
+
|
46
|
+
|
47
|
+
<input type="radio" id="test_radio_3" name="test_radio_group" />
|
48
|
+
<label for="test_radio_3">
|
49
|
+
Test radio 3
|
50
|
+
</label>
|
51
|
+
</p>
|
52
|
+
<p>
|
53
|
+
<label for="select_dd">
|
54
|
+
Select drop-down
|
55
|
+
</label>
|
56
|
+
<br />
|
57
|
+
<select id="select_dd" name="select_dd">
|
58
|
+
<optgroup label="Group 1">
|
59
|
+
<option value="1">Some text goes here</option>
|
60
|
+
<option value="2">Another choice could be here</option>
|
61
|
+
<option value="3">Yet another item to be chosen</option>
|
62
|
+
</optgroup>
|
63
|
+
<optgroup label="Group 2">
|
64
|
+
<option value="4">Some text goes here</option>
|
65
|
+
<option value="5">Another choice could be here</option>
|
66
|
+
<option value="6">Yet another item to be chosen</option>
|
67
|
+
</optgroup>
|
68
|
+
<optgroup label="Group 3">
|
69
|
+
<option value="7">Some text goes here</option>
|
70
|
+
<option value="8">Another choice could be here</option>
|
71
|
+
<option value="9">Yet another item to be chosen</option>
|
72
|
+
</optgroup>
|
73
|
+
</select>
|
74
|
+
<input type="text" id="text_inline" name="text_inline" />
|
75
|
+
<input type="button" value="Input Button" />
|
76
|
+
<button>Button Tag</button>
|
77
|
+
<a href="#" class="button">Link Button</a>
|
78
|
+
</p>
|
79
|
+
<p>
|
80
|
+
<label for="select_multi">
|
81
|
+
Select multiple
|
82
|
+
</label>
|
83
|
+
<br />
|
84
|
+
<select id="select_multi" name="select_multi" multiple="multiple" size="10">
|
85
|
+
<optgroup label="Group 1">
|
86
|
+
<option value="1">Some text goes here</option>
|
87
|
+
<option value="2">Another choice could be here</option>
|
88
|
+
<option value="3">Yet another item to be chosen</option>
|
89
|
+
</optgroup>
|
90
|
+
<optgroup label="Group 2">
|
91
|
+
<option value="4">Some text goes here</option>
|
92
|
+
<option value="5">Another choice could be here</option>
|
93
|
+
<option value="6">Yet another item to be chosen</option>
|
94
|
+
</optgroup>
|
95
|
+
<optgroup label="Group 3">
|
96
|
+
<option value="7">Some text goes here</option>
|
97
|
+
<option value="8">Another choice could be here</option>
|
98
|
+
<option value="9">Yet another item to be chosen</option>
|
99
|
+
</optgroup>
|
100
|
+
</select>
|
101
|
+
</p>
|
102
|
+
<p>
|
103
|
+
<label for="textarea">
|
104
|
+
Textarea
|
105
|
+
</label>
|
106
|
+
<br />
|
107
|
+
<textarea id="textarea" name="textarea" rows="5" placeholder="This is an example of HTML5 placeholder text."></textarea>
|
108
|
+
</p>
|
109
|
+
<table class="horiz">
|
110
|
+
<tr>
|
111
|
+
<td>
|
112
|
+
<label for="url">
|
113
|
+
URL + Autofocus
|
114
|
+
</label>
|
115
|
+
<br />
|
116
|
+
<input type="url" id="url" name="url" value="http://" autofocus="autofocus" />
|
117
|
+
</td>
|
118
|
+
<td>
|
119
|
+
<label for="email">
|
120
|
+
Email
|
121
|
+
</label>
|
122
|
+
<br />
|
123
|
+
<input type="email" id="email" name="email" placeholder="name@example.com" />
|
124
|
+
</td>
|
125
|
+
<td>
|
126
|
+
<label for="password">
|
127
|
+
Password
|
128
|
+
</label>
|
129
|
+
<br />
|
130
|
+
<input type="password" id="password" name="password" placeholder="Alphanumeric123!" />
|
131
|
+
</td>
|
132
|
+
</tr>
|
133
|
+
<tr>
|
134
|
+
<td>
|
135
|
+
<label for="datetime-local">
|
136
|
+
Datetime local
|
137
|
+
</label>
|
138
|
+
<br />
|
139
|
+
<input type="datetime-local" id="datetime-local" name="datetime-local" />
|
140
|
+
</td>
|
141
|
+
<td>
|
142
|
+
<label for="number">
|
143
|
+
Number
|
144
|
+
</label>
|
145
|
+
<br />
|
146
|
+
<input type="number" id="number" name="number" min="0" max="999" step="1" />
|
147
|
+
</td>
|
148
|
+
<td>
|
149
|
+
<label for="tel">
|
150
|
+
Tel (phone)
|
151
|
+
</label>
|
152
|
+
<br />
|
153
|
+
<input type="tel" id="tel" name="tel" />
|
154
|
+
</td>
|
155
|
+
</tr>
|
156
|
+
<tr>
|
157
|
+
<td>
|
158
|
+
<label for="datetime">
|
159
|
+
Datetime
|
160
|
+
</label>
|
161
|
+
<br />
|
162
|
+
<input type="datetime" id="datetime" name="datetime" />
|
163
|
+
</td>
|
164
|
+
<td>
|
165
|
+
<label for="date">
|
166
|
+
Date
|
167
|
+
</label>
|
168
|
+
<br />
|
169
|
+
<input type="date" id="date" name="date" />
|
170
|
+
</td>
|
171
|
+
<td>
|
172
|
+
<label for="month">
|
173
|
+
Month
|
174
|
+
</label>
|
175
|
+
<br />
|
176
|
+
<input type="month" id="month" name="month" />
|
177
|
+
</td>
|
178
|
+
</tr>
|
179
|
+
<tr>
|
180
|
+
<td>
|
181
|
+
<label for="search">
|
182
|
+
Search
|
183
|
+
</label>
|
184
|
+
<br />
|
185
|
+
<input type="search" id="search" name="search" />
|
186
|
+
</td>
|
187
|
+
<td>
|
188
|
+
<label for="range">
|
189
|
+
Range
|
190
|
+
</label>
|
191
|
+
<br />
|
192
|
+
<input type="range" id="range" name="range" />
|
193
|
+
</td>
|
194
|
+
<td>
|
195
|
+
<label for="file">
|
196
|
+
File upload
|
197
|
+
</label>
|
198
|
+
<br />
|
199
|
+
<input type="file" id="file" name="file" />
|
200
|
+
</td>
|
201
|
+
</tr>
|
202
|
+
</table>
|
203
|
+
<p>
|
204
|
+
<input type="submit" value="Input - Submit" />
|
205
|
+
|
206
|
+
<input type="button" value="Input - Button" />
|
207
|
+
|
208
|
+
<input type="reset" value="Input - Reset" />
|
209
|
+
|
210
|
+
<button>Button tag</button>
|
211
|
+
</p>
|
212
|
+
</form>
|
213
|
+
</div>
|
214
|
+
</body>
|
215
|
+
</html>
|