zurb-foundation 4.3.0 → 4.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/.gitignore +1 -0
  2. data/Gemfile.lock +1 -1
  3. data/README.md +8 -8
  4. data/docs/CHANGELOG.md +9 -1
  5. data/docs/Gemfile +5 -2
  6. data/docs/Gemfile.lock +19 -6
  7. data/docs/changelog.html.erb +1 -1
  8. data/docs/components/abide.html.erb +3 -3
  9. data/docs/components/alert-boxes.html.erb +3 -1
  10. data/docs/components/block-grid.html.erb +7 -5
  11. data/docs/components/breadcrumbs.html.erb +3 -1
  12. data/docs/components/button-groups.html.erb +4 -1
  13. data/docs/components/buttons.html.erb +3 -2
  14. data/docs/components/dropdown-buttons.html.erb +4 -1
  15. data/docs/components/dropdown.html.erb +6 -4
  16. data/docs/components/flex-video.html.erb +3 -1
  17. data/docs/components/grid.html.erb +4 -4
  18. data/docs/components/inline-lists.html.erb +3 -1
  19. data/docs/components/keystrokes.html.erb +3 -1
  20. data/docs/components/kitchen-sink.html.erb +13 -8
  21. data/docs/components/labels.html.erb +3 -1
  22. data/docs/components/pagination.html.erb +3 -1
  23. data/docs/components/panels.html.erb +3 -1
  24. data/docs/components/pricing-tables.html.erb +3 -1
  25. data/docs/components/progress-bars.html.erb +3 -1
  26. data/docs/components/reveal.html.erb +9 -1
  27. data/docs/components/section.html.erb +7 -7
  28. data/docs/components/side-nav.html.erb +3 -1
  29. data/docs/components/split-buttons.html.erb +4 -1
  30. data/docs/components/sub-nav.html.erb +3 -1
  31. data/docs/components/thumbnails.html.erb +3 -1
  32. data/docs/controller.rb +17 -2
  33. data/docs/css/docs.scss +103 -8
  34. data/docs/index.html.erb +9 -0
  35. data/docs/layout.html.erb +2 -1
  36. data/js/foundation/foundation.clearing.js +1 -1
  37. data/js/foundation/foundation.forms.js +1 -1
  38. data/js/foundation/foundation.js +3 -9
  39. data/js/foundation/foundation.orbit.js +15 -8
  40. data/js/foundation/foundation.section.js +3 -4
  41. data/js/foundation/foundation.topbar.js +3 -3
  42. data/lib/foundation/generators/templates/application.html.slim +3 -3
  43. data/lib/foundation/version.rb +1 -1
  44. data/scss/foundation/_variables.scss +0 -1
  45. data/scss/foundation/components/_buttons.scss +0 -1
  46. data/scss/foundation/components/_forms.scss +12 -7
  47. data/scss/foundation/components/_orbit.scss +12 -2
  48. metadata +4 -4
@@ -7,7 +7,7 @@
7
7
  Foundation.libs.section = {
8
8
  name : 'section',
9
9
 
10
- version : '4.3.0',
10
+ version : '4.3.1',
11
11
 
12
12
  settings: {
13
13
  deep_linking: false,
@@ -23,8 +23,7 @@
23
23
  content_selector: '.content, [data-section-content]',
24
24
  nav_selector: '[data-section="vertical-nav"], [data-section="horizontal-nav"]',
25
25
  active_class: 'active',
26
- callback: function() {
27
- }
26
+ callback: function() {}
28
27
  },
29
28
 
30
29
  init: function(scope, method, options) {
@@ -130,7 +129,7 @@
130
129
  } else if (!settings.one_up && (self.small(section) || self.is_vertical_nav(section) || self.is_horizontal_nav(section) || self.is_accordion(section))) {
131
130
  region.removeClass(self.settings.active_class);
132
131
  }
133
- settings.callback();
132
+ settings.callback(section);
134
133
  },
135
134
 
136
135
  check_resize_timer: null,
@@ -6,7 +6,7 @@
6
6
  Foundation.libs.topbar = {
7
7
  name : 'topbar',
8
8
 
9
- version : '4.3.0',
9
+ version: '4.3.1',
10
10
 
11
11
  settings : {
12
12
  index : 0,
@@ -161,7 +161,7 @@
161
161
  section.find('>.name').css({right: 100 * topbar.data('index') + '%'});
162
162
  }
163
163
 
164
- topbar.css('height', self.outerHeight($this.siblings('ul'), true) + self.outerHeight(titlebar, true));
164
+ topbar.css('height', self.outerHeight($this.siblings('ul'), true) + self.height(titlebar));
165
165
  }
166
166
  });
167
167
 
@@ -209,7 +209,7 @@
209
209
  if (topbar.data('index') === 0) {
210
210
  topbar.css('height', '');
211
211
  } else {
212
- topbar.css('height', self.outerHeight($previousLevelUl, true) + self.outerHeight(titlebar, true));
212
+ topbar.css('height', self.outerHeight($previousLevelUl, true) + self.height(titlebar));
213
213
  }
214
214
 
