zurb-foundation 3.0.5 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/README.md +4 -0
  2. data/config/assets.yml +58 -0
  3. data/foundation.gemspec +1 -0
  4. data/index.html +1 -1
  5. data/lib/foundation/version.rb +1 -1
  6. data/lib/zurb-foundation.rb +4 -5
  7. data/public/assets/foundation.js +11 -0
  8. data/public/assets/jquery.js +23 -0
  9. data/stylesheets/foundation/_mixins.scss +1 -1
  10. data/stylesheets/foundation/_semantic-grid.scss +9 -5
  11. data/stylesheets/foundation/_settings.scss +6 -0
  12. data/stylesheets/foundation/buttons.scss +35 -8
  13. data/stylesheets/foundation/forms.scss +3 -3
  14. data/stylesheets/foundation/globals.scss +1 -3
  15. data/stylesheets/foundation/grid.scss +10 -7
  16. data/stylesheets/foundation/navbar.scss +1 -1
  17. data/stylesheets/foundation/reveal.scss +1 -1
  18. data/stylesheets/foundation/typography.scss +25 -11
  19. data/stylesheets/foundation/ui.scss +48 -4
  20. data/templates/project/index.html +23 -9
  21. data/templates/project/manifest.rb +32 -20
  22. data/templates/project/sass/_settings.scss +2 -0
  23. data/templates/project/sass/app.scss +1 -0
  24. data/templates/project/sass/{foundation-style → foundation}/buttons.scss +0 -0
  25. data/templates/project/sass/{foundation-style → foundation}/forms.scss +0 -0
  26. data/templates/project/sass/{foundation-style → foundation}/globals.scss +0 -0
  27. data/templates/project/sass/{foundation-style → foundation}/grid.scss +0 -0
  28. data/templates/project/sass/{foundation-style → foundation}/navbar.scss +0 -0
  29. data/templates/project/sass/{foundation-style → foundation}/orbit.scss +0 -0
  30. data/templates/project/sass/{foundation-style → foundation}/reveal.scss +0 -0
  31. data/templates/project/sass/{foundation-style → foundation}/tabs.scss +0 -0
  32. data/templates/project/sass/{foundation-style → foundation}/typography.scss +0 -0
  33. data/templates/project/sass/{foundation-style → foundation}/ui.scss +0 -0
  34. data/test.html +152 -686
  35. data/test2.html +320 -0
  36. data/vendor/assets/javascripts/foundation/app.js +19 -123
  37. data/vendor/assets/javascripts/foundation/index.js +11 -5
  38. data/vendor/assets/javascripts/foundation/jquery.foundation.accordion.js +15 -0
  39. data/vendor/assets/javascripts/foundation/jquery.foundation.alerts.js +19 -0
  40. data/vendor/assets/javascripts/foundation/jquery.foundation.buttons.js +45 -0
  41. data/vendor/assets/javascripts/foundation/jquery.foundation.forms.js +481 -0
  42. data/vendor/assets/javascripts/foundation/jquery.foundation.navigation.js +30 -0
  43. data/vendor/assets/javascripts/foundation/{jquery.orbit-1.4.0.js → jquery.foundation.orbit.js} +3 -3
  44. data/vendor/assets/javascripts/foundation/jquery.foundation.reveal.js +773 -0
  45. data/vendor/assets/javascripts/foundation/jquery.foundation.tabs.js +36 -0
  46. data/vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js +183 -0
  47. data/vendor/assets/javascripts/foundation/jquery.js +9404 -0
  48. data/vendor/assets/javascripts/foundation/jquery.placeholder.js +157 -0
  49. data/vendor/assets/javascripts/foundation/modernizr.foundation.js +3 -3
  50. metadata +45 -21
  51. data/templates/project/stylesheets/app.css +0 -0
  52. data/vendor/assets/javascripts/foundation/jquery.customforms.js +0 -258
  53. data/vendor/assets/javascripts/foundation/jquery.min.js +0 -4
  54. data/vendor/assets/javascripts/foundation/jquery.placeholder.min.js +0 -2
  55. data/vendor/assets/javascripts/foundation/jquery.reveal.js +0 -178
  56. data/vendor/assets/javascripts/foundation/jquery.tooltips.js +0 -166
