zurb-foundation 2.0.2 → 2.0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/build.rb ADDED
@@ -0,0 +1,39 @@
1
+ require "fileutils"
2
+ require "pathname"
3
+
4
+ # Specify path to checked out Foundation repo
5
+ FOUNDATION_REPO_PATH = Pathname.new("/Users/mark/Projects/foundation")
6
+
7
+ # Specify which files need to be concatenated and in what order
8
+ FOUNDATION_CSS = %w(globals.css typography.css grid.css ui.css forms.css orbit.css reveal.css mobile.css)
9
+ FOUNDATION_JS = %w(jquery.reveal.js jquery.orbit-1.3.0.js forms.jquery.js jquery.customforms.js jquery.placeholder.min.js app.js)
10
+
11
+ # Clean out vendor/assets
12
+ ASSET_PATH = Pathname.new(File.dirname(__FILE__)).join("vendor", "assets")
13
+ FileUtils.remove_dir ASSET_PATH, :force => true
14
+
15
+ # Recreate vendor/assets
16
+ FileUtils.mkdir_p ASSET_PATH.join("stylesheets")
17
+ FileUtils.mkdir_p ASSET_PATH.join("javascripts")
18
+ FileUtils.mkdir_p ASSET_PATH.join("images", "foundation")
19
+
20
+ # Create SCSS file, so we can usage image-url() helper
21
+ File.open(ASSET_PATH.join("stylesheets", "foundation.scss"), "w") do |file|
22
+ FOUNDATION_CSS.each do |filename|
23
+ css_file = File.open(FOUNDATION_REPO_PATH.join("stylesheets", filename))
24
+ file << css_file.read.gsub(/url\('?\.\.\/images\/([^\)']+)'?\)/, 'image-url("foundation/\1")')
25
+ file << "\n\n"
26
+ end
27
+ end
28
+
29
+ # Create JS file
30
+ File.open(ASSET_PATH.join("javascripts", "foundation.js"), "w") do |file|
31
+ FOUNDATION_JS.each do |filename|
32
+ js_file = File.open(FOUNDATION_REPO_PATH.join("javascripts", filename))
33
+ file << js_file.read
34
+ file << "\n\n"
35
+ end
36
+ end
37
+
38
+ # Copy Images
39
+ FileUtils.cp_r FOUNDATION_REPO_PATH.join("images/."), ASSET_PATH.join("images", "foundation")
@@ -1,3 +1,4 @@
1
1
  module Foundation
2
- VERSION = "2.0.2"
2
+ COMMIT = "82881ec476590e01cfdf207851427f55807712db"
3
+ VERSION = "2.0.3.1"
3
4
  end
