ZURB-foundation 2.1.3b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/README.mkdn +65 -0
  2. data/lib/ZURB-foundation.rb +9 -0
  3. data/stylesheets/ZURB/_forms.sass +192 -0
  4. data/stylesheets/ZURB/_foundation.sass +9 -0
  5. data/stylesheets/ZURB/_globals.sass +132 -0
  6. data/stylesheets/ZURB/_grid.sass +186 -0
  7. data/stylesheets/ZURB/_includes.sass +3 -0
  8. data/stylesheets/ZURB/_mobile.sass +292 -0
  9. data/stylesheets/ZURB/_orbit.sass +156 -0
  10. data/stylesheets/ZURB/_reveal.sass +88 -0
  11. data/stylesheets/ZURB/_typography.sass +129 -0
  12. data/stylesheets/ZURB/_ui.sass +447 -0
  13. data/stylesheets/ZURB/includes/_colors.sass +8 -0
  14. data/stylesheets/ZURB/includes/_mixins.sass +32 -0
  15. data/stylesheets/ZURB/includes/_settings.sass +5 -0
  16. data/templates/project/MIT-LICENSE.txt +20 -0
  17. data/templates/project/humans.txt +8 -0
  18. data/templates/project/images/misc/button-gloss.png +0 -0
  19. data/templates/project/images/misc/button-overlay.png +0 -0
  20. data/templates/project/images/misc/custom-form-sprites.png +0 -0
  21. data/templates/project/images/misc/input-bg.png +0 -0
  22. data/templates/project/images/misc/modal-gloss.png +0 -0
  23. data/templates/project/images/misc/table-sorter.png +0 -0
  24. data/templates/project/images/orbit/bullets.jpg +0 -0
  25. data/templates/project/images/orbit/left-arrow.png +0 -0
  26. data/templates/project/images/orbit/loading.gif +0 -0
  27. data/templates/project/images/orbit/mask-black.png +0 -0
  28. data/templates/project/images/orbit/pause-black.png +0 -0
  29. data/templates/project/images/orbit/right-arrow.png +0 -0
  30. data/templates/project/images/orbit/rotator-black.png +0 -0
  31. data/templates/project/images/orbit/timer-black.png +0 -0
  32. data/templates/project/index.html +151 -0
  33. data/templates/project/javascripts/app.js +94 -0
  34. data/templates/project/javascripts/forms.jquery.js +58 -0
  35. data/templates/project/javascripts/jquery.customforms.js +168 -0
  36. data/templates/project/javascripts/jquery.min.js +4 -0
  37. data/templates/project/javascripts/jquery.orbit-1.3.0.js +597 -0
  38. data/templates/project/javascripts/jquery.placeholder.min.js +2 -0
  39. data/templates/project/javascripts/jquery.reveal.js +126 -0
  40. data/templates/project/manifest.rb +49 -0
  41. data/templates/project/robots.txt +4 -0
  42. data/templates/project/sass/app.sass +26 -0
  43. data/templates/project/sass/ie.sass +14 -0
  44. metadata +98 -0
