foundation-rails 6.2.1.0 → 6.2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/bower.json +1 -1
  4. data/lib/foundation/rails/version.rb +1 -1
  5. data/lib/generators/foundation/templates/_settings.scss +1 -1
  6. data/vendor/assets/js/foundation.abide.js.es6 +27 -11
  7. data/vendor/assets/js/foundation.accordion.js.es6 +1 -1
  8. data/vendor/assets/js/foundation.accordionMenu.js.es6 +10 -7
  9. data/vendor/assets/js/foundation.core.js.es6 +3 -3
  10. data/vendor/assets/js/foundation.drilldown.js.es6 +31 -23
  11. data/vendor/assets/js/foundation.dropdown.js.es6 +1 -1
  12. data/vendor/assets/js/foundation.dropdownMenu.js.es6 +34 -26
  13. data/vendor/assets/js/foundation.equalizer.js.es6 +27 -6
  14. data/vendor/assets/js/foundation.interchange.js.es6 +22 -16
  15. data/vendor/assets/js/foundation.magellan.js.es6 +1 -1
  16. data/vendor/assets/js/foundation.offcanvas.js.es6 +6 -3
  17. data/vendor/assets/js/foundation.responsiveToggle.js.es6 +10 -3
  18. data/vendor/assets/js/foundation.reveal.js.es6 +53 -35
  19. data/vendor/assets/js/foundation.slider.js.es6 +31 -11
  20. data/vendor/assets/js/foundation.sticky.js.es6 +30 -27
  21. data/vendor/assets/js/foundation.tabs.js.es6 +13 -5
  22. data/vendor/assets/js/foundation.tooltip.js.es6 +12 -6
  23. data/vendor/assets/js/foundation.util.box.js.es6 +1 -1
  24. data/vendor/assets/js/foundation.util.keyboard.js.es6 +3 -3
  25. data/vendor/assets/js/foundation.util.mediaQuery.js.es6 +15 -11
  26. data/vendor/assets/js/foundation.util.touch.js.es6 +1 -1
  27. data/vendor/assets/scss/components/_accordion.scss +27 -7
  28. data/vendor/assets/scss/components/_button-group.scss +15 -23
  29. data/vendor/assets/scss/components/_button.scss +5 -0
  30. data/vendor/assets/scss/components/_dropdown-menu.scss +16 -5
  31. data/vendor/assets/scss/components/_media-object.scss +8 -2
  32. data/vendor/assets/scss/components/_menu.scss +9 -7
  33. data/vendor/assets/scss/components/_reveal.scss +7 -0
  34. data/vendor/assets/scss/components/_title-bar.scss +1 -1
  35. data/vendor/assets/scss/forms/_input-group.scss +1 -0
  36. data/vendor/assets/scss/forms/_select.scss +2 -1
  37. data/vendor/assets/scss/foundation.scss +1 -1
  38. data/vendor/assets/scss/grid/_classes.scss +2 -1
  39. data/vendor/assets/scss/grid/_flex-grid.scss +1 -1
  40. data/vendor/assets/scss/grid/_position.scss +1 -1
  41. data/vendor/assets/scss/grid/_row.scss +1 -1
  42. data/vendor/assets/scss/settings/_settings.scss +1 -1
  43. data/vendor/assets/scss/util/_breakpoint.scss +4 -3
  44. data/vendor/assets/scss/util/_mixins.scss +1 -1
  45. metadata +2 -2
@@ -139,6 +139,11 @@ $button-opacity-disabled: 0.25 !default;
139
139
  @mixin button-disabled {
140
140
  opacity: $button-opacity-disabled;
141
141
  cursor: not-allowed;
142
+
143
+ &:hover, &:focus {
144
+ background-color: $button-background;
145
+ color: $button-color;
146
+ }
142
147
  }
143
148
 
144
149
  /// Adds a dropdown arrow to a button.
@@ -84,14 +84,14 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
84
84
  }
85
85
 