@@ -947,3 +947,50 @@ jQuery(document).ready(function ($) {
947
947
  /*! http://mths.be/placeholder v1.8.5 by @mathias */
948
948
  (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));
949
949
 
950
+ $(document).ready(function() {
951
+
952
+ /* Use this js doc for all application specific JS */
953
+ $(window).resize(function() {
954
+ console.log($(window).width());
955
+ });
956
+
957
+ /* TABS --------------------------------- */
958
+ /* Remove if you don't need :) */
959
+
960
+ var tabs = $('dl.tabs');
961
+ tabsContent = $('ul.tabs-content')
962
+
963
+ tabs.each(function(i) {
964
+ //Get all tabs
965
+ var tab = $(this).children('dd').children('a');
966
+ tab.click(function(e) {
967
+
968
+ //Get Location of tab's content
969
+ var contentLocation = $(this).attr("href")
970
+ contentLocation = contentLocation + "Tab";
971
+
972
+ //Let go if not a hashed one
973
+ if(contentLocation.charAt(0)=="#") {
974
+
975
+ e.preventDefault();
976
+
977
+ //Make Tab Active
978
+ tab.removeClass('active');
979
+ $(this).addClass('active');
980
+
981
+ //Show Tab Content
982
+ $(contentLocation).parent('.tabs-content').children('li').css({"display":"none"});
983
+ $(contentLocation).css({"display":"block"});
984
+
985
+ }
986
+ });
987
+ });
988
+
989
+
990
+ /* PLACEHOLDER FOR FORMS ------------- */
991
+ /* Remove this and jquery.placeholder.min.js if you don't need :) */
992
+
993
+ $('input, textarea').placeholder();
994
+
995
+ });
996
+
@@ -260,7 +260,7 @@
260
260
  .row .offset-by-ten:first-child { margin-left: 87%; }
261
261
  .row .offset-by-eleven:first-child { margin-left: 95.7%; }
262
262
 
263
- img, object, embed { max-width: 100%; }
263
+ img, object, embed { max-width: 100%; height: auto; }
264
264
  img { -ms-interpolation-mode: bicubic; }
265
265
 
266
266
  /* Nicolas Gallagher's micro clearfix */
@@ -329,6 +329,7 @@
329
329
  text-decoration: none;
330
330
  font-weight: bold;
331
331
  line-height: 1;
332
+ font-family: "Helvetica Neue", "Helvetica", Arial, Verdana, sans-serif;
332
333
  position: relative;
333
334
  cursor: pointer;
334
335
  border: none;
@@ -373,9 +374,9 @@
373
374
  .button:active {}
374
375
 
375
376
  /* Sizes ---------- */
376
- .small.button { font-size: 11px; padding: 8px 20px 10px; }
377
- .medium.button { font-size: 13px; }
378
- .large.button { font-size: 18px; padding: 11px 48px 13px; }
377
+ .small.button { font-size: 11px; padding: 8px 20px 10px; width: auto; }
378
+ .medium.button { font-size: 13px; width: auto; }
379
+ .large.button { font-size: 18px; padding: 11px 48px 13px; width: auto; }
379
380
 
380
381
  /* Nice Sizes ---------- */
381
382
  .nice.small.button { background-position: 0 -36px; }
@@ -844,7 +845,7 @@ div.slider-nav span.left {
844
845
  cursor: pointer;
845
846
  color: #999;
846
847
  text-indent: -9999px;
847
- background: url(public/images/orbit-demo/orbit/bullets.jpg) no-repeat 4px 0;
848
+ background: image-url("foundation/orbit/orbit/bullets.jpg") no-repeat 4px 0;
848
849
  width: 13px;
849
850
  height: 12px;
850
851
  overflow: hidden; }
@@ -972,7 +973,7 @@ div.slider-nav span.left {
972
973
  .row .row .column, .row .row .columns { padding: 0; }
973
974
  .column, .columns { width: auto !important; float: none; margin-left: 0px; margin-right: 0px; padding-left: 20px; padding-right: 20px; }
974
975
  .column:last-child, .columns:last-child { margin-right: 0px; }
975
- .offset-by-one, .offset-by-two, .offset-by-three, .offset-by-four, .offset-by-five, .offset-by-six, .offset-by-seven, .offset-by-eight, .offset-by-nine, .offset-by-ten, .offset-by-eleven { margin-left: 0% !important; }
976
+ .offset-by-one, .offset-by-two, .offset-by-three, .offset-by-four, .offset-by-five, .offset-by-six, .offset-by-seven, .offset-by-eight, .offset-by-nine, .offset-by-ten, .offset-by-eleven, .centered { margin-left: 0% !important; }
976
977
  }
977
978
 
978
979
 
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.0.2
4
+ version: 2.0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-28 00:00:00.000000000 -07:00
12
+ date: 2011-10-31 00:00:00.000000000 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &2156667340 !ruby/object:Gem::Requirement
17
+ requirement: &2153637200 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.1.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2156667340
25
+ version_requirements: *2153637200
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: jquery-rails
28
- requirement: &2156663800 !ruby/object:Gem::Requirement
28
+ requirement: &2153636440 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '1.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2156663800
36
+ version_requirements: *2153636440
37
37
  description: An easy to use, powerful, and flexible framework for building prototypes
38
38
  and production code on any kind of device.
39
39
  email:
@@ -46,6 +46,7 @@ files:
46
46
  - Gemfile
47
47
  - README.markdown
48
48
  - Rakefile
49
+ - build.rb
49
50
  - foundation.gemspec
50
51
  - lib/foundation/engine.rb
51
52
  - lib/foundation/generators/USAGE
@@ -89,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
90
  version: '0'
90
91
  segments:
91
92
  - 0
92
- hash: 3327952097264640656
93
+ hash: -1865835205195260819
93
94
  required_rubygems_version: !ruby/object:Gem::Requirement
94
95
  none: false
95
96
  requirements:
@@ -98,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
99
  version: '0'
99
100
  segments:
100
101
  - 0
101
- hash: 3327952097264640656
102
+ hash: -1865835205195260819
102
103
  requirements: []
103
104
  rubyforge_project: foundation
104
105
  rubygems_version: 1.6.2