@@ -0,0 +1,2 @@
1
+ /*! http://mths.be/placeholder v1.8.5 by @mathias */
2
+ (function(g,a,$){var f='placeholder' in a.createElement('input'),b='placeholder' in a.createElement('textarea');if(f&&b){$.fn.placeholder=function(){return this};$.fn.placeholder.input=$.fn.placeholder.textarea=true}else{$.fn.placeholder=function(){return this.filter((f?'textarea':':input')+'[placeholder]').bind('focus.placeholder',c).bind('blur.placeholder',e).trigger('blur.placeholder').end()};$.fn.placeholder.input=f;$.fn.placeholder.textarea=b;$(function(){$('form').bind('submit.placeholder',function(){var h=$('.placeholder',this).each(c);setTimeout(function(){h.each(e)},10)})});$(g).bind('unload.placeholder',function(){$('.placeholder').val('')})}function d(i){var h={},j=/^jQuery\d+$/;$.each(i.attributes,function(l,k){if(k.specified&&!j.test(k.name)){h[k.name]=k.value}});return h}function c(){var h=$(this);if(h.val()===h.attr('placeholder')&&h.hasClass('placeholder')){if(h.data('placeholder-password')){h.hide().next().show().focus().attr('id',h.removeAttr('id').data('placeholder-id'))}else{h.val('').removeClass('placeholder')}}}function e(){var l,k=$(this),h=k,j=this.id;if(k.val()===''){if(k.is(':password')){if(!k.data('placeholder-textinput')){try{l=k.clone().attr({type:'text'})}catch(i){l=$('<input>').attr($.extend(d(this),{type:'text'}))}l.removeAttr('name').data('placeholder-password',true).data('placeholder-id',j).bind('focus.placeholder',c);k.data('placeholder-textinput',l).data('placeholder-id',j).before(l)}k=k.removeAttr('id').hide().prev().attr('id',j).show()}k.addClass('placeholder').val(k.attr('placeholder'))}else{k.removeClass('placeholder')}}}(this,document,jQuery));
@@ -0,0 +1,126 @@
1
+ /*
2
+ * jQuery Reveal 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
+
10
+ (function ($) {
11
+ $('a[data-reveal-id]').live('click', function (event) {
12
+ event.preventDefault();
13
+ var modalLocation = $(this).attr('data-reveal-id');
14
+ $('#' + modalLocation).reveal($(this).data());
15
+ });
16
+
17
+ $.fn.reveal = function (options) {
18
+ var defaults = {
19
+ animation: 'fadeAndPop', // fade, fadeAndPop, none
20
+ animationSpeed: 300, // how fast animtions are
21
+ closeOnBackgroundClick: true, // if you click background will modal close?
22
+ dismissModalClass: 'close-reveal-modal' // the class of a button or element that will close an open modal
23
+ };
24
+ var options = $.extend({}, defaults, options);
25
+
26
+ return this.each(function () {
27
+ var modal = $(this),
28
+ topMeasure = parseInt(modal.css('top')),
29
+ topOffset = modal.height() + topMeasure,
30
+ locked = false,
31
+ modalBg = $('.reveal-modal-bg');
32
+
33
+ if (modalBg.length == 0) {
34
+ modalBg = $('<div class="reveal-modal-bg" />').insertAfter(modal);
35
+ modalBg.fadeTo('fast', 0.8);
36
+ }
37
+
38
+ function openAnimation() {
39
+ modalBg.unbind('click.modalEvent');
40
+ $('.' + options.dismissModalClass).unbind('click.modalEvent');
41
+ if (!locked) {
42
+ lockModal();
43
+ if (options.animation == "fadeAndPop") {
44
+ modal.css({'top': $(document).scrollTop() - topOffset, 'opacity': 0, 'visibility': 'visible'});
45
+ modalBg.fadeIn(options.animationSpeed / 2);
46
+ modal.delay(options.animationSpeed / 2).animate({
47
+ "top": $(document).scrollTop() + topMeasure + 'px',
48
+ "opacity": 1
49
+ }, options.animationSpeed, unlockModal);
50
+ }
51
+ if (options.animation == "fade") {
52
+ modal.css({'opacity': 0, 'visibility': 'visible', 'top': $(document).scrollTop() + topMeasure});
53
+ modalBg.fadeIn(options.animationSpeed / 2);
54
+ modal.delay(options.animationSpeed / 2).animate({
55
+ "opacity": 1
56
+ }, options.animationSpeed, unlockModal);
57
+ }
58
+ if (options.animation == "none") {
59
+ modal.css({'visibility': 'visible', 'top': $(document).scrollTop() + topMeasure});
60
+ modalBg.css({"display": "block"});
61
+ unlockModal();
62
+ }
63
+ }
64
+ modal.unbind('reveal:open', openAnimation);
65
+ }
66
+ modal.bind('reveal:open', openAnimation);
67
+
68
+ function closeAnimation() {
69
+ if (!locked) {
70
+ lockModal();
71
+ if (options.animation == "fadeAndPop") {
72
+ modalBg.delay(options.animationSpeed).fadeOut(options.animationSpeed);
73
+ modal.animate({
74
+ "top": $(document).scrollTop() - topOffset + 'px',
75
+ "opacity": 0
76
+ }, options.animationSpeed / 2, function () {
77
+ modal.css({'top': topMeasure, 'opacity': 1, 'visibility': 'hidden'});
78
+ unlockModal();
79
+ });
80
+ }
81
+ if (options.animation == "fade") {
82
+ modalBg.delay(options.animationSpeed).fadeOut(options.animationSpeed);
83
+ modal.animate({
84
+ "opacity" : 0
85
+ }, options.animationSpeed, function () {
86
+ modal.css({'opacity': 1, 'visibility': 'hidden', 'top': topMeasure});
87
+ unlockModal();
88
+ });
89
+ }
90
+ if (options.animation == "none") {
91
+ modal.css({'visibility': 'hidden', 'top': topMeasure});
92
+ modalBg.css({'display': 'none'});
93
+ }
94
+ }
95
+ modal.unbind('reveal:close', closeAnimation);
96
+ }
97
+ modal.bind('reveal:close', closeAnimation);
98
+ modal.trigger('reveal:open');
99
+
100
+ var closeButton = $('.' + options.dismissModalClass).bind('click.modalEvent', function () {
101
+ modal.trigger('reveal:close');
102
+ });
103
+
104
+ if (options.closeOnBackgroundClick) {
105
+ modalBg.css({"cursor": "pointer"});
106
+ modalBg.bind('click.modalEvent', function () {
107
+ modal.trigger('reveal:close');
108
+ });
109
+ }
110
+
111
+ $('body').keyup(function (event) {
112
+ if (event.which === 27) { // 27 is the keycode for the Escape key
113
+ modal.trigger('reveal:close');
114
+ }
115
+ });
116
+
117
+ function unlockModal() {
118
+ locked = false;
119
+ }
120
+
121
+ function lockModal() {
122
+ locked = true;
123
+ }
124
+ });
125
+ };
126
+ })(jQuery);
@@ -0,0 +1,49 @@
1
+ description 'ZURB-foundation Compass Gem'
2
+
3
+ # Sass Files
4
+ stylesheet 'sass/app.sass', :to => 'app.sass', :media => "screen, projector, print"
5
+ stylesheet 'sass/ie.sass', :to => 'ie.sass', :condition => "IE lt 9"
6
+
7
+ # Javascrips
8
+ javascript 'javascripts/app.js', :to => 'app.js'
9
+ javascript 'javascripts/forms.jquery.js', :to => 'forms.jquery.js'
10
+ javascript 'javascripts/jquery.customforms.js', :to => 'jquery.customforms.js'
11
+ javascript 'javascripts/jquery.min.js', :to => 'jquery.min.js'
12
+ javascript 'javascripts/jquery.reveal.js', :to => 'jquery.reveal.js'
13
+ javascript 'javascripts/jquery.orbit-1.3.0.js', :to => 'jquery.orbit-1.3.0.js'
14
+ javascript 'javascripts/jquery.placeholder.min.js', :to => 'jquery.placeholder.min.js'
15
+
16
+ # Make sure you list all the project template files here in the manifest.
17
+ html 'index.html'
18
+ file 'humans.txt'
19
+ file 'robots.txt'
20
+ file 'MIT-LICENSE.txt'
21
+
22
+ # Image Files
23
+ image 'images/misc/button-gloss.png', :to => 'misc/button-gloss.png'
24
+ image 'images/misc/button-overlay.png', :to => 'misc/button-overlay.png'
25
+ image 'images/misc/custom-form-sprites.png', :to => 'misc/custom-form-sprites.png'
26
+ image 'images/misc/input-bg.png', :to => 'misc/input-bg.png'
27
+ image 'images/misc/modal-gloss.png', :to => 'misc/modal-gloss.png'
28
+ image 'images/misc/table-sorter.png', :to => 'misc/table-sorter.png'
29
+ image 'images/orbit/bullets.jpg', :to => 'orbit/bullets.jpg'
30
+ image 'images/orbit/left-arrow.png', :to => 'orbit/left-arrow.png'
31
+ image 'images/orbit/loading.gif', :to => 'orbit/loading.gif'
32
+ image 'images/orbit/mask-black.png', :to => 'orbit/mask-black.png'
33
+ image 'images/orbit/pause-black.png', :to => 'orbit/pause-black.png'
34
+ image 'images/orbit/right-arrow.png', :to => 'orbit/right-arrow.png'
35
+ image 'images/orbit/rotator-black.png', :to => 'orbit/rotator-black.png'
36
+ image 'images/orbit/timer-black.png', :to => 'orbit/timer-black.png'
37
+
38
+
39
+ help %Q{
40
+
41
+ If you need help, email us at foundation@zurb.com or visit foundation.zurb.com"
42
+
43
+ }
44
+
45
+ welcome_message %Q{
46
+
47
+ w00t! You're using ZURB Foundation, now go forth and rock 'n roll!
48
+
49
+ }
@@ -0,0 +1,4 @@
1
+ # www.robotstxt.org/
2
+ # www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449
3
+
4
+ User-agent: *
@@ -0,0 +1,26 @@
1
+ @import ZURB/foundation
2
+
3
+ // --------------------------------------------------
4
+ // Table of Contents
5
+ // --------------------------------------------------
6
+ // :: Shared Styles
7
+ // :: Page Name 1
8
+ // :: Page Name 2
9
+
10
+
11
+
12
+ // -----------------------------------------
13
+ // Shared Styles
14
+ // -----------------------------------------
15
+
16
+
17
+
18
+ // -----------------------------------------
19
+ // Page Name 1
20
+ // -----------------------------------------
21
+
22
+
23
+
24
+ // -----------------------------------------
25
+ // Page Name 2
26
+ //------------------------------------------
@@ -0,0 +1,14 @@
1
+ @import ZURB/includes
2
+
3
+ /* This is for all IE specfific style less than IE9. We hate IE. */
4
+
5
+ // `IE styles
6
+ //----------------------------------------------------------------------------------------------------
7
+
8
+ div.panel
9
+ border: 1px solid #ccc
10
+ .lt-ie8
11
+ .nav-bar li.has-flyout a
12
+ padding-right: 20px
13
+ &:after
14
+ border-top: none
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ZURB-foundation
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.3b
5
+ prerelease: 5
6
+ platform: ruby
7
+ authors:
8
+ - ZURB
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-12-21 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: compass
16
+ requirement: &70315745101200 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.11.5
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70315745101200
25
+ description: ZURB Foundation ported over to work with the power of Compass.
26
+ email: foundation@zurb.com
27
+ executables: []
28
+ extensions: []
29
+ extra_rdoc_files: []
30
+ files:
31
+ - README.mkdn
32
+ - lib/ZURB-foundation.rb
33
+ - stylesheets/ZURB/_forms.sass
34
+ - stylesheets/ZURB/_foundation.sass
35
+ - stylesheets/ZURB/_globals.sass
36
+ - stylesheets/ZURB/_grid.sass
37
+ - stylesheets/ZURB/_includes.sass
38
+ - stylesheets/ZURB/_mobile.sass
39
+ - stylesheets/ZURB/_orbit.sass
40
+ - stylesheets/ZURB/_reveal.sass
41
+ - stylesheets/ZURB/_typography.sass
42
+ - stylesheets/ZURB/_ui.sass
43
+ - stylesheets/ZURB/includes/_colors.sass
44
+ - stylesheets/ZURB/includes/_mixins.sass
45
+ - stylesheets/ZURB/includes/_settings.sass
46
+ - templates/project/humans.txt
47
+ - templates/project/images/misc/button-gloss.png
48
+ - templates/project/images/misc/button-overlay.png
49
+ - templates/project/images/misc/custom-form-sprites.png
50
+ - templates/project/images/misc/input-bg.png
51
+ - templates/project/images/misc/modal-gloss.png
52
+ - templates/project/images/misc/table-sorter.png
53
+ - templates/project/images/orbit/bullets.jpg
54
+ - templates/project/images/orbit/left-arrow.png
55
+ - templates/project/images/orbit/loading.gif
56
+ - templates/project/images/orbit/mask-black.png
57
+ - templates/project/images/orbit/pause-black.png
58
+ - templates/project/images/orbit/right-arrow.png
59
+ - templates/project/images/orbit/rotator-black.png
60
+ - templates/project/images/orbit/timer-black.png
61
+ - templates/project/index.html
62
+ - templates/project/javascripts/app.js
63
+ - templates/project/javascripts/forms.jquery.js
64
+ - templates/project/javascripts/jquery.customforms.js
65
+ - templates/project/javascripts/jquery.min.js
66
+ - templates/project/javascripts/jquery.orbit-1.3.0.js
67
+ - templates/project/javascripts/jquery.placeholder.min.js
68
+ - templates/project/javascripts/jquery.reveal.js
69
+ - templates/project/manifest.rb
70
+ - templates/project/MIT-LICENSE.txt
71
+ - templates/project/robots.txt
72
+ - templates/project/sass/app.sass
73
+ - templates/project/sass/ie.sass
74
+ homepage: http://foundation.zurb.com
75
+ licenses: []
76
+ post_install_message:
77
+ rdoc_options: []
78
+ require_paths:
79
+ - lib
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ! '>'
90
+ - !ruby/object:Gem::Version
91
+ version: 1.3.1
92
+ requirements: []
93
+ rubyforge_project:
94
+ rubygems_version: 1.8.11
95
+ signing_key:
96
+ specification_version: 3
97
+ summary: ZURB Foundation ported over to work with the power of Compass.
98
+ test_files: []