foundation-rails 6.1.2.0 → 6.2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -6
  3. data/README.md +1 -1
  4. data/Rakefile +5 -1
  5. data/bower.json +3 -3
  6. data/foundation-rails.gemspec +1 -0
  7. data/lib/foundation-rails.rb +1 -0
  8. data/lib/foundation/rails/version.rb +1 -1
  9. data/lib/generators/foundation/templates/foundation_and_overrides.scss +2 -2
  10. data/vendor/assets/js/foundation.abide.js.es6 +462 -0
  11. data/vendor/assets/js/{foundation.accordion.js → foundation.accordion.js.es6} +55 -47
  12. data/vendor/assets/js/{foundation.accordionMenu.js → foundation.accordionMenu.js.es6} +46 -35
  13. data/vendor/assets/js/{foundation.core.js → foundation.core.js.es6} +10 -8
  14. data/vendor/assets/js/{foundation.drilldown.js → foundation.drilldown.js.es6} +75 -49
  15. data/vendor/assets/js/{foundation.dropdown.js → foundation.dropdown.js.es6} +100 -88
  16. data/vendor/assets/js/{foundation.dropdownMenu.js → foundation.dropdownMenu.js.es6} +134 -128
  17. data/vendor/assets/js/{foundation.equalizer.js → foundation.equalizer.js.es6} +72 -61
  18. data/vendor/assets/js/{foundation.interchange.js → foundation.interchange.js.es6} +44 -45
  19. data/vendor/assets/js/{foundation.js → foundation.js.es6} +0 -0
  20. data/vendor/assets/js/{foundation.magellan.js → foundation.magellan.js.es6} +80 -83
  21. data/vendor/assets/js/foundation.offcanvas.js.es6 +395 -0
  22. data/vendor/assets/js/foundation.orbit.js.es6 +445 -0
  23. data/vendor/assets/js/{foundation.responsiveMenu.js → foundation.responsiveMenu.js.es6} +37 -31
  24. data/vendor/assets/js/foundation.responsiveToggle.js.es6 +112 -0
  25. data/vendor/assets/js/foundation.reveal.js.es6 +544 -0
  26. data/vendor/assets/js/{foundation.slider.js → foundation.slider.js.es6} +235 -184
  27. data/vendor/assets/js/{foundation.sticky.js → foundation.sticky.js.es6} +177 -166
  28. data/vendor/assets/js/{foundation.tabs.js → foundation.tabs.js.es6} +138 -118
  29. data/vendor/assets/js/{foundation.toggler.js → foundation.toggler.js.es6} +34 -37
  30. data/vendor/assets/js/{foundation.tooltip.js → foundation.tooltip.js.es6} +162 -153
  31. data/vendor/assets/js/foundation.util.box.js.es6 +183 -0
  32. data/vendor/assets/js/{foundation.util.keyboard.js → foundation.util.keyboard.js.es6} +54 -54
  33. data/vendor/assets/js/{foundation.util.mediaQuery.js → foundation.util.mediaQuery.js.es6} +46 -46
  34. data/vendor/assets/js/{foundation.util.motion.js → foundation.util.motion.js.es6} +58 -48
  35. data/vendor/assets/js/foundation.util.nest.js.es6 +76 -0
  36. data/vendor/assets/js/foundation.util.timerAndImageLoader.js.es6 +86 -0
  37. data/vendor/assets/js/{foundation.util.touch.js → foundation.util.touch.js.es6} +2 -2
  38. data/vendor/assets/js/foundation.util.triggers.js.es6 +239 -0
  39. data/vendor/assets/scss/_global.scss +28 -27
  40. data/vendor/assets/scss/components/_badge.scss +1 -1
  41. data/vendor/assets/scss/components/_button-group.scss +77 -26
  42. data/vendor/assets/scss/components/_button.scss +8 -8
  43. data/vendor/assets/scss/components/_callout.scss +2 -2
  44. data/vendor/assets/scss/components/_drilldown.scss +4 -0
  45. data/vendor/assets/scss/components/_dropdown-menu.scss +104 -54
  46. data/vendor/assets/scss/components/_flex.scss +28 -0
  47. data/vendor/assets/scss/components/_label.scss +1 -1
  48. data/vendor/assets/scss/components/_media-object.scss +37 -7
  49. data/vendor/assets/scss/components/_menu-icon.scss +9 -0
  50. data/vendor/assets/scss/components/_menu.scss +127 -29
  51. data/vendor/assets/scss/components/_off-canvas.scss +1 -0
  52. data/vendor/assets/scss/components/_pagination.scss +3 -3
  53. data/vendor/assets/scss/components/_progress-bar.scss +1 -25
  54. data/vendor/assets/scss/components/_reveal.scss +12 -6
  55. data/vendor/assets/scss/components/_slider.scss +3 -35
  56. data/vendor/assets/scss/components/_table.scss +8 -0
  57. data/vendor/assets/scss/components/_tabs.scss +5 -10
  58. data/vendor/assets/scss/components/_title-bar.scss +27 -10
  59. data/vendor/assets/scss/components/_tooltip.scss +0 -4
  60. data/vendor/assets/scss/components/_top-bar.scss +93 -21
  61. data/vendor/assets/scss/components/_visibility.scss +1 -1
  62. data/vendor/assets/scss/forms/_checkbox.scss +1 -1
  63. data/vendor/assets/scss/forms/_error.scss +7 -5
  64. data/vendor/assets/scss/forms/_forms.scss +3 -0
  65. data/vendor/assets/scss/forms/_help-text.scss +1 -1
  66. data/vendor/assets/scss/forms/_input-group.scss +44 -9
  67. data/vendor/assets/scss/forms/_meter.scss +109 -0
  68. data/vendor/assets/scss/forms/_progress.scss +85 -0
  69. data/vendor/assets/scss/forms/_range.scss +144 -0
  70. data/vendor/assets/scss/forms/_select.scss +1 -1
  71. data/vendor/assets/scss/forms/_text.scss +10 -1
  72. data/vendor/assets/scss/foundation.scss +16 -5
  73. data/vendor/assets/scss/grid/_classes.scss +5 -18
  74. data/vendor/assets/scss/grid/_column.scss +13 -11
  75. data/vendor/assets/scss/grid/_flex-grid.scss +54 -80
  76. data/vendor/assets/scss/grid/_grid.scss +22 -10
  77. data/vendor/assets/scss/grid/_layout.scss +18 -0
  78. data/vendor/assets/scss/grid/_row.scss +11 -15
  79. data/vendor/assets/scss/motion-ui/_classes.scss +10 -3
  80. data/vendor/assets/scss/motion-ui/effects/_fade.scss +4 -1
  81. data/vendor/assets/scss/motion-ui/effects/_zoom.scss +1 -1
  82. data/vendor/assets/scss/motion-ui/transitions/_slide.scss +1 -1
  83. data/vendor/assets/scss/motion-ui/util/_transition.scss +1 -1
  84. data/vendor/assets/scss/settings/_settings.scss +64 -47
  85. data/vendor/assets/scss/typography/_base.scss +4 -0
  86. data/vendor/assets/scss/typography/_print.scss +9 -5
  87. data/vendor/assets/scss/util/_breakpoint.scss +31 -25
  88. data/vendor/assets/scss/util/_color.scss +19 -0
  89. data/vendor/assets/scss/util/_flex.scss +68 -0
  90. data/vendor/assets/scss/util/_mixins.scss +13 -7
  91. data/vendor/assets/scss/util/_util.scss +1 -5
  92. data/vendor/assets/scss/util/_value.scss +9 -28
  93. metadata +51 -31
  94. data/vendor/assets/js/foundation.abide.js +0 -418
  95. data/vendor/assets/js/foundation.offcanvas.js +0 -376
  96. data/vendor/assets/js/foundation.orbit.js +0 -421
  97. data/vendor/assets/js/foundation.responsiveToggle.js +0 -106
  98. data/vendor/assets/js/foundation.reveal.js +0 -514
  99. data/vendor/assets/js/foundation.util.box.js +0 -169
  100. data/vendor/assets/js/foundation.util.nest.js +0 -63
  101. data/vendor/assets/js/foundation.util.timerAndImageLoader.js +0 -82
  102. data/vendor/assets/js/foundation.util.triggers.js +0 -224
