zurb-foundation 2.1.3 → 2.1.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  module Foundation
2
- COMMIT = "4a2e5db0b583b376d2ee256b361ff755beab62bb"
3
- VERSION = "2.1.3"
2
+ COMMIT = "65920cc5c72c1dc82902e29afd9fa97ab5982535"
3
+ VERSION = "2.1.3.1"
4
4
  end
@@ -6,15 +6,15 @@ $(document).ready(function () {
6
6
  /* Remove if you don't need :) */
7
7
 
8
8
  function activateTab($tab) {
9
- var $activeTab = $tab.closest('dl').find('a.active'),
10
- contentLocation = $tab.attr("href") + 'Tab';
9
+ var $activeTab = $tab.closest('dl').find('a.active'),
10
+ contentLocation = $tab.attr("href") + 'Tab';
11
11
 
12
- //Make Tab Active
13
- $activeTab.removeClass('active');
14
- $tab.addClass('active');
12
+ //Make Tab Active
13
+ $activeTab.removeClass('active');
14
+ $tab.addClass('active');
15
15
 
16
- //Show Tab Content
17
- $(contentLocation).closest('.tabs-content').find('li').hide();
16
+ //Show Tab Content
17
+ $(contentLocation).closest('.tabs-content').children('li').hide();
18
18
  $(contentLocation).show();
19
19
  }
20
20
 
@@ -22,13 +22,20 @@ $(document).ready(function () {
22
22
  //Get all tabs
23
23
  var tabs = $(this).children('dd').children('a');
24
24
  tabs.click(function (e) {
25
- activateTab($(this));
25
+ activateTab($(this));
26
26
  });
27
27
  });
28
28
 
29
29
  if (window.location.hash) {
30
- activateTab($('a[href="' + window.location.hash + '"]'));
31
- }
30
+ activateTab($('a[href="' + window.location.hash + '"]'));
31
+ }
32
+
33
+ /* ALERT BOXES ------------ */
34
+ $(".alert-box").delegate("a.close", "click", function() {
35
+ $(this).closest(".alert-box").fadeOut(function(){
36
+ $(this).remove();
37
+ });
38
+ });
32
39
 
33
40
 
34
41
  /* PLACEHOLDER FOR FORMS ------------- */
@@ -74,7 +81,6 @@ $(document).ready(function () {
74
81
  /* DISABLED BUTTONS ------------- */
75
82
  /* Gives elements with a class of 'disabled' a return: false; */
76
83
 
77
-
78
84
  });
79
85
 
80
86
 
@@ -10,15 +10,15 @@ jQuery(document).ready(function ($) {
10
10
 
11
11
  function appendCustomMarkup(type) {
12
12
  $('form.custom input:' + type).each(function () {
13
- var $span = $('<span class="custom ' + type + '"></span>');
14
- if ($(this).next('span.custom.' + type).length === 0) {
15
- if (this.checked) {
16
- $span.addClass('checked');
17
- }
18
- $(this)
19
- .hide()
20
- .after($span);
13
+
14
+ var $this = $(this).hide(),
15
+ $span = $this.next('span.custom.' + type);
16
+
17
+ if ($span.length === 0) {
18
+ $span = $('<span class="custom ' + type + '"></span>').insertAfter($this);
21
19
  }
20
+
21
+ $span.toggleClass('checked', $this.is(':checked'));
22
22
  });
23
23
  }
24
24
  appendCustomMarkup('checkbox');
@@ -167,3 +167,4 @@ jQuery(document).ready(function ($) {
167
167
  });
168
168
  })(jQuery);
169
169
 
170
+
@@ -36,9 +36,9 @@
36
36
  .form-field input[type=radio], div.form-field input[type=checkbox] { display: inline; width:auto; margin-bottom:0; }
37
37
 
38
38
  /* Errors */
39
- .form-field.error input, input.input-text.red { border-color: red; background-color: rgba(255,0,0,0.15); }
40
- .form-field.error label, label.red { color: red; }
41
- .form-field.error small, small.error { margin-top: -6px; display: block; margin-bottom: 9px; font-size: 11px; color: red; width: 260px; }
39
+ .form-field.error input, input.input-text.red { border-color: #C00000; background-color: rgba(255,0,0,0.15); }
40
+ .form-field.error label, label.red { color: #C00000; }
41
+ .form-field.error small, small.error { margin-top: -6px; display: block; margin-bottom: 9px; font-size: 11px; color: #C00000; width: 260px; }
42
42
 
43
43
  .small + small.error { width: 140px; }
44
44
  .medium + small.error { width: 260px; }
@@ -55,7 +55,7 @@
55
55
 
56
56
  form.nice div.form-field input[type=radio], form.nice div.form-field input[type=checkbox] { display: inline; width:auto; margin-bottom:0; }
57
57
 
58
- form.nice div.form-field.error small, form.nice small.error { padding: 6px 4px; border: solid 0 red; border-width: 0 1px 1px 1px; margin-top: -10px; background: red; color: #fff; font-size: 12px; font-weight: bold; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; -webkit-border-bottom-left-radius: 2px; -webkit-border-bottom-right-radius: 2px; -moz-border-radius-bottomleft: 2px; -moz-border-radius-bottomright: 2px; }
58
+ form.nice div.form-field.error small, form.nice small.error { padding: 6px 4px; border: solid 0 #C00000; border-width: 0 1px 1px 1px; margin-top: -10px; background: #C00000; color: #fff; font-size: 12px; font-weight: bold; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; -webkit-border-bottom-left-radius: 2px; -webkit-border-bottom-right-radius: 2px; -moz-border-radius-bottomleft: 2px; -moz-border-radius-bottomright: 2px; }
59
59
 
60
60
  form.nice div.form-field.error .small + small, form.nice .small + small.error { width: 132px; }
61
61
  form.nice div.form-field.error .medium + small, form.nice .medium + small.error { width: 252px; }
@@ -77,7 +77,7 @@
77
77
  form.custom div.custom.dropdown.open a.selector { background-position: -14px -26px; }
78
78
 
79
79
  form.custom div.custom.dropdown ul { position: absolute; width: auto; display: none; margin: 0; left: 0; top: 27px; margin: 0; padding: 0; background: rgba(255,255,255,0.9); border: solid 1px #ddd; z-index: 10; }
80
- form.custom div.custom.dropdown ul li { cursor: pointer; padding: 3px 38px 3px 6px; margin: 0; }
80
+ form.custom div.custom.dropdown ul li { cursor: pointer; padding: 3px 38px 3px 6px; margin: 0; white-space: nowrap}
81
81
  form.custom div.custom.dropdown ul li.selected { background: image-url("foundation/misc/custom-form-sprites.png") right -52px no-repeat; }
82
82
  form.custom div.custom.dropdown ul li:hover { background-color: #2a85e8; color: #fff; }
83
83
  form.custom div.custom.dropdown ul li.selected:hover { background: image-url("foundation/misc/custom-form-sprites.png") #2a85e8 right -78px no-repeat; }
@@ -87,3 +87,4 @@
87
87
 
88
88
 
89
89
 
90
+
@@ -20,7 +20,7 @@
20
20
  .row .one.columns { width: 4.3%; }
21
21
  .row .two.columns { width: 13%; }
22
22
  .row .three.columns { width: 21.68%; }
23
- .row .four.columns { width: 30.4%; }
23
+ .row .four.columns { width: 30.37%; }
24
24
  .row .five.columns { width: 39.1%; }
25
25
  .row .six.columns { width: 47.8%; }
26
26
  .row .seven.columns { width: 56.5%; }
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.1.3
4
+ version: 2.1.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-12-10 00:00:00.000000000 -08:00
12
+ date: 2011-12-14 00:00:00.000000000 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &2158771740 !ruby/object:Gem::Requirement
17
+ requirement: &2154910460 !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: *2158771740
25
+ version_requirements: *2154910460
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: jquery-rails
28
- requirement: &2158764100 !ruby/object:Gem::Requirement
28
+ requirement: &2154909960 !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: *2158764100
36
+ version_requirements: *2154909960
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:
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  segments:
106
106
  - 0
107
- hash: -3981466462999743391
107
+ hash: 2248147296894698664
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  none: false
110
110
  requirements:
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  segments:
115
115
  - 0
116
- hash: -3981466462999743391
116
+ hash: 2248147296894698664
117
117
  requirements: []
118
118
  rubyforge_project: foundation
119
119
  rubygems_version: 1.6.2