compass_formalize 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +5 -4
- data/README.md +31 -0
- data/compass_formalize.gemspec +2 -2
- data/stylesheets/_formalize.sass +226 -170
- data/templates/{dojo → common}/button.png +0 -0
- data/templates/{dojo → common}/select_arrow.gif +0 -0
- data/templates/dojo/dojo.formalize.js +46 -19
- data/templates/dojo/dojo.formalize.min.js +1 -1
- data/templates/dojo/manifest.rb +5 -0
- data/templates/extjs/extjs.formalize.js +48 -25
- data/templates/extjs/extjs.formalize.min.js +1 -1
- data/templates/jquery-legacy/jquery.formalize.legacy.js +187 -0
- data/templates/jquery-legacy/jquery.formalize.legacy.min.js +1 -0
- data/templates/jquery-legacy/manifest.rb +42 -0
- data/templates/jquery/jquery.formalize.js +42 -20
- data/templates/jquery/jquery.formalize.min.js +1 -1
- data/templates/jquery/manifest.rb +6 -1
- data/templates/mootools/manifest.rb +5 -0
- data/templates/mootools/mootools.formalize.js +49 -20
- data/templates/mootools/mootools.formalize.min.js +1 -1
- data/templates/prototype/manifest.rb +5 -0
- data/templates/prototype/prototype.formalize.js +43 -23
- data/templates/prototype/prototype.formalize.min.js +1 -1
- data/templates/yui/manifest.rb +5 -0
- data/templates/yui/yui.formalize.js +57 -43
- data/templates/yui/yui.formalize.min.js +1 -1
- metadata +11 -40
- data/templates/extjs/button.png +0 -0
- data/templates/extjs/select_arrow.gif +0 -0
- data/templates/jquery/button.png +0 -0
- data/templates/jquery/select_arrow.gif +0 -0
- data/templates/mootools/button.png +0 -0
- data/templates/mootools/select_arrow.gif +0 -0
- data/templates/prototype/button.png +0 -0
- data/templates/prototype/select_arrow.gif +0 -0
- data/templates/yui/button.png +0 -0
- data/templates/yui/select_arrow.gif +0 -0
@@ -1 +1 @@
|
|
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"]})
|
metadata
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass_formalize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 4
|
10
|
-
version: 0.0.4
|
4
|
+
version: 0.0.5
|
11
5
|
platform: ruby
|
12
6
|
authors:
|
13
7
|
- Wynn Netherland
|
@@ -16,22 +10,15 @@ autorequire:
|
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
12
|
|
19
|
-
date:
|
20
|
-
default_executable:
|
13
|
+
date: 2013-10-09 00:00:00 Z
|
21
14
|
dependencies:
|
22
15
|
- !ruby/object:Gem::Dependency
|
23
16
|
name: compass
|
24
17
|
prerelease: false
|
25
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
19
|
requirements:
|
28
20
|
- - ">="
|
29
21
|
- !ruby/object:Gem::Version
|
30
|
-
hash: 55
|
31
|
-
segments:
|
32
|
-
- 0
|
33
|
-
- 10
|
34
|
-
- 0
|
35
22
|
version: 0.10.0
|
36
23
|
type: :runtime
|
37
24
|
version_requirements: *id001
|
@@ -53,72 +40,56 @@ files:
|
|
53
40
|
- compass_formalize.gemspec
|
54
41
|
- lib/compass_formalize.rb
|
55
42
|
- stylesheets/_formalize.sass
|
56
|
-
- templates/
|
43
|
+
- templates/common/button.png
|
44
|
+
- templates/common/select_arrow.gif
|
57
45
|
- templates/dojo/dojo.formalize.js
|
58
46
|
- templates/dojo/dojo.formalize.min.js
|
59
47
|
- templates/dojo/manifest.rb
|
60
|
-
- templates/dojo/select_arrow.gif
|
61
|
-
- templates/extjs/button.png
|
62
48
|
- templates/extjs/extjs.formalize.js
|
63
49
|
- templates/extjs/extjs.formalize.min.js
|
64
50
|
- templates/extjs/manifest.rb
|
65
|
-
- templates/
|
66
|
-
- templates/jquery/
|
51
|
+
- templates/jquery-legacy/jquery.formalize.legacy.js
|
52
|
+
- templates/jquery-legacy/jquery.formalize.legacy.min.js
|
53
|
+
- templates/jquery-legacy/manifest.rb
|
67
54
|
- templates/jquery/jquery.formalize.js
|
68
55
|
- templates/jquery/jquery.formalize.min.js
|
69
56
|
- templates/jquery/manifest.rb
|
70
|
-
- templates/jquery/select_arrow.gif
|
71
|
-
- templates/mootools/button.png
|
72
57
|
- templates/mootools/manifest.rb
|
73
58
|
- templates/mootools/mootools.formalize.js
|
74
59
|
- templates/mootools/mootools.formalize.min.js
|
75
|
-
- templates/mootools/select_arrow.gif
|
76
60
|
- templates/project/manifest.rb
|
77
|
-
- templates/prototype/button.png
|
78
61
|
- templates/prototype/manifest.rb
|
79
62
|
- templates/prototype/prototype.formalize.js
|
80
63
|
- templates/prototype/prototype.formalize.min.js
|
81
|
-
- templates/prototype/select_arrow.gif
|
82
|
-
- templates/yui/button.png
|
83
64
|
- templates/yui/manifest.rb
|
84
|
-
- templates/yui/select_arrow.gif
|
85
65
|
- templates/yui/yui.formalize.js
|
86
66
|
- templates/yui/yui.formalize.min.js
|
87
|
-
has_rdoc: true
|
88
67
|
homepage: http://github.com/pengwynn/compass_formalize
|
89
68
|
licenses: []
|
90
69
|
|
70
|
+
metadata: {}
|
71
|
+
|
91
72
|
post_install_message:
|
92
73
|
rdoc_options: []
|
93
74
|
|
94
75
|
require_paths:
|
95
76
|
- lib
|
96
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
78
|
requirements:
|
99
79
|
- - ">="
|
100
80
|
- !ruby/object:Gem::Version
|
101
|
-
hash: 3
|
102
|
-
segments:
|
103
|
-
- 0
|
104
81
|
version: "0"
|
105
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
83
|
requirements:
|
108
84
|
- - ">="
|
109
85
|
- !ruby/object:Gem::Version
|
110
|
-
hash: 17
|
111
|
-
segments:
|
112
|
-
- 1
|
113
|
-
- 3
|
114
|
-
- 5
|
115
86
|
version: 1.3.5
|
116
87
|
requirements: []
|
117
88
|
|
118
89
|
rubyforge_project: compass-960-plugin
|
119
|
-
rubygems_version: 1.
|
90
|
+
rubygems_version: 2.1.5
|
120
91
|
signing_key:
|
121
|
-
specification_version:
|
92
|
+
specification_version: 4
|
122
93
|
summary: Compass compatible Sass port of Formalize.
|
123
94
|
test_files: []
|
124
95
|
|
data/templates/extjs/button.png
DELETED
Binary file
|
Binary file
|
data/templates/jquery/button.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/templates/yui/button.png
DELETED
Binary file
|
Binary file
|