zurb-foundation 2.2.1.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. data/.gitignore +17 -2
  2. data/Capfile +5 -0
  3. data/Gemfile +1 -1
  4. data/LICENSE +22 -0
  5. data/README.md +87 -0
  6. data/Rakefile +1 -0
  7. data/config/deploy.rb +42 -0
  8. data/foundation.gemspec +17 -21
  9. data/index.html +138 -0
  10. data/lib/foundation/engine.rb +2 -2
  11. data/lib/foundation/sass_script_functions.rb +29 -0
  12. data/lib/foundation/version.rb +1 -2
  13. data/lib/zurb-foundation.rb +6 -3
  14. data/stylesheets/_foundation.scss +14 -0
  15. data/stylesheets/foundation/_base.scss +6 -0
  16. data/stylesheets/foundation/_mixins.scss +46 -0
  17. data/stylesheets/foundation/_modular-scale.sass +332 -0
  18. data/stylesheets/foundation/_semantic-grid.scss +67 -0
  19. data/stylesheets/foundation/_settings.scss +71 -0
  20. data/stylesheets/foundation/app.scss +26 -0
  21. data/stylesheets/foundation/buttons.scss +175 -0
  22. data/stylesheets/foundation/forms.scss +130 -0
  23. data/stylesheets/foundation/globals.scss +34 -0
  24. data/stylesheets/foundation/grid.scss +132 -0
  25. data/stylesheets/foundation/ie.scss +16 -0
  26. data/stylesheets/foundation/mobile.scss +32 -0
  27. data/stylesheets/foundation/navbar.scss +107 -0
  28. data/stylesheets/foundation/offcanvas.scss +57 -0
  29. data/{vendor/assets/stylesheets/foundation/orbit.css.scss → stylesheets/foundation/orbit.scss} +68 -68
  30. data/stylesheets/foundation/reveal.scss +54 -0
  31. data/stylesheets/foundation/tabs.scss +89 -0
  32. data/stylesheets/foundation/typography.scss +83 -0
  33. data/stylesheets/foundation/ui.scss +352 -0
  34. data/templates/project/.gitignore +44 -0
  35. data/templates/project/MIT-LICENSE.txt +20 -0
  36. data/templates/project/humans.txt +8 -0
  37. data/templates/project/index.html +133 -0
  38. data/templates/project/manifest.rb +51 -0
  39. data/templates/project/robots.txt +4 -0
  40. data/templates/project/sass/_settings.scss +48 -0
  41. data/templates/project/sass/app.scss +20 -0
  42. data/templates/project/sass/ie.scss +4 -0
  43. data/templates/project/stylesheets/app.css +0 -0
  44. data/templates/project/stylesheets/ie.css +0 -0
  45. data/test.html +758 -0
  46. data/type.html +153 -0
  47. data/vendor/assets/images/foundation/orbit/left-arrow-small.png +0 -0
  48. data/vendor/assets/images/foundation/orbit/right-arrow-small.png +0 -0
  49. data/vendor/assets/images/foundation/orbit/right-arrow.png +0 -0
  50. data/vendor/assets/javascripts/foundation/app.js +92 -71
  51. data/vendor/assets/javascripts/foundation/index.js +8 -7
  52. data/vendor/assets/javascripts/foundation/jquery.customforms.js +74 -73
  53. data/vendor/assets/javascripts/foundation/jquery.min.js +4 -0
  54. data/vendor/assets/javascripts/foundation/jquery.offcanvas.js +50 -0
  55. data/vendor/assets/javascripts/foundation/jquery.orbit-1.4.0.js +103 -101
  56. data/vendor/assets/javascripts/foundation/jquery.placeholder.min.js +0 -1
  57. data/vendor/assets/javascripts/foundation/jquery.reveal.js +39 -15
  58. data/vendor/assets/javascripts/foundation/jquery.tooltips.js +96 -90
  59. data/vendor/assets/javascripts/foundation/modernizr.foundation.js +3 -4
  60. metadata +101 -46
  61. data/README.markdown +0 -163
  62. data/build.rb +0 -49
  63. data/lib/foundation/generators/USAGE +0 -15
  64. data/lib/foundation/generators/install_generator.rb +0 -27
  65. data/lib/foundation/generators/layout_generator.rb +0 -28
  66. data/lib/foundation/generators/templates/application.css +0 -5
  67. data/lib/foundation/generators/templates/application.html.erb +0 -31
  68. data/lib/foundation/generators/templates/application.html.haml +0 -30
  69. data/lib/foundation/generators/templates/application.html.slim +0 -30
  70. data/lib/foundation/generators/templates/application.js +0 -4
  71. data/vendor/assets/images/foundation/misc/button-gloss.png +0 -0
  72. data/vendor/assets/images/foundation/misc/button-overlay.png +0 -0
  73. data/vendor/assets/images/foundation/misc/custom-form-sprites.png +0 -0
  74. data/vendor/assets/images/foundation/misc/input-bg-outset.png +0 -0
  75. data/vendor/assets/images/foundation/misc/input-bg.png +0 -0
  76. data/vendor/assets/images/foundation/misc/modal-gloss.png +0 -0
  77. data/vendor/assets/images/foundation/misc/table-sorter.png +0 -0
  78. data/vendor/assets/stylesheets/foundation/forms.css.scss +0 -134
  79. data/vendor/assets/stylesheets/foundation/globals.css.scss +0 -139
  80. data/vendor/assets/stylesheets/foundation/grid.css.scss +0 -129
  81. data/vendor/assets/stylesheets/foundation/ie.css.scss +0 -13
  82. data/vendor/assets/stylesheets/foundation/index.css +0 -10
  83. data/vendor/assets/stylesheets/foundation/mobile.css.scss +0 -222
  84. data/vendor/assets/stylesheets/foundation/reveal.css.scss +0 -100
  85. data/vendor/assets/stylesheets/foundation/typography.css.scss +0 -63
  86. data/vendor/assets/stylesheets/foundation/ui.css.scss +0 -418