@@ -0,0 +1,157 @@
1
+ /*! http://mths.be/placeholder v2.0.7 by @mathias */
2
+ ;(function(window, document, $) {
3
+
4
+ var isInputSupported = 'placeholder' in document.createElement('input'),
5
+ isTextareaSupported = 'placeholder' in document.createElement('textarea'),
6
+ prototype = $.fn,
7
+ valHooks = $.valHooks,
8
+ hooks,
9
+ placeholder;
10
+
11
+ if (isInputSupported && isTextareaSupported) {
12
+
13
+ placeholder = prototype.placeholder = function() {
14
+ return this;
15
+ };
16
+
17
+ placeholder.input = placeholder.textarea = true;
18
+
19
+ } else {
20
+
21
+ placeholder = prototype.placeholder = function() {
22
+ var $this = this;
23
+ $this
24
+ .filter((isInputSupported ? 'textarea' : ':input') + '[placeholder]')
25
+ .not('.placeholder')
26
+ .bind({
27
+ 'focus.placeholder': clearPlaceholder,
28
+ 'blur.placeholder': setPlaceholder
29
+ })
30
+ .data('placeholder-enabled', true)
31
+ .trigger('blur.placeholder');
32
+ return $this;
33
+ };
34
+
35
+ placeholder.input = isInputSupported;
36
+ placeholder.textarea = isTextareaSupported;
37
+
38
+ hooks = {
39
+ 'get': function(element) {
40
+ var $element = $(element);
41
+ return $element.data('placeholder-enabled') && $element.hasClass('placeholder') ? '' : element.value;
42
+ },
43
+ 'set': function(element, value) {
44
+ var $element = $(element);
45
+ if (!$element.data('placeholder-enabled')) {
46
+ return element.value = value;
47
+ }
48
+ if (value == '') {
49
+ element.value = value;
50
+ // Issue #56: Setting the placeholder causes problems if the element continues to have focus.
51
+ if (element != document.activeElement) {
52
+ // We can't use `triggerHandler` here because of dummy text/password inputs :(
53
+ setPlaceholder.call(element);
54
+ }
55
+ } else if ($element.hasClass('placeholder')) {
56
+ clearPlaceholder.call(element, true, value) || (element.value = value);
57
+ } else {
58
+ element.value = value;
59
+ }
60
+ // `set` can not return `undefined`; see http://jsapi.info/jquery/1.7.1/val#L2363
61
+ return $element;
62
+ }
63
+ };
64
+
65
+ isInputSupported || (valHooks.input = hooks);
66
+ isTextareaSupported || (valHooks.textarea = hooks);
67
+
68
+ $(function() {
69
+ // Look for forms
70
+ $(document).delegate('form', 'submit.placeholder', function() {
71
+ // Clear the placeholder values so they don't get submitted
72
+ var $inputs = $('.placeholder', this).each(clearPlaceholder);
73
+ setTimeout(function() {
74
+ $inputs.each(setPlaceholder);
75
+ }, 10);
76
+ });
77
+ });
78
+
79
+ // Clear placeholder values upon page reload
80
+ $(window).bind('beforeunload.placeholder', function() {
81
+ $('.placeholder').each(function() {
82
+ this.value = '';
83
+ });
84
+ });
85
+
86
+ }
87
+
88
+ function args(elem) {
89
+ // Return an object of element attributes
90
+ var newAttrs = {},
91
+ rinlinejQuery = /^jQuery\d+$/;
92
+ $.each(elem.attributes, function(i, attr) {
93
+ if (attr.specified && !rinlinejQuery.test(attr.name)) {
94
+ newAttrs[attr.name] = attr.value;
95
+ }
96
+ });
97
+ return newAttrs;
98
+ }
99
+
100
+ function clearPlaceholder(event, value) {
101
+ var input = this,
102
+ $input = $(input);
103
+ if (input.value == $input.attr('placeholder') && $input.hasClass('placeholder')) {
104
+ if ($input.data('placeholder-password')) {
105
+ $input = $input.hide().next().show().attr('id', $input.removeAttr('id').data('placeholder-id'));
106
+ // If `clearPlaceholder` was called from `$.valHooks.input.set`
107
+ if (event === true) {
108
+ return $input[0].value = value;
109
+ }
110
+ $input.focus();
111
+ } else {
112
+ input.value = '';
113
+ $input.removeClass('placeholder');
114
+ input == document.activeElement && input.select();
115
+ }
116
+ }
117
+ }
118
+
119
+ function setPlaceholder() {
120
+ var $replacement,
121
+ input = this,
122
+ $input = $(input),
123
+ $origInput = $input,
124
+ id = this.id;
125
+ if (input.value == '') {
126
+ if (input.type == 'password') {
127
+ if (!$input.data('placeholder-textinput')) {
128
+ try {
129
+ $replacement = $input.clone().attr({ 'type': 'text' });
130
+ } catch(e) {
131
+ $replacement = $('<input>').attr($.extend(args(this), { 'type': 'text' }));
132
+ }
133
+ $replacement
134
+ .removeAttr('name')
135
+ .data({
136
+ 'placeholder-password': true,
137
+ 'placeholder-id': id
138
+ })
139
+ .bind('focus.placeholder', clearPlaceholder);
140
+ $input
141
+ .data({
142
+ 'placeholder-textinput': $replacement,
143
+ 'placeholder-id': id
144
+ })
145
+ .before($replacement);
146
+ }
147
+ $input = $input.removeAttr('id').hide().prev().attr('id', id).show();
148
+ // Note: `$input[0] != input` now!
149
+ }
150
+ $input.addClass('placeholder');
151
+ $input[0].value = $input.attr('placeholder');
152
+ } else {
153
+ $input.removeClass('placeholder');
154
+ }
155
+ }
156
+
157
+ }(this, document, jQuery));
@@ -1,4 +1,4 @@
1
- /* Modernizr 2.5.3 (Custom Build) | MIT & BSD
2
- * Build: http://modernizr.com/download/#-touch-mq-cssclasses-addtest-teststyles-prefixes-ie8compat-load
1
+ /* Modernizr 2.6.0 (Custom Build) | MIT & BSD
2
+ * Build: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-cssclasses-teststyles-prefixes-ie8compat-load
3
3
  */