@@ -57,12 +57,13 @@
57
57
  $columns: $grid-column-count,
58
58
  $gutter: $grid-column-gutter
59
59
  ) {
60
- @if $gutter != null {
61
- $gutter: rem-calc($gutter) / 2;
62
- }
63
- @else {
64
- @each $breakpoint, $gutter in $grid-column-responsive-gutter {
65
- $padding: rem-calc($gutter) / 2;
60
+ @include grid-column-size($columns);
61
+ float: $global-left;
62
+
63
+ // Gutters
64
+ @if type-of($gutter) == 'map' {
65
+ @each $breakpoint, $value in $gutter {
66
+ $padding: rem-calc($value) / 2;
66
67
 
67
68
  @include breakpoint($breakpoint) {
68
69
  padding-left: $padding;
@@ -70,12 +71,13 @@
70
71
  }
71
72
  }
72
73
  }
74
+ @else if type-of($gutter) == 'number' and strip-unit($gutter) > 0 {
75
+ $padding: rem-calc($gutter) / 2;
76
+ padding-left: $padding;
77
+ padding-right: $padding;
78
+ }
73
79
 
74
- @include grid-column-size($columns);
75
- float: $global-left;
76
- padding-left: $gutter;
77
- padding-right: $gutter;
78
-
80
+ // Last column alignment
79
81
  @if $grid-column-align-edge {
80
82
  &:last-child:not(:first-child) {
81
83
  float: $global-right;
@@ -6,21 +6,6 @@
6
6
  /// @group flex-grid
7
7
  ////
8
8
 
9
- $-zf-flex-justify: (
10
- 'left': flex-start,
11
- 'right': flex-end,
12
- 'center': center,
13
- 'justify': space-between,
14
- 'spaced': space-around,
15
- );
16
-
17
- $-zf-flex-align: (
18
- 'top': flex-start,
19
- 'bottom': flex-end,
20
- 'middle': center,
21
- 'stretch': stretch,
22
- );
23
-
24
9
  /// Creates a container for a flex grid row.
25
10
  ///
26
11
  /// @param {Keyword|List} $behavior [null]
@@ -36,13 +21,12 @@ $-zf-flex-align: (
36
21
  $base: true,
37
22
  $gutter: $grid-column-gutter
38
23
  ) {
39
- $behavior: -zf-get-options($behavior, nest collapse);
40
24
  $margin: auto;
41
25
 
42
- @if map-get($behavior, nest) {
26
+ @if index($behavior, nest) != null {
43
27
  @include grid-row-nest($gutter);
44
28
 
45
- @if map-get($behavior, collapse) {
29
+ @if index($behavior, collapse) != null {
46
30
  margin-left: 0;
47
31
  margin-right: 0;
48
32
  }
@@ -92,12 +76,13 @@ $-zf-flex-align: (
92
76
  $columns: null,
93
77
  $gutter: $grid-column-gutter
94
78
  ) {
95
- @if $gutter != null {
96
- $gutter: rem-calc($gutter) / 2;
97
- }
98
- @else {
99
- @each $breakpoint, $gutter in $grid-column-responsive-gutter {
100
- $padding: rem-calc($gutter) / 2;
79
+ // Base properties
80
+ flex: flex-grid-column($columns);
81
+
82
+ // Gutters
83
+ @if type-of($gutter) == 'map' {
84
+ @each $breakpoint, $value in $gutter {
85
+ $padding: rem-calc($value) / 2;
101
86
 
102
87
  @include breakpoint($breakpoint) {
103
88
  padding-left: $padding;
@@ -105,10 +90,11 @@ $-zf-flex-align: (
105
90
  }
106
91
  }
107
92
  }
108
-
109
- flex: flex-grid-column($columns);
110
- padding-left: $gutter;
111
- padding-right: $gutter;
93
+ @else if type-of($gutter) == 'number' and strip-unit($gutter) > 0 {
94
+ $padding: rem-calc($gutter) / 2;
95
+ padding-left: $padding;
96
+ padding-right: $padding;
97
+ }
112
98
 
113
99
  // max-width fixes IE 10/11 not respecting the flex-basis property
114
100
  @if $columns != null and $columns != shrink {
@@ -116,10 +102,29 @@ $-zf-flex-align: (
116
102
  }
117
103
  }
118
104
 
105
+ /// Creates a block grid for a flex grid row.
106
+ ///
107
+ /// @param {Number} $n - Number of columns to display on each row.
108
+ /// @param {String} $selector - Selector to use to target columns within the row.
109
+ @mixin flex-grid-layout(
110
+ $n,
111
+ $selector: '.column'
112
+ ) {
113
+ flex-wrap: wrap;
114
+
115
+ > #{$selector} {
116
+ $pct: percentage(1/$n);
117
+
118
+ flex: 0 0 $pct;
119
+ max-width: $pct;
120
+ }
121
+ }
122
+
119
123
  /// Changes the source order of a flex grid column. Columns with lower numbers appear first in the layout.
120
124
  /// @param {Number} $order [0] - Order number to apply.
121
125
  @mixin flex-grid-order($order: 0) {
122
- order: $order;
126
+ @warn 'This mixin is being replaced by flex-order(). flex-grid-order() will be removed in Foundation 6.3.';
127
+ @include flex-order($order);
123
128
  }
124
129
 
125
130
  /// Horizontally or vertically aligns the columns within a flex row. Apply this mixin to a flex row.
@@ -127,42 +132,16 @@ $-zf-flex-align: (
127
132
  /// @param {Keyword} $x [null] - Horizontal alignment to use. Can be `left`, `right`, `center`, `justify`, or `spaced`. Or, set it to `null` (the default) to not set horizontal alignment.
128
133
  /// @param {Keyword} $y [null] - Vertical alignment to use. Can be `top`, `bottom`, `middle`, or `stretch`. Or, set it to `null` (the default) to not set vertical alignment.
129
134
  @mixin flex-grid-row-align($x: null, $y: null) {
130
- @if $x {
131
- @if map-has-key($-zf-flex-justify, $x) {
132
- $x: map-get($-zf-flex-justify, $x);
133
- }
134
- @else {
135
- @warn 'flex-grid-row-align(): #{$x} is not a valid value for horizontal alignment. Use left, right, center, justify, or spaced.'
136
- }
137
- }
138
-
139
- @if $y {
140
- @if map-has-key($-zf-flex-align, $y) {
141
- $y: map-get($-zf-flex-align, $y);
142
- }
143
- @else {
144
- @warn 'flex-grid-row-align(): #{$y} is not a valid value for vertical alignment. Use top, bottom, middle, or stretch.'
145
- }
146
- }
147
-
148
- justify-content: $x;
149
- align-items: $y;
135
+ @warn 'This mixin is being replaced by flex-align(). flex-grid-row-align() will be removed in Foundation 6.3.';
136
+ @include flex-align($x, $y);
150
137
  }
151
138
 
152
139
  /// Vertically align a single column within a flex row. Apply this mixin to a flex column.
153
140
  ///
154
141
  /// @param {Keyword} $y [null] - Vertical alignment to use. Can be `top`, `bottom`, `middle`, or `stretch`. Or, set it to `null` (the default) to not set vertical alignment.
155
142
  @mixin flex-grid-column-align($y: null) {
156
- @if $y {
157
- @if map-has-key($-zf-flex-align, $y) {
158
- $y: map-get($-zf-flex-align, $y);
159
- }
160
- @else {
161
- @warn 'flex-grid-column-align(): #{$y} is not a valid value for alignment. Use top, bottom, middle, or stretch.'
162
- }
163
- }
164
-
165
- align-self: $y;
143
+ @warn 'This mixin is being replaced by flex-align-self(). flex-grid-column-align() will be removed in Foundation 6.3.';
144
+ @include flex-align-self($y);
166
145
  }
167
146
 
168
147
  @mixin foundation-flex-grid {
@@ -220,10 +199,21 @@ $-zf-flex-align: (
220
199
  }
221
200
  }
222
201
 
202
+ // Source ordering
223
203
  @for $i from 1 through 6 {
224
- // Source ordering
225
204
  .#{$-zf-size}-order-#{$i} {
226
- @include flex-grid-order($i);
205
+ @include flex-order($i);
206
+ }
207
+
208
+ .#{$-zf-size}-up-#{$i} {
209
+ @include flex-grid-layout($i);
210
+ }
211
+ }
212
+
213
+ // Block grid
214
+ @for $i from 1 through $block-grid-max {
215
+ .#{$-zf-size}-up-#{$i} {
216
+ @include grid-layout($i);
227
217
  }
228
218
  }
229
219
 
@@ -255,14 +245,8 @@ $-zf-flex-align: (
255
245
  }
256
246
 
257
247
  .#{$-zf-size}-uncollapse {
258
- $gutter: null;
248
+ $gutter: -zf-get-bp-val($grid-column-gutter, $-zf-size);
259
249
 
260
- @if $grid-column-gutter {
261
- $gutter: $grid-column-gutter;
262
- }
263
- @else {
264
- $gutter: -zf-get-bp-val($grid-column-responsive-gutter, $-zf-size);
265
- }
266
250
  > .column { @include grid-col-uncollapse($gutter); }
267
251
  }
268
252
  }
@@ -273,21 +257,11 @@ $-zf-flex-align: (
273
257
  max-width: 100%;
274
258
  }
275
259
 
276
- // Horizontal alignment using justify-content
277
- @each $hdir, $prop in map-remove($-zf-flex-justify, left) {
278
- .row.align-#{$hdir} {
279
- @include flex-grid-row-align($x: $hdir);
280
- }
281
- }
282
-
283
260
  // Vertical alignment using align-items and align-self
261
+ // Remove these in 6.3
284
262
  @each $vdir, $prop in $-zf-flex-align {
285
- .row.align-#{$vdir} {
286
- @include flex-grid-row-align($y: $vdir);
287
- }
288
-
289
263
  .column.align-#{$vdir} {
290
- @include flex-grid-column-align($vdir);
264
+ @include flex-align-self($vdir);
291
265
  }
292
266
  }
293
267
 
@@ -14,14 +14,10 @@ $grid-row-width: $global-width !default;
14
14
  /// @type Number
15
15
  $grid-column-count: 12 !default;
16
16
 
17
- // The amount of space between columns. Remove this in 6.2.
18
- // @type Number
19
- $grid-column-gutter: null !default;
20
-
21
- /// The amount of space between columns at different screen sizes.
22
- /// @type Map
17
+ /// The amount of space between columns at different screen sizes. To use just one size, set the variable to a number instead of a map.
18
+ /// @type Map | Length
23
19
  /// @since 6.1.0
24
- $grid-column-responsive-gutter: (
20
+ $grid-column-gutter: (
25
21
  small: 20px,
26
22
  medium: 30px,
27
23
  ) !default;
@@ -30,13 +26,29 @@ $grid-column-responsive-gutter: (
30
26
  /// @type Boolean
31
27
  $grid-column-align-edge: true !default;
32
28
 
33
- // Internal value to store the end column float direction
34
- $-zf-end-float: if($grid-column-align-edge, $global-right, $global-left);
35
-
36
29
  /// The highest number of `.x-up` classes available when using the block grid CSS.
37
30
  /// @type Number
38
31
  $block-grid-max: 8 !default;
39
32
 
33
+ // Internal value to store the end column float direction
34
+ $-zf-end-float: if($grid-column-align-edge, $global-right, $global-left);
35
+
36
+ // The last piece to transition the responsive gutter feature
37
+ // Remove this in 6.3
38
+ $grid-column-responsive-gutter: null !default;
39
+ @if $grid-column-responsive-gutter {
40
+ // scss-lint:disable DebugStatement
41
+ @warn 'Rename $grid-column-responsive-gutter to $grid-column-gutter to remove this warning.';
42
+ $grid-column-gutter: $grid-column-responsive-gutter;
43
+ }
44
+
45
+ // If a single value is passed as a gutter, convert it to a map so the code knows what to do with it
46
+ @if type-of($grid-column-gutter) == 'number' {
47
+ $grid-column-gutter: (
48
+ small: $grid-column-gutter,
49
+ );
50
+ }
51
+
40
52
  @import 'row';
41
53
  @import 'column';
42
54
  @import 'size';
@@ -31,3 +31,21 @@
31
31
  }
32
32
  }
33
33
  }
34
+
35
+ /// Adds extra CSS to block grid children so the last items in the row center automatically. Apply this to the columns, not the row.
36
+ ///
37
+ /// @param {Number} $n - Number of items that appear in each row.
38
+ @mixin grid-layout-center-last($n) {
39
+ @for $i from 1 to $n {
40
+ @if $i == 1 {
41
+ &:nth-child(#{$n}n+1):last-child {
42
+ margin-left: (100 - 100/$n * $i) / 2 * 1%;
43
+ }
44
+ }
45
+ @else {
46
+ &:nth-child(#{$n}n+1):nth-last-child(#{$i}) {
47
+ margin-left: (100 - 100/$n * $i) / 2 * 1%;
48
+ }
49
+ }
50
+ }
51
+ }
@@ -48,13 +48,12 @@
48
48
  $cf: true,
49
49
  $gutter: $grid-column-gutter
50
50
  ) {
51
- $behavior: -zf-get-options($behavior, nest collapse);
52
51
  $margin: auto;
53
52
 
54
- @if map-get($behavior, nest) {
53
+ @if index($behavior, nest) != null {
55
54
  @include grid-row-nest($gutter);
56
55
 
57
- @if map-get($behavior, collapse) {
56
+ @if index($behavior, collapse) != null {
58
57
  margin-left: 0;
59
58
  margin-right: 0;
60
59
  }
@@ -79,20 +78,17 @@
79
78
  /// Inverts the margins of a row to nest it inside of a column.
80
79
  ///
81
80
  /// @param {Map|null} $gutter [null] - Gutter value to use when inverting the margins. Set to `null` to refer to the responsive gutter settings.
82
- @mixin grid-row-nest($gutter: null) {
83
- @if $gutter != null {
84
- $margin: rem-calc($gutter) / 2 * -1;
85
- margin-left: $margin;
86
- margin-right: $margin;
81
+ @mixin grid-row-nest($gutter: $grid-column-gutter) {
82
+ @if type-of($gutter) == 'number' {
83
+ $gutter: (small: $gutter);
87
84
  }
88
- @else {
89
- @each $breakpoint, $value in $grid-column-responsive-gutter {
90
- $margin: rem-calc($value) / 2 * -1;
91
85
 
92
- @include breakpoint($breakpoint) {
93
- margin-left: $margin;
94
- margin-right: $margin;
95
- }
86
+ @each $breakpoint, $value in $gutter {
87
+ $margin: rem-calc($value) / 2 * -1;
88
+
89
+ @include breakpoint($breakpoint) {
90
+ margin-left: $margin;
91
+ margin-right: $margin;
96
92
  }
97
93
  }
98
94
  }
@@ -1,6 +1,6 @@
1
1
  // scss-lint:disable ImportantRule, SpaceAfterComma, SingleLinePerProperty
2
2
 
3
- %mui-defaults {
3
+ @mixin -motion-ui-defaults {
4
4
  transition-duration: map-get($motion-ui-speeds, default);
5
5
  transition-timing-function: map-get($motion-ui-easings, default);
6
6
  }
@@ -11,11 +11,11 @@
11
11
  // Slide
12
12
  .slide-in-down { @include mui-slide(in, down); }
13
13
  .slide-in-left { @include mui-slide(in, right); }
14
- .slide-in-up { @include mui-slide(in, bottom); }
14
+ .slide-in-up { @include mui-slide(in, up); }
15
15
  .slide-in-right { @include mui-slide(in, left); }
16
16
  .slide-out-down { @include mui-slide(out, down); }
17
17
  .slide-out-right { @include mui-slide(out, right); }
18
- .slide-out-up { @include mui-slide(out, top); }
18
+ .slide-out-up { @include mui-slide(out, up); }
19
19
  .slide-out-left { @include mui-slide(out, left); }
20
20
 
21
21
  // Fade
@@ -78,6 +78,13 @@
78
78
  .spin-ccw { @include mui-animation(spin(ccw)); }
79
79
  .wiggle { @include mui-animation(wiggle); }
80
80
 
81
+ .shake,
82
+ .spin-cw,
83
+ .spin-ccw,
84
+ .wiggle {
85
+ animation-duration: map-get($motion-ui-speeds, default);
86
+ }
87
+
81
88
  // Animation Modifiers
82
89
  // - - - - - - - - - - - - - - -
83
90
  .infinite { animation-iteration-count: infinite; }
@@ -19,8 +19,11 @@
19
19
  }
20
20
  }
21
21
 
22
+ $fromName: $from * 100;
23
+ $toName: $to * 100;
24
+
22
25
  $keyframes: (
23
- name: 'fade-#{$from}-to-#{$to}',
26
+ name: 'fade-#{$fromName}-to-#{$toName}',
24
27
  0: (opacity: $from),
25
28
  100: (opacity: $to),
26
29
  );
@@ -1,6 +1,6 @@
1
1
  /// Creates a scaling transition. A scale of `1` means the element is the same size. Larger numbers make the element bigger, while numbers less than 1 make the element smaller.
2
2
  /// @param {Number} $from [1.5] - Size to start at.
3
- /// @param {Number} $from [1] - Size to end at.
3
+ /// @param {Number} $to [1] - Size to end at.
4
4
  @function zoom(
5
5
  $from: 0,
6
6
  $to: 1
@@ -1,6 +1,6 @@
1
1
  /// Creates a sliding transition by translating the element horizontally or vertically.
2
2
  /// @param {Keyword} $state [in] - State to transition to.
3
- /// @param {Keyword} $direction [left] - Side of the element to slide from. Can be `top`, `right`, `bottom`, or `left`.
3
+ /// @param {Keyword} $direction [left] - Direction to slide to. Can be `up`, `right`, `down`, or `left`.
4
4
  /// @param {Length} $amount [100%] - Length of the slide as a percentage value.
5
5
  /// @param {Boolean} $fade [false] - Set to `true` to fade the element in or out simultaneously.
6
6
  /// @param {Duration} $duration [null] - Length (speed) of the transition.
@@ -7,7 +7,7 @@
7
7
  $timing: null,
8
8
  $delay: null
9
9
  ) {
10
- @extend %mui-defaults;
10
+ @include -motion-ui-defaults;
11
11
  transition-duration: $duration;
12
12
  transition-timing-function: $timing;
13
13
  transition-delay: $delay;