215
215
  setTimeout(function () {
@@ -22,9 +22,9 @@ head
22
22
 
23
23
  title == content_for?(:title) ? yield(:title) : "Untitled"
24
24
 
25
- = stylesheet_link_tag "application"
26
- = javascript_include_tag "vendor/custom.modernizr"
27
- = csrf_meta_tag
25
+ == stylesheet_link_tag "application"
26
+ == javascript_include_tag "vendor/custom.modernizr"
27
+ == csrf_meta_tag
28
28
 
29
29
  body
30
30
 
@@ -1,3 +1,3 @@
1
1
  module Foundation
2
- VERSION = "4.3.0"
2
+ VERSION = "4.3.1"
3
3
  end
@@ -374,7 +374,6 @@ $default-float: left;
374
374
 
375
375
  // $button-border-width: 1px;
376
376
  // $button-border-style: solid;
377
- // $button-border-color: darken($primary-color, $button-function-factor);
378
377
 
379
378
  // We use this to set the default radius used throughout the core.
380
379
 
@@ -30,7 +30,6 @@ $button-function-factor: 10% !default;
30
30
  // We use these to control button border styles.
31
31
  $button-border-width: 1px !default;
32
32
  $button-border-style: solid !default;
33
- $button-border-color: darken($primary-color, $button-function-factor) !default;
34
33
 
35
34
  // We use this to set the default radius used throughout the core.
36
35
  $button-radius: $global-radius !default;
@@ -48,7 +48,7 @@ $input-prefix-font-color-alt: #fff !default;
48
48
 
49
49
  // We use these to style the error states for inputs and labels
50
50
  $input-error-message-padding: emCalc(6, 4) !default;
51
- $input-error-message-top: 0 !default;
51
+ $input-error-message-top: -($form-spacing) - emCalc(5) !default;
52
52
  $input-error-message-font-size: emCalc(12) !default;
53
53
  $input-error-message-font-weight: bold !default;
54
54
  $input-error-message-font-color: #fff !default;
@@ -97,7 +97,7 @@ $glowing-effect-color: $input-focus-border-color !default;
97
97
  font-size: $input-font-size;
98
98
  margin: 0 0 $form-spacing 0;
99
99
  padding: $form-spacing / 2;
100
- height: emCalc(13) + ($form-spacing * 1.5);
100
+ height: ($input-font-size + ($form-spacing * 1.5) - emCalc(1));
101
101
  width: 100%;
102
102
  @include box-sizing(border-box);
103
103
  @if $input-include-glowing-effect {
@@ -284,11 +284,11 @@ $glowing-effect-color: $input-focus-border-color !default;
284
284
  .prefix.button.round { @include radius(0); @include side-radius(left, $button-round); }
285
285
  .postfix.button.round { @include radius(0); @include side-radius(right, $button-round); }
286
286
 
287
- /* Separate prefix and postfix styles when on span so buttons keep their own */
288
- span.prefix { @include prefix();
287
+ /* Separate prefix and postfix styles when on span or label so buttons keep their own */
288
+ span.prefix,label.prefix { @include prefix();
289
289
  &.radius { @include radius(0); @include side-radius(left, $global-radius); }
290
290
  }
291
- span.postfix { @include postfix();
291
+ span.postfix,label.postfix { @include postfix();
292
292
  &.radius { @include radius(0); @include side-radius(right, $global-radius); }
293
293
  }
294
294
 
@@ -353,11 +353,16 @@ $glowing-effect-color: $input-focus-border-color !default;
353
353
 
354
354
  /* Error Handling */
355
355
 
356
+ [data-abide] {
357
+ .error small.error, span.error, small.error {
358
+ @include form-error-message;
359
+ margin-top: 0;
360
+ }
361
+ span.error, small.error { display: none; }
362
+ }
356
363
  span.error, small.error {
357
364
  @include form-error-message;
358
- display: none;
359
365
  }
360
-
361
366
  .error {
362
367
  input,
363
368
  textarea,
@@ -130,10 +130,20 @@ $preloader-class: "preloader" !default;
130
130
  position: absolute;
131
131
  top: 0;
132
132
  width: 100%;
133
- margin-left: 100%;
134
-
133
+ @if $text-direction == rtl {
134
+ margin-right: 100%;
135
+ }
136
+ @else {
137
+ margin-left: 100%;
138
+ }
139
+
135
140
  &:first-child {
141
+ @if $text-direction == rtl {
142
+ margin-right: 0%;
143
+ }
144
+ @else {
136
145
  margin-left: 0%;
146
+ }
137
147
  }
138
148
 
139
149
  .orbit-caption {
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: 4.3.0
4
+ version: 4.3.1
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: 2013-07-18 00:00:00.000000000 Z
12
+ date: 2013-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -268,7 +268,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
268
268
  version: '0'
269
269
  segments:
270
270
  - 0
271
- hash: 3735898453351484891
271
+ hash: -3316749234965597877
272
272
  required_rubygems_version: !ruby/object:Gem::Requirement
273
273
  none: false
274
274
  requirements:
@@ -277,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
277
277
  version: '0'
278
278
  segments:
279
279
  - 0
280
- hash: 3735898453351484891
280
+ hash: -3316749234965597877
281
281
  requirements: []
282
282
  rubyforge_project:
283
283
  rubygems_version: 1.8.23