@@ -1,5 +1,5 @@
1
1
  /*
2
- * jQuery Foundation Tooltip Plugin 1.0.1
2
+ * jQuery Foundation Tooltip Plugin 2.0.1
3
3
  * http://foundation.zurb.com
4
4
  * Copyright 2012, ZURB
5
5
  * Free to use under the MIT license.
@@ -7,101 +7,87 @@
7
7
  */
8
8
 
9
9
  ;(function($) {
10
- var attributes = {
10
+ 'use strict';
11
+ var settings = {
11
12
  bodyHeight : 0,
12
- pollInterval : 1000
13
+ targetClass : '.has-tip',
14
+ tooltipClass : '.tooltip',
15
+ tipTemplate : function (selector, content) {
16
+ return '<span data-selector="' + selector + '" class="' + settings.tooltipClass.substring(1) + '">' + content + '<span class="nub"></span></span>';
17
+ }
13
18
  },
14
19
  methods = {
15
- init : function(options) {
16
-
17
- return this.each(function() {
18
- var targets, tips, tipTemplate, poll;
19
-
20
- $(window).data('tooltips', 'init');
21
-
22
- targets = $('.has-tip');
23
- tips = $('.tooltip');
24
- tipTemplate = function(target, content) {
25
- return '<span data-id="' + target + '" class="tooltip">' + content + '<span class="nub"></span></span>';
26
- };
27
- poll = setInterval(methods.isDomResized, attributes.pollInterval);
28
- if (tips.length < 1) {
29
- targets.each(function(i){
30
- var target, tip, id, content, classes;
31
-
32
- target = $(this);
33
- id = 'foundationTooltip' + i;
34
- content = target.attr('title');
35
- classes = target.attr('class');
36
- target.data('id', id);
37
- tip = $(tipTemplate(id, content));
38
- tip.addClass(classes).removeClass('has-tip').appendTo('body');
39
- if (Modernizr.touch) tip.append('<span class="tap-to-close">tap to close </span>');
40
- methods.reposition(target, tip, classes);
41
- tip.fadeOut(150);
42
- });
43
- }
44
- $(window).on('resize.tooltip', function() {
45
- var tips = $('.tooltip');
46
- tips.each(function() {
47
- var data, target, tip, classes;
48
-
49
- data = $(this).data();
50
- target = targets = $('.has-tip');
51
- tip = $(this);
52
- classes = tip.attr('class');
53
- targets.each(function() {
54
- ($(this).data().id == data.id) ? target = $(this) : target = target;
55
- });
56
- methods.reposition(target, tip, classes);
57
- });
58
-
59
- });
20
+ init : function (options) {
21
+ return this.each(function () {
22
+ var $body = $('body'),
23
+ self = this;
60
24
 
61
25
  if (Modernizr.touch) {
62
- $('.tooltip').on('click.tooltip touchstart.tooltip touchend.tooltip', function(e) {
26
+ $body.on('click.tooltip touchstart.tooltip touchend.tooltip', settings.targetClass, function (e) {
63
27
  e.preventDefault();
64
- $(this).fadeOut(150);
28
+ var $this = $(this);
29
+ $(settings.tooltipClass).hide();
30
+ methods.showOrCreateTip($this);
65
31
  });
66
- targets.on('click.tooltip touchstart.tooltip touchend.tooltip', function(e){
32
+ $(settings.tooltipClass).on('click.tooltip touchstart.tooltip touchend.tooltip', function (e) {
67
33
  e.preventDefault();
68
- $('.tooltip').hide();
69
- $('span[data-id=' + $(this).data('id') + '].tooltip').fadeIn(150);
70
- targets.attr('title', "");
34
+ $(this).fadeOut(150);
71
35
  });
72
36
  } else {
73
- targets.hover(function() {
74
- $('span[data-id=' + $(this).data('id') + '].tooltip').fadeIn(150);
75
- targets.attr('title', "");
76
- }, function() {
77
- $('span[data-id=' + $(this).data('id') + '].tooltip').fadeOut(150);
37
+ $body.on('mouseover.tooltip mouseout.tooltip', settings.targetClass, function (e) {
38
+ var $this = $(this);
39
+ if (e.type === 'mouseover') {
40
+ methods.showOrCreateTip($this);
41
+ } else if (e.type === 'mouseout') {
42
+ methods.hide($this);
43
+ }
78
44
  });
79
45
  }
80
46
 
81
47
  });
82
48
  },
83
- reload : function() {
84
- var $self = $(this);
85
- return ($self.data('tooltips')) ? $self.tooltips('destroy').tooltips('init') : $self.tooltips('init');
49
+ showOrCreateTip : function ($target) {
50
+ var $tip = methods.getTip($target);
51
+ if ($tip && $tip.length > 0) {
52
+ methods.show($target);
53
+ } else {
54
+ methods.create($target);
55
+ }
56
+ },
57
+ getTip : function ($target) {
58
+ var selector = methods.selector($target),
59
+ tip = null;
60
+ if (selector) tip = $('span[data-selector=' + selector + ']' + settings.tooltipClass);
61
+ return (tip) ? tip : false;
86
62
  },
87
- destroy : function() {
88
- return this.each(function(){
89
- $(window).unbind('.tooltip');
90
- $('.has-tip').unbind('.tooltip');
91
- $('.tooltip').each(function(i){
92
- $($('.has-tip').get(i)).attr('title', $(this).text());
93
- }).remove();
94
- });
63
+ selector : function ($target) {
64
+ var id = $target.attr('id'),
65
+ dataSelector = $target.data('selector');
66
+ if (id === undefined && dataSelector === undefined) {
67
+ dataSelector = 'tooltip' + Math.random().toString(36).substring(7);
68
+ $target.attr('data-selector', dataSelector);
69
+ }
70
+ return (id) ? id : dataSelector;
71
+ },
72
+ create : function ($target) {
73
+ var $tip = $(settings.tipTemplate(methods.selector($target), $target.attr('title'))),
74
+ classes = methods.inheritable_classes($target);
75
+ $tip.addClass(classes).appendTo('body');
76
+ if (Modernizr.touch) $tip.append('<span class="tap-to-close">tap to close </span>');
77
+ $target.removeAttr('title');
78
+ methods.show($target);
95
79
  },
96
- reposition : function(target, tip, classes) {
80
+ reposition : function (target, tip, classes) {
97
81
  var width, nub, nubHeight, nubWidth, row, objPos;
98
82
 
83
+ tip.css('visibility', 'hidden').show();
84
+
99
85
  width = target.data('width');
100
86
  nub = tip.children('.nub');
101
87
  nubHeight = nub.outerHeight();
102
88
  nubWidth = nub.outerWidth();
103
89
 
104
- objPos = function(obj, top, right, bottom, left, width) {
90
+ objPos = function (obj, top, right, bottom, left, width) {
105
91
  return obj.css({
106
92
  'top' : top,
107
93
  'bottom' : bottom,
@@ -111,7 +97,6 @@
111
97
  }).end();
112
98
  };
113
99
 
114
-
115
100
  objPos(tip, (target.offset().top + target.outerHeight() + 10), 'auto', 'auto', target.offset().left, width);
116
101
  objPos(nub, -nubHeight, 'auto', 'auto', 10);
117
102
 
@@ -134,27 +119,48 @@
134
119
  objPos(nub, (tip.outerHeight() / 2) - (nubHeight / 2), 'auto', 'auto', -nubHeight);
135
120
  }
136
121
  }
122
+ tip.css('visibility', 'visible').hide();
137
123
  },
138
- isDomResized : function() {
139
- $body = $('body');
140
- if(attributes.bodyHeight != $body.height()) {
141
- attributes.bodyHeight = $body.height();
142
- $(window).trigger('resize');
143
- }
124
+ inheritable_classes : function (target) {
125
+ var inheritables = ['tip-top', 'tip-left', 'tip-bottom', 'tip-right', 'noradius'],
126
+ filtered = target.attr('class').split(' ').map(function (el, i) {
127
+ if ($.inArray(el, inheritables) !== -1) {
128
+ return el;
129
+ }
130
+ }).join(' ');
131
+ return $.trim(filtered);
132
+ },
133
+ show : function ($target) {
134
+ var $tip = methods.getTip($target);
135
+ methods.reposition($target, $tip, $target.attr('class'));
136
+ $tip.fadeIn(150);
137
+ },
138
+ hide : function ($target) {
139
+ var $tip = methods.getTip($target);
140
+ $tip.fadeOut(150);
141
+ },
142
+ reload : function () {
143
+ var $self = $(this);
144
+ return ($self.data('tooltips')) ? $self.tooltips('destroy').tooltips('init') : $self.tooltips('init');
145
+ },
146
+ destroy : function () {
147
+ return this.each(function () {
148
+ $(window).off('.tooltip');
149
+ $(settings.targetClass).off('.tooltip');
150
+ $(settings.tooltipClass).each(function(i) {
151
+ $($(settings.targetClass).get(i)).attr('title', $(this).text());
152
+ }).remove();
153
+ });
144
154
  }
145
155
  };
146
156
 
147
- $.fn.tooltips = function( method ) {
148
-
149
- if ( methods[method] ) {
150
- return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
151
- } else if ( typeof method === 'object' || ! method ) {
152
- return methods.init.apply( this, arguments );
157
+ $.fn.tooltips = function (method) {
158
+ if (methods[method]) {
159
+ return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
160
+ } else if (typeof method === 'object' || ! method) {
161
+ return methods.init.apply(this, arguments);
153
162
  } else {
154
- $.error( 'Method ' + method + ' does not exist on jQuery.tooltips' );
163
+ $.error('Method ' + method + ' does not exist on jQuery.tooltips');
155
164
  }
156
-
157
165
  };
158
- })(jQuery);
159
-
160
-
166
+ })(jQuery);
@@ -1,5 +1,4 @@
1
- /* Modernizr 2.5.2 (Custom Build) | MIT & BSD
2
- * Build: http://www.modernizr.com/download/#-touch-mq-cssclasses-addtest-teststyles-prefixes-ie8compat-load
1
+ /* Modernizr 2.5.3 (Custom Build) | MIT & BSD
2
+ * Build: http://modernizr.com/download/#-touch-mq-cssclasses-addtest-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.2",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,m.innerHTML+=f,m.appendChild(k),l||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=!!b.attachEvent,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});
5
-
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});
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: 2.2.1.2
4
+ version: 3.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,35 +9,73 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-19 00:00:00.000000000Z
12
+ date: 2012-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: railties
16
- requirement: &70219855347800 !ruby/object:Gem::Requirement
15
+ name: compass
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 3.1.0
22
- - - <
21
+ version: 0.12.2
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.12.2
30
+ - !ruby/object:Gem::Dependency
31
+ name: sass
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
23
36
  - !ruby/object:Gem::Version
24
- version: '4.0'
37
+ version: 3.2.0.alpha.244
25
38
  type: :runtime
26
39
  prerelease: false
27
- version_requirements: *70219855347800
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 3.2.0.alpha.244
28
46
  - !ruby/object:Gem::Dependency
29
- name: jquery-rails
30
- requirement: &70219855339800 !ruby/object:Gem::Requirement
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
31
49
  none: false
32
50
  requirements:
33
51
  - - ! '>='
34
52
  - !ruby/object:Gem::Version
35
- version: '1.0'
53
+ version: '0'
36
54
  type: :runtime
37
55
  prerelease: false
38
- version_requirements: *70219855339800
39
- description: An easy to use, powerful, and flexible framework for building prototypes
40
- and production code on any kind of device.
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: capistrano
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ description: ZURB Foundation on SASS/Compass
41
79
  email:
42
80
  - foundation@zurb.com
43
81
  executables: []
@@ -45,55 +83,72 @@ extensions: []
45
83
  extra_rdoc_files: []
46
84
  files:
47
85
  - .gitignore
86
+ - Capfile
48
87
  - Gemfile
49
- - README.markdown
88
+ - Gemfile.lock
89
+ - LICENSE
90
+ - README.md
50
91
  - Rakefile
51
- - build.rb
92
+ - config/deploy.rb
52
93
  - foundation.gemspec
94
+ - index.html
53
95
  - lib/foundation/engine.rb
54
- - lib/foundation/generators/USAGE
55
- - lib/foundation/generators/install_generator.rb
56
- - lib/foundation/generators/layout_generator.rb
57
- - lib/foundation/generators/templates/application.css
58
- - lib/foundation/generators/templates/application.html.erb
59
- - lib/foundation/generators/templates/application.html.haml
60
- - lib/foundation/generators/templates/application.html.slim
61
- - lib/foundation/generators/templates/application.js
96
+ - lib/foundation/sass_script_functions.rb
62
97
  - lib/foundation/version.rb
63
98
  - lib/zurb-foundation.rb
64
- - vendor/assets/images/foundation/misc/button-gloss.png
65
- - vendor/assets/images/foundation/misc/button-overlay.png
66
- - vendor/assets/images/foundation/misc/custom-form-sprites.png
67
- - vendor/assets/images/foundation/misc/input-bg-outset.png
68
- - vendor/assets/images/foundation/misc/input-bg.png
69
- - vendor/assets/images/foundation/misc/modal-gloss.png
70
- - vendor/assets/images/foundation/misc/table-sorter.png
99
+ - stylesheets/_foundation.scss
100
+ - stylesheets/foundation/_base.scss
101
+ - stylesheets/foundation/_mixins.scss
102
+ - stylesheets/foundation/_modular-scale.sass
103
+ - stylesheets/foundation/_semantic-grid.scss
104
+ - stylesheets/foundation/_settings.scss
105
+ - stylesheets/foundation/app.scss
106
+ - stylesheets/foundation/buttons.scss
107
+ - stylesheets/foundation/forms.scss
108
+ - stylesheets/foundation/globals.scss
109
+ - stylesheets/foundation/grid.scss
110
+ - stylesheets/foundation/ie.scss
111
+ - stylesheets/foundation/mobile.scss
112
+ - stylesheets/foundation/navbar.scss
113
+ - stylesheets/foundation/offcanvas.scss
114
+ - stylesheets/foundation/orbit.scss
115
+ - stylesheets/foundation/reveal.scss
116
+ - stylesheets/foundation/tabs.scss
117
+ - stylesheets/foundation/typography.scss
118
+ - stylesheets/foundation/ui.scss
119
+ - templates/project/.gitignore
120
+ - templates/project/MIT-LICENSE.txt
121
+ - templates/project/humans.txt
122
+ - templates/project/index.html
123
+ - templates/project/manifest.rb
124
+ - templates/project/robots.txt
125
+ - templates/project/sass/_settings.scss
126
+ - templates/project/sass/app.scss
127
+ - templates/project/sass/ie.scss
128
+ - templates/project/stylesheets/app.css
129
+ - templates/project/stylesheets/ie.css
130
+ - test.html
131
+ - type.html
71
132
  - vendor/assets/images/foundation/orbit/bullets.jpg
133
+ - vendor/assets/images/foundation/orbit/left-arrow-small.png
72
134
  - vendor/assets/images/foundation/orbit/left-arrow.png
73
135
  - vendor/assets/images/foundation/orbit/loading.gif
74
136
  - vendor/assets/images/foundation/orbit/mask-black.png
75
137
  - vendor/assets/images/foundation/orbit/pause-black.png
138
+ - vendor/assets/images/foundation/orbit/right-arrow-small.png
76
139
  - vendor/assets/images/foundation/orbit/right-arrow.png
77
140
  - vendor/assets/images/foundation/orbit/rotator-black.png
78
141
  - vendor/assets/images/foundation/orbit/timer-black.png
79
142
  - vendor/assets/javascripts/foundation/app.js
80
143
  - vendor/assets/javascripts/foundation/index.js
81
144
  - vendor/assets/javascripts/foundation/jquery.customforms.js
145
+ - vendor/assets/javascripts/foundation/jquery.min.js
146
+ - vendor/assets/javascripts/foundation/jquery.offcanvas.js
82
147
  - vendor/assets/javascripts/foundation/jquery.orbit-1.4.0.js
83
148
  - vendor/assets/javascripts/foundation/jquery.placeholder.min.js
84
149
  - vendor/assets/javascripts/foundation/jquery.reveal.js
85
150
  - vendor/assets/javascripts/foundation/jquery.tooltips.js
86
151
  - vendor/assets/javascripts/foundation/modernizr.foundation.js
87
- - vendor/assets/stylesheets/foundation/forms.css.scss
88
- - vendor/assets/stylesheets/foundation/globals.css.scss
89
- - vendor/assets/stylesheets/foundation/grid.css.scss
90
- - vendor/assets/stylesheets/foundation/ie.css.scss
91
- - vendor/assets/stylesheets/foundation/index.css
92
- - vendor/assets/stylesheets/foundation/mobile.css.scss
93
- - vendor/assets/stylesheets/foundation/orbit.css.scss
94
- - vendor/assets/stylesheets/foundation/reveal.css.scss
95
- - vendor/assets/stylesheets/foundation/typography.css.scss
96
- - vendor/assets/stylesheets/foundation/ui.css.scss
97
152
  homepage: http://foundation.zurb.com
98
153
  licenses: []
99
154
  post_install_message:
@@ -108,7 +163,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
163
  version: '0'
109
164
  segments:
110
165
  - 0
111
- hash: 1610463681209950274
166
+ hash: 1822227411815873171
112
167
  required_rubygems_version: !ruby/object:Gem::Requirement
113
168
  none: false
114
169
  requirements:
@@ -117,11 +172,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
172
  version: '0'
118
173
  segments:
119
174
  - 0
120
- hash: 1610463681209950274
175
+ hash: 1822227411815873171
121
176
  requirements: []
122
- rubyforge_project: foundation
123
- rubygems_version: 1.8.10
177
+ rubyforge_project:
178
+ rubygems_version: 1.8.23
124
179
  signing_key:
125
180
  specification_version: 3
126
- summary: Get up and running with Foundation in seconds
181
+ summary: ZURB Foundation on SASS/Compass
127
182
  test_files: []