4
- ;window.Modernizr=function(a,b,c){function x(a){j.cssText=a}function y(a,b){return x(m.join(a+";")+(b||""))}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}var d="2.5.3",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n={},o={},p={},q=[],r=q.slice,s,t=function(a,c,d,e){var f,i,j,k=b.createElement("div"),l=b.body,m=l?l:b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),k.appendChild(j);return f=["&#173;","<style>",a,"</style>"].join(""),k.id=h,(l?k:m).innerHTML+=f,m.appendChild(k),l||(m.style.background="",g.appendChild(m)),i=c(k,a),l?k.parentNode.removeChild(k):m.parentNode.removeChild(m),!!i},u=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return t("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},v={}.hasOwnProperty,w;!z(v,"undefined")&&!z(v.call,"undefined")?w=function(a,b){return v.call(a,b)}:w=function(a,b){return b in a&&z(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=r.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(r.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(r.call(arguments)))};return e});var C=function(c,d){var f=c.join(""),g=d.length;t(f,function(c,d){var f=b.styleSheets[b.styleSheets.length-1],h=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"",i=c.childNodes,j={};while(g--)j[i[g].id]=i[g];e.touch="ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch||(j.touch&&j.touch.offsetTop)===9},g,d)}([,["@media (",m.join("touch-enabled),("),h,")","{#touch{top:9px;position:absolute}}"].join("")],[,"touch"]);n.touch=function(){return e.touch};for(var D in n)w(n,D)&&(s=D.toLowerCase(),e[s]=n[D](),q.push((e[s]?"":"no-")+s));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)w(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,g.className+=" "+(b?"":"no-")+a,e[a]=b}return e},x(""),i=k=null,e._version=d,e._prefixes=m,e.mq=u,e.testStyles=t,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+q.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return o.call(a)=="[object Function]"}function e(a){return typeof a=="string"}function f(){}function g(a){return!a||a=="loaded"||a=="complete"||a=="uninitialized"}function h(){var a=p.shift();q=1,a?a.t?m(function(){(a.t=="c"?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){a!="img"&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l={},o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};y[c]===1&&(r=1,y[c]=[],l=b.createElement(a)),a=="object"?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),a!="img"&&(r||y[c]===2?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i(b=="c"?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),p.length==1&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&o.call(a.opera)=="[object Opera]",l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return o.call(a)=="[object Array]"},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,i){var j=b(a),l=j.autoCallback;j.url.split(".").pop().split("?").shift(),j.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]||h),j.instead?j.instead(a,e,f,g,i):(y[j.url]?j.noexec=!0:y[j.url]=1,f.load(j.url,j.forceCSS||!j.forceJS&&"css"==j.url.split(".").pop().split("?").shift()?"c":c,j.noexec,j.attrs,j.timeout),(d(e)||d(l))&&f.load(function(){k(),e&&e(j.origUrl,i,g),l&&l(j.origUrl,i,g),y[j.url]=2})))}function i(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var j,l,m=this.yepnope.loader;if(e(a))g(a,0,m,0);else if(w(a))for(j=0;j<a.length;j++)l=a[j],e(l)?g(l,0,m,0):w(l)?B(l):Object(l)===l&&i(l,m);else Object(a)===a&&i(a,m)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,b.readyState==null&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},Modernizr.addTest("ie8compat",function(){return!window.addEventListener&&document.documentMode&&document.documentMode===7});
4
+ ;window.Modernizr=function(a,b,c){function x(a){j.cssText=a}function y(a,b){return x(m.join(a+";")+(b||""))}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}var d="2.6.0",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n={svg:"http://www.w3.org/2000/svg"},o={},p={},q={},r=[],s=r.slice,t,u=function(a,c,d,e){var f,i,j,k=b.createElement("div"),l=b.body,m=l?l:b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),k.appendChild(j);return f=["&#173;",'<style id="s',h,'">',a,"</style>"].join(""),k.id=h,(l?k:m).innerHTML+=f,m.appendChild(k),l||(m.style.background="",g.appendChild(m)),i=c(k,a),l?k.parentNode.removeChild(k):m.parentNode.removeChild(m),!!i},v={}.hasOwnProperty,w;!z(v,"undefined")&&!z(v.call,"undefined")?w=function(a,b){return v.call(a,b)}:w=function(a,b){return b in a&&z(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=s.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(s.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(s.call(arguments)))};return e}),o.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:u(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},o.svg=function(){return!!b.createElementNS&&!!b.createElementNS(n.svg,"svg").createSVGRect},o.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==n.svg},o.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(l.call(b.createElementNS(n.svg,"clipPath")))};for(var C in o)w(o,C)&&(t=C.toLowerCase(),e[t]=o[C](),r.push((e[t]?"":"no-")+t));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)w(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},x(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=m,e.testStyles=u,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+r.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return o.call(a)=="[object Function]"}function e(a){return typeof a=="string"}function f(){}function g(a){return!a||a=="loaded"||a=="complete"||a=="uninitialized"}function h(){var a=p.shift();q=1,a?a.t?m(function(){(a.t=="c"?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){a!="img"&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l={},o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};y[c]===1&&(r=1,y[c]=[],l=b.createElement(a)),a=="object"?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),a!="img"&&(r||y[c]===2?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i(b=="c"?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),p.length==1&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&o.call(a.opera)=="[object Opera]",l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return o.call(a)=="[object Array]"},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,i){var j=b(a),l=j.autoCallback;j.url.split(".").pop().split("?").shift(),j.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]||h),j.instead?j.instead(a,e,f,g,i):(y[j.url]?j.noexec=!0:y[j.url]=1,f.load(j.url,j.forceCSS||!j.forceJS&&"css"==j.url.split(".").pop().split("?").shift()?"c":c,j.noexec,j.attrs,j.timeout),(d(e)||d(l))&&f.load(function(){k(),e&&e(j.origUrl,i,g),l&&l(j.origUrl,i,g),y[j.url]=2})))}function i(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var j,l,m=this.yepnope.loader;if(e(a))g(a,0,m,0);else if(w(a))for(j=0;j<a.length;j++)l=a[j],e(l)?g(l,0,m,0):w(l)?B(l):Object(l)===l&&i(l,m);else Object(a)===a&&i(a,m)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,b.readyState==null&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},Modernizr.addTest("ie8compat",function(){return!window.addEventListener&&document.documentMode&&document.documentMode===7});
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zurb-foundation
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-10 00:00:00.000000000 Z
12
+ date: 2012-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: compass
@@ -75,6 +75,22 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: jammit
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
78
94
  description: ZURB Foundation on SASS/Compass