86
86
  &.opens-left {
87
- .is-dropdown-submenu {
87
+ > .is-dropdown-submenu {
88
88
  left: auto;
89
89
  right: 100%;
90
90
  }
91
91
  }
92
92
 
93
93
  &.opens-right {
94
- .is-dropdown-submenu {
94
+ > .is-dropdown-submenu {
95
95
  right: auto;
96
96
  left: 100%;
97
97
  }
@@ -164,14 +164,25 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
164
164
  margin-top: -2px;
165
165
  }
166
166
 
167
- &.opens-inner .is-dropdown-submenu {
167
+ &.opens-inner > .is-dropdown-submenu {
168
+
168
169
  top: 100%;
170
+ @if $global-text-direction == 'rtl' {
171
+ right: auto;
172
+ } @else {
173
+ left: auto;
174
+ }
169
175
  }
170
176
 
171
- &.opens-left .is-dropdown-submenu {
177
+ &.opens-left > .is-dropdown-submenu {
172
178
  left: auto;
173
179
  right: 100%;
174
180
  }
181
+
182
+ &.opens-right > .is-dropdown-submenu {
183
+ right: auto;
184
+ left: 100%;
185
+ }
175
186
  }
176
187
 
177
188
  .is-dropdown-submenu {
@@ -202,7 +213,7 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
202
213
 
203
214
  // [TODO] Cut back specificity
204
215
  // scss-lint:disable SelectorDepth
205
- &:not(.js-dropdown-nohover) > .is-dropdown-submenu-parent:hover > &,
216
+ //&:not(.js-dropdown-nohover) > .is-dropdown-submenu-parent:hover > &, // why is this line needed? Opening is handled by JS and this causes some ugly flickering when the sub is re-positioned automatically...
206
217
  &.js-dropdown-active {
207
218
  display: block;
208
219
  }
@@ -32,7 +32,7 @@ $mediaobject-image-width-stacked: 100% !default;
32
32
  /// @param {Number} $padding [$mediaobject-section-padding] - Padding between sections.
33
33
  @mixin media-object-section($padding: $mediaobject-section-padding) {
34
34
  @if $global-flexbox {
35
- flex: 0 0 auto;
35
+ flex: 0 1 auto;
36
36
  }
37
37
  @else {
38
38
  display: table-cell;
@@ -46,6 +46,10 @@ $mediaobject-image-width-stacked: 100% !default;
46
46
  &:last-child:not(:nth-child(2)) {
47
47
  padding-#{$global-left}: $padding;
48
48
  }
49
+
50
+ > :last-child {
51
+ margin-bottom: 0;
52
+ }
49
53
  }
50
54
 
51
55
  /// Adds styles to stack sections of a media object. Apply this to the section elements, not the container.
@@ -76,7 +80,9 @@ $mediaobject-image-width-stacked: 100% !default;
76
80
 
77
81
  @if $global-flexbox {
78
82
  &.stack-for-#{$-zf-zero-breakpoint} {
79
- flex-wrap: wrap;
83
+ @include breakpoint($-zf-zero-breakpoint only) {
84
+ flex-wrap: wrap;
85
+ }
80
86
  }
81
87
  }
82
88
 
@@ -159,13 +159,13 @@ $menu-icon-spacing: 0.25rem !default;
159
159
  @else {
160
160
  > li > a {
161
161
  img,
162
- i {
162
+ i,
163
+ svg {
163
164
  vertical-align: middle;
164
- }
165
165
 
166
- i + span,
167
- img + span {
168
- vertical-align: middle;
166
+ + span {
167
+ vertical-align: middle;
168
+ }
169
169
  }
170
170
  }
171
171
  }
@@ -178,7 +178,8 @@ $menu-icon-spacing: 0.25rem !default;
178
178
  }
179
179
 
180
180
  img,
181
- i {
181
+ i,
182
+ svg {
182
183
  margin-#{$global-right}: $menu-icon-spacing;
183
184
 
184
185
  @if not $global-flexbox {
@@ -197,7 +198,8 @@ $menu-icon-spacing: 0.25rem !default;
197
198
  }
198
199
 
199
200
  img,
200
- i {
201
+ i,
202
+ svg {
201
203
  @if not $global-flexbox {
202
204
  display: block;
203
205
  margin: 0 auto $menu-icon-spacing;
@@ -113,6 +113,13 @@ $reveal-overlay-background: rgba($black, 0.45) !default;
113
113
  body.is-reveal-open {
114
114
  overflow: hidden;
115
115
  }
116
+ // html gets this class only in iOS
117
+ html.is-reveal-open,
118
+ html.is-reveal-open body {
119
+ height: 100%;
120
+ overflow: hidden;
121
+ user-select: none;
122
+ }
116
123
 
117
124
  // Overlay
118
125
  .reveal-overlay {
@@ -51,7 +51,7 @@ $titlebar-icon-spacing: 0.25rem !default;
51
51
 
52
52
  .menu-icon {
53
53
  margin-#{$global-left}: $titlebar-icon-spacing;
54
- margin-#{$global-right}: $titlebar-padding;
54
+ margin-#{$global-right}: $titlebar-icon-spacing;
55
55
  }
56
56
  }
57
57
 
@@ -46,6 +46,7 @@ $input-prefix-padding: 1rem !default;
46
46
 
47
47
  %input-group-child {
48
48
  margin: 0;
49
+ white-space: nowrap;
49
50
 
50
51
  @if not $global-flexbox {
51
52
  display: table-cell;
@@ -37,9 +37,10 @@ $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 center;
40
+ background-position: $global-right (-$form-spacing) center;
41
41
  background-origin: content-box;
42
42
  background-repeat: no-repeat;
43
+ padding-#{$global-right}: ($form-spacing * 1.5);
43
44
  }
44
45
 
45
46
  // Disabled state
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Foundation for Sites by ZURB
3
- * Version 6.2.1
3
+ * Version 6.2.3
4
4
  * foundation.zurb.com
5
5
  * Licensed under MIT Open Source
6
6
  */
@@ -116,7 +116,8 @@
116
116
  .#{$-zf-size}-#{$collapse} {
117
117
  > .#{$column} { @include grid-col-collapse; }
118
118
 
119
- .#{$row} {
119
+ .#{$row},
120
+ .#{$expanded}.#{$row} &.#{$row} {
120
121
  margin-left: 0;
121
122
  margin-right: 0;
122
123
  }
@@ -99,7 +99,7 @@
99
99
  // fixes recent Chrome version not limiting child width
100
100
  // https://stackoverflow.com/questions/34934586/white-space-nowrap-and-flexbox-did-not-work-in-chrome
101
101
  @if $columns == null {
102
- min-width: 0;
102
+ min-width: initial;
103
103
  }
104
104
  // max-width fixes IE 10/11 not respecting the flex-basis property
105
105
  @if $columns != null and $columns != shrink {
@@ -8,7 +8,7 @@
8
8
 
9
9
  /// Reposition a column.
10
10
  ///
11
- /// @param {Number} $position - Direction and amount to move. The column will move equal to the width of the column count specified. A positive number will push the column to the right, while a negative number will pull it to the left.
11
+ /// @param {Number|Keyword} $position - Direction and amount to move. The column will move equal to the width of the column count specified. A positive number will push the column to the right, while a negative number will pull it to the left. Set to center to center the column.
12
12
  @mixin grid-column-position($position) {
13
13
  @if type-of($position) == 'number' {
14
14
  $offset: percentage($position / $grid-column-count);
@@ -82,10 +82,10 @@
82
82
  @if type-of($gutter) == 'number' {
83
83
  $gutter: ($-zf-zero-breakpoint: $gutter);
84
84
  }
85
+ max-width: none;
85
86
 
86
87
  @each $breakpoint, $value in $gutter {
87
88
  $margin: rem-calc($value) / 2 * -1;
88
- max-width: none;
89
89
 
90
90
  @include breakpoint($breakpoint) {
91
91
  margin-left: $margin;
@@ -200,7 +200,7 @@ $accordion-item-background-hover: $light-gray;
200
200
  $accordion-item-padding: 1.25rem 1rem;
201
201
  $accordion-content-background: $white;
202
202
  $accordion-content-border: 1px solid $light-gray;
203
- $accordion-content-color: foreground($accordion-background, $primary-color);
203
+ $accordion-content-color: foreground($accordion-content-background, $body-font-color);
204
204
  $accordion-content-padding: 1rem;
205
205
 
206
206
  // 8. Accordion Menu
@@ -20,10 +20,11 @@ $breakpoints: (
20
20
 
21
21
  $-zf-zero-breakpoint: small !default;
22
22
 
23
- @if nth(map-values($breakpoints),1) != 0 {
23
+ @if nth(map-values($breakpoints), 1) != 0 {
24
24
  @error 'Your smallest breakpoint (defined in $breakpoints) must be set to "0".';
25
- } @else {
26
- $-zf-zero-breakpoint: nth(map-keys($breakpoints),1);
25
+ }
26
+ @else {
27
+ $-zf-zero-breakpoint: nth(map-keys($breakpoints), 1);
27
28
  }
28
29
 
29
30
  /// All of the names in this list will be output as classes in your CSS, like `.small-12`, `.medium-6`, and so on. Each value in this list must also be in the `$breakpoints` map.
@@ -116,7 +116,7 @@
116
116
  @mixin background-triangle($color: $black) {
117
117
  $rgb: 'rgb%28#{red($color)}, #{green($color)}, #{blue($color)}%29';
118
118
 
119
- background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="32" height="24" viewBox="0 0 32 24"><polygon points="0,0 32,0 16,24" style="fill: #{$rgb}"></polygon></svg>');
119
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: #{$rgb}'></polygon></svg>");
120
120
 
121
121
  @media screen and (min-width:0\0) {
122
122
  @if lightness($color) < 60% {
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.2.1.0
4
+ version: 6.2.3.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-04-12 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass