foundation-rails 6.1.1.3 → 6.1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/bower.json +2 -2
  4. data/lib/foundation/rails/version.rb +1 -1
  5. data/lib/generators/foundation/templates/_settings.scss +4 -2
  6. data/vendor/assets/js/foundation.abide.js +2 -2
  7. data/vendor/assets/js/foundation.accordion.js +16 -14
  8. data/vendor/assets/js/foundation.accordionMenu.js +20 -23
  9. data/vendor/assets/js/foundation.core.js +6 -8
  10. data/vendor/assets/js/foundation.drilldown.js +4 -4
  11. data/vendor/assets/js/foundation.dropdown.js +5 -3
  12. data/vendor/assets/js/foundation.dropdownMenu.js +8 -9
  13. data/vendor/assets/js/foundation.equalizer.js +6 -6
  14. data/vendor/assets/js/foundation.interchange.js +14 -5
  15. data/vendor/assets/js/foundation.magellan.js +25 -11
  16. data/vendor/assets/js/foundation.offcanvas.js +9 -4
  17. data/vendor/assets/js/foundation.orbit.js +306 -304
  18. data/vendor/assets/js/foundation.responsiveMenu.js +0 -6
  19. data/vendor/assets/js/foundation.reveal.js +63 -27
  20. data/vendor/assets/js/foundation.slider.js +65 -39
  21. data/vendor/assets/js/foundation.tabs.js +6 -7
  22. data/vendor/assets/js/foundation.tooltip.js +3 -3
  23. data/vendor/assets/js/foundation.util.nest.js +2 -3
  24. data/vendor/assets/js/foundation.util.timerAndImageLoader.js +4 -0
  25. data/vendor/assets/js/foundation.util.touch.js +17 -4
  26. data/vendor/assets/js/foundation.util.triggers.js +5 -3
  27. data/vendor/assets/scss/_global.scss +12 -2
  28. data/vendor/assets/scss/components/_accordion.scss +1 -5
  29. data/vendor/assets/scss/components/_button-group.scss +17 -2
  30. data/vendor/assets/scss/components/_button.scss +1 -8
  31. data/vendor/assets/scss/components/_drilldown.scss +4 -4
  32. data/vendor/assets/scss/components/_dropdown-menu.scss +88 -75
  33. data/vendor/assets/scss/components/_dropdown.scss +3 -2
  34. data/vendor/assets/scss/components/_media-object.scss +1 -1
  35. data/vendor/assets/scss/components/_menu.scss +7 -2
  36. data/vendor/assets/scss/components/_off-canvas.scss +0 -4
  37. data/vendor/assets/scss/components/_orbit.scss +1 -1
  38. data/vendor/assets/scss/components/_pagination.scss +6 -2
  39. data/vendor/assets/scss/components/_progress-bar.scss +14 -9
  40. data/vendor/assets/scss/components/_reveal.scss +8 -6
  41. data/vendor/assets/scss/components/_slider.scss +7 -0
  42. data/vendor/assets/scss/components/_table.scss +77 -64
  43. data/vendor/assets/scss/components/_title-bar.scss +4 -0
  44. data/vendor/assets/scss/components/_tooltip.scss +10 -2
  45. data/vendor/assets/scss/components/_top-bar.scss +13 -8
  46. data/vendor/assets/scss/forms/_error.scss +1 -1
  47. data/vendor/assets/scss/forms/_fieldset.scss +1 -0
  48. data/vendor/assets/scss/forms/_forms.scss +8 -9
  49. data/vendor/assets/scss/forms/_input-group.scss +1 -0
  50. data/vendor/assets/scss/forms/_select.scss +3 -1
  51. data/vendor/assets/scss/forms/_text.scss +1 -1
  52. data/vendor/assets/scss/foundation.scss +1 -1
  53. data/vendor/assets/scss/grid/_classes.scss +12 -2
  54. data/vendor/assets/scss/grid/_column.scss +1 -1
  55. data/vendor/assets/scss/grid/_flex-grid.scss +20 -3
  56. data/vendor/assets/scss/grid/_gutter.scss +1 -1
  57. data/vendor/assets/scss/grid/_position.scss +1 -0
  58. data/vendor/assets/scss/grid/_row.scss +1 -0
  59. data/vendor/assets/scss/settings/_settings.scss +4 -2
  60. data/vendor/assets/scss/util/_breakpoint.scss +10 -10
  61. data/vendor/assets/scss/util/_mixins.scss +6 -2
  62. data/vendor/assets/scss/util/_unit.scss +1 -1
  63. metadata +2 -2
@@ -38,7 +38,7 @@ $input-error-font-weight: $global-weight-bold !default;
38
38
  ///