79
95
  email:
80
96
  - foundation@zurb.com
@@ -89,12 +105,15 @@ files:
89
105
  - LICENSE
90
106
  - README.md
91
107
  - Rakefile
108
+ - config/assets.yml
92
109
  - config/deploy.rb
93
110
  - foundation.gemspec
94
111
  - index.html
95
112
  - lib/foundation/engine.rb
96
113
  - lib/foundation/version.rb
97
114
  - lib/zurb-foundation.rb
115
+ - public/assets/foundation.js
116
+ - public/assets/jquery.js
98
117
  - stylesheets/_foundation.scss
99
118
  - stylesheets/foundation/_base.scss
100
119
  - stylesheets/foundation/_functions.scss
@@ -122,18 +141,18 @@ files:
122
141
  - templates/project/robots.txt
123
142
  - templates/project/sass/_settings.scss
124
143
  - templates/project/sass/app.scss
125
- - templates/project/sass/foundation-style/buttons.scss
126
- - templates/project/sass/foundation-style/forms.scss
127
- - templates/project/sass/foundation-style/globals.scss
128
- - templates/project/sass/foundation-style/grid.scss
129
- - templates/project/sass/foundation-style/navbar.scss
130
- - templates/project/sass/foundation-style/orbit.scss
131
- - templates/project/sass/foundation-style/reveal.scss
132
- - templates/project/sass/foundation-style/tabs.scss
133
- - templates/project/sass/foundation-style/typography.scss
134
- - templates/project/sass/foundation-style/ui.scss
135
- - templates/project/stylesheets/app.css
144
+ - templates/project/sass/foundation/buttons.scss
145
+ - templates/project/sass/foundation/forms.scss
146
+ - templates/project/sass/foundation/globals.scss
147
+ - templates/project/sass/foundation/grid.scss
148
+ - templates/project/sass/foundation/navbar.scss
149
+ - templates/project/sass/foundation/orbit.scss
150
+ - templates/project/sass/foundation/reveal.scss
151
+ - templates/project/sass/foundation/tabs.scss
152
+ - templates/project/sass/foundation/typography.scss
153
+ - templates/project/sass/foundation/ui.scss
136
154
  - test.html
155
+ - test2.html
137
156
  - type.html
138
157
  - vendor/assets/images/foundation/orbit/bullets.jpg
139
158
  - vendor/assets/images/foundation/orbit/left-arrow-small.png
@@ -147,13 +166,18 @@ files:
147
166
  - vendor/assets/images/foundation/orbit/timer-black.png
148
167
  - vendor/assets/javascripts/foundation/app.js
149
168
  - vendor/assets/javascripts/foundation/index.js
150
- - vendor/assets/javascripts/foundation/jquery.customforms.js
151
- - vendor/assets/javascripts/foundation/jquery.min.js
169
+ - vendor/assets/javascripts/foundation/jquery.foundation.accordion.js
170
+ - vendor/assets/javascripts/foundation/jquery.foundation.alerts.js
171
+ - vendor/assets/javascripts/foundation/jquery.foundation.buttons.js
172
+ - vendor/assets/javascripts/foundation/jquery.foundation.forms.js
173
+ - vendor/assets/javascripts/foundation/jquery.foundation.navigation.js
174
+ - vendor/assets/javascripts/foundation/jquery.foundation.orbit.js
175
+ - vendor/assets/javascripts/foundation/jquery.foundation.reveal.js
176
+ - vendor/assets/javascripts/foundation/jquery.foundation.tabs.js
177
+ - vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js
178
+ - vendor/assets/javascripts/foundation/jquery.js
152
179
  - vendor/assets/javascripts/foundation/jquery.offcanvas.js
153
- - vendor/assets/javascripts/foundation/jquery.orbit-1.4.0.js
154
- - vendor/assets/javascripts/foundation/jquery.placeholder.min.js
155
- - vendor/assets/javascripts/foundation/jquery.reveal.js
156
- - vendor/assets/javascripts/foundation/jquery.tooltips.js
180
+ - vendor/assets/javascripts/foundation/jquery.placeholder.js
157
181
  - vendor/assets/javascripts/foundation/modernizr.foundation.js
158
182
  homepage: http://foundation.zurb.com
159
183
  licenses: []
@@ -169,7 +193,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
169
193
  version: '0'
170
194
  segments:
171
195
  - 0
172
- hash: 3146797944883184160
196
+ hash: 2092228326367884049
173
197
  required_rubygems_version: !ruby/object:Gem::Requirement
174
198
  none: false
175
199
  requirements:
@@ -178,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
202
  version: '0'
179
203
  segments:
180
204
  - 0
181
- hash: 3146797944883184160
205
+ hash: 2092228326367884049
182
206
  requirements: []
183
207
  rubyforge_project:
184
208
  rubygems_version: 1.8.23
File without changes
@@ -1,258 +0,0 @@
1
- /*
2
- * jQuery Custom Forms Plugin 1.0
3
- * www.ZURB.com
4
- * Copyright 2010, ZURB
5
- * Free to use under the MIT license.
6
- * http://www.opensource.org/licenses/mit-license.php
7
- */
8
-
9
- jQuery.foundation = jQuery.foundation || {};
10
- jQuery.foundation.customForms = jQuery.foundation.customForms || {};
11
-
12
- jQuery(document).ready(function ($) {
13
-
14
- $.foundation.customForms.appendCustomMarkup = function (options) {
15
- var defaults = {
16
- disable_class: "js-disable-custom"
17
- };
18
- var options = $.extend(defaults, options);
19
-
20
- function appendCustomMarkup(idx, sel) {
21
- var $this = $(sel).hide(),
22
- type = $this.attr('type'),
23
- $span = $this.next('span.custom.' + type);
24
-
25
- if ($span.length === 0) {
26
- $span = $('<span class="custom ' + type + '"></span>').insertAfter($this);
27
- }
28
-
29
- $span.toggleClass('checked', $this.is(':checked'));
30
- $span.toggleClass('disabled', $this.is(':disabled'));
31
- }
32
-
33
- function appendCustomSelect(idx, sel) {
34
- var $this = $(sel),
35
- $customSelect = $this.next('div.custom.dropdown'),
36
- $options = $this.find('option'),
37
- $seloptions = $this.find('option:selected'),
38
- maxWidth = 0,
39
- $li;
40
-
41
- if ($this.hasClass('no-custom')) { return; }
42
- if ($customSelect.length === 0) {
43
- $customSelectSize = '';
44
- if ($(sel).hasClass('small')) {
45
- $customSelectSize = 'small';
46
- } else if ($(sel).hasClass('medium')) {
47
- $customSelectSize = 'medium';
48
- } else if ($(sel).hasClass('large')) {
49
- $customSelectSize = 'large';
50
- } else if ($(sel).hasClass('expand')) {
51
- $customSelectSize = 'expand';
52
- }
53
- $customSelect = $('<div class="custom dropdown ' + $customSelectSize + '"><a href="#" class="selector"></a><ul></ul></div>"');
54
- $options.each(function () {
55
- $li = $('<li>' + $(this).html() + '</li>');
56
- $customSelect.find('ul').append($li);
57
- });
58
- $customSelect.prepend('<a href="#" class="current">' + $seloptions.html() + '</a>');
59
-
60
- $this.after($customSelect);
61
- $this.hide();
62
-
63
- } else {
64
- // refresh the ul with options from the select in case the supplied markup doesn't match
65
- $customSelect.find('ul').html('');
66
- $options.each(function () {
67
- $li = $('<li>' + $(this).html() + '</li>');
68
- $customSelect.find('ul').append($li);
69
- });
70
- }
71
-
72
- $customSelect.toggleClass('disabled', $this.is(':disabled'));
73
-
74
- $options.each(function (index) {
75
- if (this.selected) {
76
- $customSelect.find('li').eq(index).addClass('selected');
77
- $customSelect.find('.current').html($(this).html());
78
- }
79
- });
80
-
81
- $customSelect.css('width', 'inherit');
82
- $customSelect.find('ul').css('width', 'inherit');
83
-
84
- $customSelect.find('li').each(function () {
85
- $customSelect.addClass('open');
86
- if ($(this).outerWidth() > maxWidth) {
87
- maxWidth = $(this).outerWidth();
88
- }
89
- $customSelect.removeClass('open');
90
- });
91
-
92
- if (!$customSelect.is('.small, .medium, .large, .expand')) {
93
- $customSelect.css('width', maxWidth + 18 + 'px');
94
- $customSelect.find('ul').css('width', maxWidth + 16 + 'px');
95
- }
96
-
97
- }
98
-
99
- $('form.custom input:radio[data-customforms!=disabled]').each(appendCustomMarkup);
100
- $('form.custom input:checkbox[data-customforms!=disabled]').each(appendCustomMarkup);
101
- $('form.custom select[data-customforms!=disabled]').each(appendCustomSelect);
102
- };
103
-
104
- });
105
-
106
- (function ($) {
107
-
108
- function refreshCustomSelect($select) {
109
- var maxWidth = 0,
110
- $customSelect = $select.next();
111
- $options = $select.find('option');
112
- $customSelect.find('ul').html('');
113
-
114
- $options.each(function () {
115
- $li = $('<li>' + $(this).html() + '</li>');
116
- $customSelect.find('ul').append($li);
117
- });
118
-
119
- // re-populate
120
- $options.each(function (index) {
121
- if (this.selected) {
122
- $customSelect.find('li').eq(index).addClass('selected');
123
- $customSelect.find('.current').html($(this).html());
124
- }
125
- });
126
-
127
- // fix width
128
- $customSelect.removeAttr('style')
129
- .find('ul').removeAttr('style');
130
- $customSelect.find('li').each(function () {
131
- $customSelect.addClass('open');
132
- if ($(this).outerWidth() > maxWidth) {
133
- maxWidth = $(this).outerWidth();
134
- }
135
- $customSelect.removeClass('open');
136
- });
137
- $customSelect.css('width', maxWidth + 18 + 'px');
138
- $customSelect.find('ul').css('width', maxWidth + 16 + 'px');
139
-
140
- }
141
-
142
- function toggleCheckbox($element) {
143
- var $input = $element.prev(),
144
- input = $input[0];
145
-
146
- if (false == $input.is(':disabled')) {
147
- input.checked = ((input.checked) ? false : true);
148
- $element.toggleClass('checked');
149
-
150
- $input.trigger('change');
151
- }
152
- }
153
-
154
- function toggleRadio($element) {
155
- var $input = $element.prev(),
156
- input = $input[0];
157
-
158
- if (false == $input.is(':disabled')) {
159
- $('input:radio[name="' + $input.attr('name') + '"]').each(function () {
160
- $(this).next().removeClass('checked');
161
- });
162
- input.checked = ((input.checked) ? false : true);
163
- $element.toggleClass('checked');
164
-
165
- $input.trigger('change');
166
- }
167
- }
168
-
169
- $('form.custom span.custom.checkbox').live('click', function (event) {
170
- event.preventDefault();
171
- event.stopPropagation();
172
-
173
- toggleCheckbox($(this));
174
- });
175
-
176
- $('form.custom span.custom.radio').live('click', function (event) {
177
- event.preventDefault();
178
- event.stopPropagation();
179
-
180
- toggleRadio($(this));
181
- });
182
-
183
- $('form.custom select').live('change', function (event) {
184
- refreshCustomSelect($(this));
185
- });
186
-
187
- $('form.custom label').live('click', function (event) {
188
- var $associatedElement = $('#' + $(this).attr('for')),
189
- $customCheckbox,
190
- $customRadio;
191
- if ($associatedElement.length !== 0) {
192
- if ($associatedElement.attr('type') === 'checkbox') {
193
- event.preventDefault();
194
- $customCheckbox = $(this).find('span.custom.checkbox');
195
- toggleCheckbox($customCheckbox);
196
- } else if ($associatedElement.attr('type') === 'radio') {
197
- event.preventDefault();
198
- $customRadio = $(this).find('span.custom.radio');
199
- toggleRadio($customRadio);
200
- }
201
- }
202
- });
203
-
204
- $('form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector').live('click', function (event) {
205
- var $this = $(this),
206
- $dropdown = $this.closest('div.custom.dropdown'),
207
- $select = $dropdown.prev();
208
-
209
- event.preventDefault();
210
- $('div.dropdown').removeClass('open');
211
-
212
- if (false == $select.is(':disabled')) {
213
- $dropdown.toggleClass('open');
214
-
215
- if ($dropdown.hasClass('open')) {
216
- $(document).bind('click.customdropdown', function (event) {
217
- $dropdown.removeClass('open');
218
- $(document).unbind('.customdropdown');
219
- });
220
- } else {
221
- $(document).unbind('.customdropdown');
222
- }
223
- return false;
224
- }
225
- });
226
-
227
- $('form.custom div.custom.dropdown li').live('click', function (event) {
228
- var $this = $(this),
229
- $customDropdown = $this.closest('div.custom.dropdown'),
230
- $select = $customDropdown.prev(),
231
- selectedIndex = 0;
232
-
233
- event.preventDefault();
234
- event.stopPropagation();
235
- $('div.dropdown').removeClass('open');
236
-
237
- $this
238
- .closest('ul')
239
- .find('li')
240
- .removeClass('selected');
241
- $this.addClass('selected');
242
-
243
- $customDropdown
244
- .removeClass('open')
245
- .find('a.current')
246
- .html($this.html());
247
-
248
- $this.closest('ul').find('li').each(function (index) {
249
- if ($this[0] == this) {
250
- selectedIndex = index;
251
- }
252
-
253
- });
254
- $select[0].selectedIndex = selectedIndex;
255
-
256
- $select.trigger('change');
257
- });
258
- })(jQuery);