39
39
  /// @param {Color} $background [$alert-color] - Color to use for the background and border.
40
40
  @mixin form-input-error(
41
- $background: $alert-color
41
+ $background: $input-background-invalid
42
42
  ) {
43
43
  &:not(:focus) {
44
44
  background-color: rgba($background, 0.1);
@@ -45,6 +45,7 @@ $legend-padding: rem-calc(0 3) !default;
45
45
 
46
46
  legend {
47
47
  margin-bottom: $form-spacing * 0.5;
48
+ max-width: 100%;
48
49
  }
49
50
 
50
51
  .fieldset {
@@ -10,15 +10,14 @@
10
10
  /// @type Number
11
11
  $form-spacing: rem-calc(16) !default;
12
12
 
13
- @import
14
- 'text',
15
- 'checkbox',
16
- 'label',
17
- 'help-text',
18
- 'input-group',
19
- 'fieldset',
20
- 'select',
21
- 'error';
13
+ @import 'text';
14
+ @import 'checkbox';
15
+ @import 'label';
16
+ @import 'help-text';
17
+ @import 'input-group';
18
+ @import 'fieldset';
19
+ @import 'select';
20
+ @import 'error';
22
21
 
23
22
  @mixin foundation-forms {
24
23
  @include foundation-form-text;
@@ -56,6 +56,7 @@ $input-prefix-padding: 1rem !default;
56
56
  background: $input-prefix-background;
57
57
  color: $input-prefix-color;
58
58
  border: $input-prefix-border;
59
+ white-space: nowrap;
59
60
 
60
61
  @if has-value($input-prefix-border) {
61
62
  &:first-child {
@@ -37,9 +37,11 @@ $select-radius: $global-radius !default;
37
37
  @if $select-triangle-color != transparent {
38
38
  @include background-triangle($select-triangle-color);
39
39
  background-size: 9px 6px;
40
- background-position: $global-right ($form-spacing / 2) center;
40
+ background-position: $global-right center;
41
+ background-origin: content-box;
41
42
  background-repeat: no-repeat;
42
43
  }
44
+
43
45
  // Disabled state
44
46
  &:disabled {
45
47
  background-color: $input-background-disabled;
@@ -128,7 +128,7 @@ $input-radius: $global-radius !default;
128
128
  // Reset styles on button-like inputs
129
129
  [type='submit'],
130
130
  [type='button'] {
131
- border-radius: $global-radius;
131
+ border-radius: $button-radius;
132
132
  -webkit-appearance: none;
133
133
  -moz-appearance: none;
134
134
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Foundation for Sites by ZURB
3
- * Version 6.1.1
3
+ * Version 6.1.2
4
4
  * foundation.zurb.com
5
5
  * Licensed under MIT Open Source
6
6
  */
@@ -53,6 +53,11 @@
53
53
  // Expanded (full-width) row
54
54
  &.#{$expanded} {
55
55
  max-width: none;
56
+
57
+ .#{$row} {
58
+ margin-left: auto;
59
+ margin-right: auto;
60
+ }
56
61
  }
57
62
  }
58
63
 
@@ -110,18 +115,23 @@
110
115
  // Block grid
111
116
  @for $i from 1 through $block-grid-max {
112
117
  .#{$-zf-size}-up-#{$i} {
113
- @include grid-layout($i);
118
+ @include grid-layout($i, ".#{$column}");
114
119
  }
115
120
  }
116
121
 
117
122
  // Responsive collapsing
118
123
  .#{$-zf-size}-#{$collapse} {
119
124
  > .#{$column} { @include grid-col-collapse; }
125
+
126
+ .#{$row} {
127
+ margin-left: 0;
128
+ margin-right: 0;
129
+ }
120
130
  }
121
131
 
122
132
  .#{$-zf-size}-#{$uncollapse} {
123
133
  $gutter: null;
124
-
134
+
125
135
  @if $grid-column-gutter {
126
136
  $gutter: $grid-column-gutter;
127
137
  }
@@ -63,7 +63,7 @@
63
63
  @else {
64
64
  @each $breakpoint, $gutter in $grid-column-responsive-gutter {
65
65
  $padding: rem-calc($gutter) / 2;
66
-
66
+
67
67
  @include breakpoint($breakpoint) {
68
68
  padding-left: $padding;
69
69
  padding-right: $padding;
@@ -71,6 +71,7 @@ $-zf-flex-align: (
71
71
  ///
72
72
  /// @param {Mixed} $columns [null] - Width of the column.
73
73
  @function flex-grid-column($columns: null) {
74
+ // scss-lint:disable ZeroUnit
74
75
  $flex: 1 1 0px;
75
76
 
76
77
  @if $columns == shrink {
@@ -97,7 +98,7 @@ $-zf-flex-align: (
97
98
  @else {
98
99
  @each $breakpoint, $gutter in $grid-column-responsive-gutter {
99
100
  $padding: rem-calc($gutter) / 2;
100
-
101
+
101
102
  @include breakpoint($breakpoint) {
102
103
  padding-left: $padding;
103
104
  padding-right: $padding;
@@ -170,8 +171,7 @@ $-zf-flex-align: (
170
171
  @include flex-grid-row;
171
172
 
172
173
  // Nesting behavior
173
- & &,
174
- .column-row & {
174
+ & & {
175
175
  @include flex-grid-row(nest, $base: false);
176
176
  }
177
177
 
@@ -190,6 +190,20 @@ $-zf-flex-align: (
190
190
  @include flex-grid-column;
191
191
  }
192
192
 
193
+ // Column row
194
+ // The double .row class is needed to bump up the specificity
195
+ .column.row.row {
196
+ float: none;
197
+
198
+ // To properly nest a column row, padding and margin is removed
199
+ .row & {
200
+ padding-left: 0;
201
+ padding-right: 0;
202
+ margin-left: 0;
203
+ margin-right: 0;
204
+ }
205
+ }
206
+
193
207
  @include -zf-each-breakpoint {
194
208
  @for $i from 1 through $grid-column-count {
195
209
  // Sizing (percentage)
@@ -241,6 +255,8 @@ $-zf-flex-align: (
241
255
  }
242
256
 
243
257
  .#{$-zf-size}-uncollapse {
258
+ $gutter: null;
259
+
244
260
  @if $grid-column-gutter {
245
261
  $gutter: $grid-column-gutter;
246
262
  }
@@ -254,6 +270,7 @@ $-zf-flex-align: (
254
270
  // Sizing (shrink)
255
271
  .shrink {
256
272
  flex: flex-grid-column(shrink);
273
+ max-width: 100%;
257
274
  }
258
275
 
259
276
  // Horizontal alignment using justify-content
@@ -6,7 +6,7 @@
6
6
  /// @group grid
7
7
  ////
8
8
 
9
- /// Collapse the gutters on a column by removing the padding.
9
+ /// Collapse the gutters on a column by removing the padding. **Note:** only use this mixin within a breakpoint. To collapse a column's gutters on all screen sizes, use the `$gutter` parameter of the `grid-column()` mixin instead.
10
10
  @mixin grid-column-collapse {
11
11
  padding-left: 0;
12
12
  padding-right: 0;
@@ -31,6 +31,7 @@
31
31
  position: static;
32
32
  margin-left: 0;
33
33
  margin-right: 0;
34
+ float: left;
34
35
  }
35
36
 
36
37
  /// Offsets a column to the right by `$n` columns.
@@ -88,6 +88,7 @@
88
88
  @else {
89
89
  @each $breakpoint, $value in $grid-column-responsive-gutter {
90
90
  $margin: rem-calc($value) / 2 * -1;
91
+
91
92
  @include breakpoint($breakpoint) {
92
93
  margin-left: $margin;
93
94
  margin-right: $margin;
@@ -287,7 +287,7 @@ $drilldown-background: $white;
287
287
 
288
288
  $dropdown-padding: 1rem;
289
289
  $dropdown-border: 1px solid $medium-gray;
290
- $dropdown-font-size: 16rem;
290
+ $dropdown-font-size: 1rem;
291
291
  $dropdown-width: 300px;
292
292
  $dropdown-radius: $global-radius;
293
293
  $dropdown-sizes: (
@@ -528,6 +528,8 @@ $titlebar-icon-spacing: 0.25rem;
528
528
  // 34. Tooltip
529
529
  // -----------
530
530
 
531
+ $has-tip-font-weight: $global-weight-bold;
532
+ $has-tip-border-bottom: dotted 1px $dark-gray;
531
533
  $tooltip-background-color: $black;
532
534
  $tooltip-color: $white;
533
535
  $tooltip-padding: 0.75rem;
@@ -542,6 +544,6 @@ $tooltip-radius: $global-radius;
542
544
 
543
545
  $topbar-padding: 0.5rem;
544
546
  $topbar-background: $light-gray;
545
- $topbar-link-color: $primary-color;
547
+ $topbar-title-spacing: 1rem;
546
548
  $topbar-input-width: 200px;
547
549
 
@@ -53,6 +53,7 @@ $breakpoint-classes: (small medium large) !default;
53
53
 
54
54
  @if $next-bp == null {
55
55
  $bp-max: null;
56
+ @warn 'breakpoint(): the media query "#{$val}" cannot be used because #{$bp} is the largest breakpoint.';
56
57
  }
57
58
  @else {
58
59
  $bp-max: $next-bp;
@@ -118,7 +119,7 @@ $breakpoint-classes: (small medium large) !default;
118
119
 
119
120
  /// Wraps a media query around the content you put inside the mixin. This mixin accepts a number of values:
120
121
  /// - If a string is passed, the mixin will look for it in the `$breakpoints` map, and use a media query there.
121
- /// - If a pixel value is passed, it will be converted to an em value using `$rem-base`.
122
+ /// - If a pixel value is passed, it will be converted to an em value using `$global-font-size` as the base.
122
123
  /// - If a rem value is passed, the unit will be changed to em.
123
124
  /// - If an em value is passed, the value will be used as-is.
124
125
  ///
@@ -242,25 +243,24 @@ $xxlarge-only: null;
242
243
 
243
244
  @if map-has-key($breakpoints, small) {
244
245
  $small-up: screen;
245
- $small-only: screen and #{breakpoint(small only)};
246
+ $small-only: unquote('screen and #{breakpoint(small only)}');
246
247
  }
247
248
 
248
249
  @if map-has-key($breakpoints, medium) {
249
- $medium-up: screen and #{breakpoint(medium)};
250
- $medium-only: screen and #{breakpoint(medium only)};
250
+ $medium-up: unquote('screen and #{breakpoint(medium)}');
251
+ $medium-only: unquote('screen and #{breakpoint(medium only)}');
251
252
  }
252
253
 
253
254
  @if map-has-key($breakpoints, large) {
254
- $large-up: screen and #{breakpoint(large)};
255
- $large-only: screen and #{breakpoint(large only)};
255
+ $large-up: unquote('screen and #{breakpoint(large)}');
256
+ $large-only: unquote('screen and #{breakpoint(large only)}');
256
257
  }
257
258
 
258
259
  @if map-has-key($breakpoints, xlarge) {
259
- $xlarge-up: screen and #{breakpoint(xlarge)};
260
- $xlarge-only: screen and #{breakpoint(xlarge only)};
260
+ $xlarge-up: unquote('screen and #{breakpoint(xlarge)}');
261
+ $xlarge-only: unquote('screen and #{breakpoint(xlarge only)}');
261
262
  }
262
263
 
263
264
  @if map-has-key($breakpoints, xxlarge) {
264
- $xxlarge-up: screen and #{breakpoint(xxlarge)};
265
- $xxlarge-only: screen and #{breakpoint(xxlarge only)};
265
+ $xxlarge-up: unquote('screen and #{breakpoint(xxlarge)}');
266
266
  }
@@ -25,18 +25,22 @@
25
25
  @if ($triangle-direction == down) {
26
26
  border-color: $triangle-color transparent transparent;
27
27
  border-top-style: solid;
28
+ border-bottom-width: 0;
28
29
  }
29
30
  @if ($triangle-direction == up) {
30
31
  border-color: transparent transparent $triangle-color;
31
32
  border-bottom-style: solid;
33
+ border-top-width: 0;
32
34
  }
33
35
  @if ($triangle-direction == right) {
34
36
  border-color: transparent transparent transparent $triangle-color;
35
37
  border-left-style: solid;
38
+ border-right-width: 0;
36
39
  }
37
40
  @if ($triangle-direction == left) {
38
41
  border-color: transparent $triangle-color transparent transparent;
39
42
  border-right-style: solid;
43
+ border-left-width: 0;
40
44
  }
41
45
  }
42
46
 
@@ -49,8 +53,8 @@
49
53
  /// @param {Number} $weight - Height of individual bars in the icon.
50
54
  /// @param {Number} $bars - Number of bars in the icon.
51
55
  @mixin hamburger(
52
- $color: #000,
53
- $color-hover: #666,
56
+ $color: $black,
57
+ $color-hover: $dark-gray,
54
58
  $width: 20px,
55
59
  $height: 16px,
56
60
  $weight: 2px,
@@ -75,7 +75,7 @@ $global-font-size: 100% !default;
75
75
  @warn inspect($value) + ' was passed to rem-calc(), which is not a number.';
76
76
  @return $value;
77
77
  }
78
-
78
+
79
79
  // Calculate rem if units for $value is not rem
80
80
  @if unit($value) != 'rem' {
81
81
  $value: strip-unit($value) / strip-unit($base) * 1rem;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foundation-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.1.3
4
+ version: 6.1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZURB
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-19 00:00:00.000000000 Z
11
+ date: 2016-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass