locomotivecms_wagon 2.4.0.rc2 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/generators/foundation/public/javascripts/vendor/foundation.js +10839 -6523
  3. data/generators/foundation/public/javascripts/vendor/foundation.min.js +5 -3
  4. data/generators/foundation/public/stylesheets/_settings.scss +455 -115
  5. data/generators/foundation/public/stylesheets/app.css +0 -3
  6. data/generators/foundation/public/stylesheets/app.scss +15 -6
  7. data/generators/foundation/public/stylesheets/foundation.css +4191 -1885
  8. data/generators/foundation/public/stylesheets/foundation6/_global.scss +106 -54
  9. data/generators/foundation/public/stylesheets/foundation6/components/_accordion-menu.scss +157 -14
  10. data/generators/foundation/public/stylesheets/foundation6/components/_accordion.scss +71 -28
  11. data/generators/foundation/public/stylesheets/foundation6/components/_badge.scss +17 -9
  12. data/generators/foundation/public/stylesheets/foundation6/components/_breadcrumbs.scss +33 -10
  13. data/generators/foundation/public/stylesheets/foundation6/components/_button-group.scss +168 -30
  14. data/generators/foundation/public/stylesheets/foundation6/components/_button.scss +165 -44
  15. data/generators/foundation/public/stylesheets/foundation6/components/_callout.scss +9 -18
  16. data/generators/foundation/public/stylesheets/foundation6/components/_card.scss +129 -0
  17. data/generators/foundation/public/stylesheets/foundation6/components/_close-button.scss +54 -13
  18. data/generators/foundation/public/stylesheets/foundation6/components/_drilldown.scss +108 -33
  19. data/generators/foundation/public/stylesheets/foundation6/components/_dropdown-menu.scss +215 -64
  20. data/generators/foundation/public/stylesheets/foundation6/components/_dropdown.scss +22 -7
  21. data/generators/foundation/public/stylesheets/foundation6/components/_flex-video.scss +1 -68
  22. data/generators/foundation/public/stylesheets/foundation6/components/_flex.scss +117 -0
  23. data/generators/foundation/public/stylesheets/foundation6/components/_float.scss +1 -1
  24. data/generators/foundation/public/stylesheets/foundation6/components/_label.scss +16 -8
  25. data/generators/foundation/public/stylesheets/foundation6/components/_media-object.scss +50 -10
  26. data/generators/foundation/public/stylesheets/foundation6/components/_menu-icon.scss +9 -0
  27. data/generators/foundation/public/stylesheets/foundation6/components/_menu.scss +373 -91
  28. data/generators/foundation/public/stylesheets/foundation6/components/_off-canvas.scss +418 -83
  29. data/generators/foundation/public/stylesheets/foundation6/components/_orbit.scss +17 -7
  30. data/generators/foundation/public/stylesheets/foundation6/components/_pagination.scss +77 -45
  31. data/generators/foundation/public/stylesheets/foundation6/components/_progress-bar.scss +16 -35
  32. data/generators/foundation/public/stylesheets/foundation6/components/_responsive-embed.scss +70 -0
  33. data/generators/foundation/public/stylesheets/foundation6/components/_reveal.scss +59 -34
  34. data/generators/foundation/public/stylesheets/foundation6/components/_slider.scss +17 -38
  35. data/generators/foundation/public/stylesheets/foundation6/components/_sticky.scss +5 -4
  36. data/generators/foundation/public/stylesheets/foundation6/components/_switch.scss +52 -36
  37. data/generators/foundation/public/stylesheets/foundation6/components/_table.scss +197 -79
  38. data/generators/foundation/public/stylesheets/foundation6/components/_tabs.scss +126 -67
  39. data/generators/foundation/public/stylesheets/foundation6/components/_thumbnail.scss +17 -4
  40. data/generators/foundation/public/stylesheets/foundation6/components/_title-bar.scss +61 -21
  41. data/generators/foundation/public/stylesheets/foundation6/components/_tooltip.scss +74 -24
  42. data/generators/foundation/public/stylesheets/foundation6/components/_top-bar.scss +128 -10
  43. data/generators/foundation/public/stylesheets/foundation6/components/_visibility.scss +6 -5
  44. data/generators/foundation/public/stylesheets/foundation6/forms/_checkbox.scss +14 -9
  45. data/generators/foundation/public/stylesheets/foundation6/forms/_error.scss +12 -5
  46. data/generators/foundation/public/stylesheets/foundation6/forms/_fieldset.scss +6 -6
  47. data/generators/foundation/public/stylesheets/foundation6/forms/_forms.scss +11 -9
  48. data/generators/foundation/public/stylesheets/foundation6/forms/_help-text.scss +1 -1
  49. data/generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss +82 -10
  50. data/generators/foundation/public/stylesheets/foundation6/forms/_label.scss +2 -0
  51. data/generators/foundation/public/stylesheets/foundation6/forms/_meter.scss +116 -0
  52. data/generators/foundation/public/stylesheets/foundation6/forms/_progress.scss +94 -0
  53. data/generators/foundation/public/stylesheets/foundation6/forms/_range.scss +149 -0
  54. data/generators/foundation/public/stylesheets/foundation6/forms/_select.scss +36 -14
  55. data/generators/foundation/public/stylesheets/foundation6/forms/_text.scss +53 -27
  56. data/generators/foundation/public/stylesheets/foundation6/foundation.scss +59 -17
  57. data/generators/foundation/public/stylesheets/foundation6/grid/_classes.scss +100 -56
  58. data/generators/foundation/public/stylesheets/foundation6/grid/_column.scss +22 -22
  59. data/generators/foundation/public/stylesheets/foundation6/grid/_flex-grid.scss +164 -96
  60. data/generators/foundation/public/stylesheets/foundation6/grid/_grid.scss +19 -4
  61. data/generators/foundation/public/stylesheets/foundation6/grid/_gutter.scss +61 -10
  62. data/generators/foundation/public/stylesheets/foundation6/grid/_layout.scss +49 -5
  63. data/generators/foundation/public/stylesheets/foundation6/grid/_position.scss +14 -9
  64. data/generators/foundation/public/stylesheets/foundation6/grid/_row.scss +42 -15
  65. data/generators/foundation/public/stylesheets/foundation6/motion-ui/_classes.scss +11 -4
  66. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_fade.scss +4 -1
  67. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_zoom.scss +1 -1
  68. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_slide.scss +1 -1
  69. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_transition.scss +1 -1
  70. data/generators/foundation/public/stylesheets/foundation6/prototype/_arrow.scss +36 -0
  71. data/generators/foundation/public/stylesheets/foundation6/prototype/_border-box.scss +35 -0
  72. data/generators/foundation/public/stylesheets/foundation6/prototype/_border-none.scss +35 -0
  73. data/generators/foundation/public/stylesheets/foundation6/prototype/_bordered.scss +54 -0
  74. data/generators/foundation/public/stylesheets/foundation6/prototype/_box.scss +23 -0
  75. data/generators/foundation/public/stylesheets/foundation6/prototype/_display.scss +50 -0
  76. data/generators/foundation/public/stylesheets/foundation6/prototype/_font-styling.scss +95 -0
  77. data/generators/foundation/public/stylesheets/foundation6/prototype/_list-style-type.scss +95 -0
  78. data/generators/foundation/public/stylesheets/foundation6/prototype/_overflow.scss +72 -0
  79. data/generators/foundation/public/stylesheets/foundation6/prototype/_position.scss +114 -0
  80. data/generators/foundation/public/stylesheets/foundation6/prototype/_prototype.scss +87 -0
  81. data/generators/foundation/public/stylesheets/foundation6/prototype/_relation.scss +157 -0
  82. data/generators/foundation/public/stylesheets/foundation6/prototype/_rotate.scss +31 -0
  83. data/generators/foundation/public/stylesheets/foundation6/prototype/_rounded.scss +54 -0
  84. data/generators/foundation/public/stylesheets/foundation6/prototype/_separator.scss +96 -0
  85. data/generators/foundation/public/stylesheets/foundation6/prototype/_shadow.scss +43 -0
  86. data/generators/foundation/public/stylesheets/foundation6/prototype/_sizing.scss +73 -0
  87. data/generators/foundation/public/stylesheets/foundation6/prototype/_spacing.scss +204 -0
  88. data/generators/foundation/public/stylesheets/foundation6/prototype/_text-decoration.scss +48 -0
  89. data/generators/foundation/public/stylesheets/foundation6/prototype/_text-transformation.scss +48 -0
  90. data/generators/foundation/public/stylesheets/foundation6/prototype/_text-utilities.scss +88 -0
  91. data/generators/foundation/public/stylesheets/foundation6/settings/_settings.scss +454 -116
  92. data/generators/foundation/public/stylesheets/foundation6/typography/_alignment.scss +9 -8
  93. data/generators/foundation/public/stylesheets/foundation6/typography/_base.scss +128 -55
  94. data/generators/foundation/public/stylesheets/foundation6/typography/_helpers.scss +7 -4
  95. data/generators/foundation/public/stylesheets/foundation6/typography/_print.scss +22 -9
  96. data/generators/foundation/public/stylesheets/foundation6/typography/_typography.scss +0 -2
  97. data/generators/foundation/public/stylesheets/foundation6/util/_breakpoint.scss +213 -47
  98. data/generators/foundation/public/stylesheets/foundation6/util/_color.scss +105 -17
  99. data/generators/foundation/public/stylesheets/foundation6/util/_direction.scss +31 -0
  100. data/generators/foundation/public/stylesheets/foundation6/util/_flex.scss +85 -0
  101. data/generators/foundation/public/stylesheets/foundation6/util/_math.scss +72 -0
  102. data/generators/foundation/public/stylesheets/foundation6/util/_mixins.scss +161 -38
  103. data/generators/foundation/public/stylesheets/foundation6/util/_selector.scss +5 -3
  104. data/generators/foundation/public/stylesheets/foundation6/util/_typography.scss +26 -0
  105. data/generators/foundation/public/stylesheets/foundation6/util/_unit.scss +100 -17
  106. data/generators/foundation/public/stylesheets/foundation6/util/_util.scss +4 -5
  107. data/generators/foundation/public/stylesheets/foundation6/util/_value.scss +68 -25
  108. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/_normalize.scss +3 -0
  109. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  110. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  111. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  112. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  113. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
  114. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  115. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  116. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  117. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  118. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  119. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  120. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_cell.scss +169 -0
  121. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_classes.scss +476 -0
  122. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_collapse.scss +74 -0
  123. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_frame.scss +85 -0
  124. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_grid.scss +35 -0
  125. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_gutters.scss +45 -0
  126. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_layout.scss +33 -0
  127. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_position.scss +28 -0
  128. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_xy-grid.scss +51 -0
  129. data/lib/locomotive/wagon/tools/styled_yaml.rb +1 -1
  130. data/lib/locomotive/wagon/version.rb +1 -1
  131. data/locomotivecms_wagon.gemspec +2 -2
  132. data/spec/fixtures/cassettes/authenticate.yml +102 -48
  133. data/spec/fixtures/cassettes/delete.yml +519 -259
  134. data/spec/fixtures/cassettes/push.yml +2724 -1486
  135. metadata +61 -10
  136. data/generators/foundation/public/stylesheets/foundation6/motion-ui.scss +0 -4
  137. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize.scss +0 -424
@@ -6,26 +6,77 @@
6
6
  /// @group grid
7
7
  ////
8
8
 
9
- /// Collapse the gutters on a column by removing the padding.
10
- @mixin grid-column-collapse() {
11
- padding-left: 0;
12
- padding-right: 0;
9
+ /// Set the gutters on a column
10
+ /// @param {Number|Keyword} $gutter [auto]
11
+ /// Spacing between columns, accepts multiple values:
12
+ /// - A single value will make the gutter that exact size.
13
+ /// - A breakpoint name will make the gutter the corresponding size in the $gutters map.
14
+ /// - "auto" will make the gutter responsive, using the $gutters map values.
15
+ /// @param {Number|Map} $gutters [$grid-column-gutter] - Gutter map or single value to use. Responsive gutter settings by default.
16
+ @mixin grid-column-gutter(
17
+ $gutter: auto,
18
+ $gutters: $grid-column-gutter
19
+ ) {
20
+ @include -zf-breakpoint-value($gutter, $gutters) {
21
+ $padding: rem-calc($-zf-bp-value) / 2;
22
+
23
+ padding-right: $padding;
24
+ padding-left: $padding;
25
+ }
26
+ }
27
+
28
+ /// 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.
29
+ @mixin grid-column-collapse {
30
+ @include grid-column-gutter(0);
13
31
  }
14
32
 
15
33
  /// Un-collapse the gutters on a column by re-adding the padding.
16
- @mixin grid-column-uncollapse() {
17
- padding-left: $grid-column-gutter;
18
- padding-right: $grid-column-gutter;
34
+ ///
35
+ /// @param {Number} $gutter [$grid-column-gutter] - Spacing between columns.
36
+ @mixin grid-column-uncollapse($gutter: $grid-column-gutter) {
37
+ @warn 'This mixin is being replaced by grid-column-gutter(). grid-column-uncollapse() will be removed in Foundation 6.4.';
38
+ @include grid-column-gutter($gutters: $gutter);
39
+ }
40
+
41
+ /// Shorthand for `grid-column-gutter()`.
42
+ /// @alias grid-column-gutter
43
+ @mixin grid-col-gutter(
44
+ $gutter: auto,
45
+ $gutters: $grid-column-gutter
46
+ ) {
47
+ @include grid-column-gutter($gutter, $gutters);
19
48
  }
20
49
 
21
50
  /// Shorthand for `grid-column-collapse()`.
22
51
  /// @alias grid-column-collapse
23
- @mixin grid-col-collapse() {
52
+ @mixin grid-col-collapse {
24
53
  @include grid-column-collapse;
25
54
  }
26
55
 
27
56
  /// Shorthand for `grid-column-uncollapse()`.
28
57
  /// @alias grid-column-uncollapse
29
- @mixin grid-col-uncollapse() {
30
- @include grid-column-uncollapse;
58
+ @mixin grid-col-uncollapse($gutter: $grid-column-gutter) {
59
+ @warn 'This mixin is being replaced by grid-col-gutter(). grid-col-uncollapse() will be removed in Foundation 6.4.';
60
+ @include grid-column-uncollapse($gutter);
61
+ }
62
+
63
+ /// Sets bottom margin on grid columns to match gutters
64
+ /// @param {Number|Keyword} $margin [auto]
65
+ /// The bottom margin on grid columns, accepts multiple values:
66
+ /// - A single value will make the margin that exact size.
67
+ /// - A breakpoint name will make the margin the corresponding size in the $margins map.
68
+ /// - "auto" will make the margin responsive, using the $margins map values.
69
+ /// @param {Number|Map} $margins [$grid-column-gutter] - Map or single value to use. Responsive gutter settings by default.
70
+ @mixin grid-column-margin (
71
+ $margin: auto,
72
+ $margins: $grid-column-gutter
73
+ ) {
74
+ @include -zf-breakpoint-value($margin, $margins) {
75
+ $margin-bottom: rem-calc($-zf-bp-value);
76
+ margin-bottom: $margin-bottom;
77
+
78
+ > :last-child {
79
+ margin-bottom: 0;
80
+ }
81
+ }
31
82
  }
@@ -7,15 +7,41 @@
7
7
  ////
8
8
 
9
9
  /// Sizes child elements so that `$n` number of items appear on each row.
10
+ ///
10
11
  /// @param {Number} $n - Number of elements to display per row.
11
- /// @param {String} $selector ['.column, .columns'] - Selector(s) to use for child elements.
12
+ /// @param {String} $selector ['.column'] - Selector(s) to use for child elements.
13
+ /// @param {Number|List} $gutter
14
+ /// The gutter to apply to child elements. Accepts multiple values:
15
+ /// - $grid-column-gutter will use the values in the $grid-column-gutter map, including breakpoint sizes.
16
+ /// - A fixed numeric value will apply this gutter to all breakpoints.
12
17
  @mixin grid-layout(
13
18
  $n,
14
- $selector: '.column'
19
+ $selector: '.column',
20
+ $gutter: null
15
21
  ) {
16
- #{$selector} {
17
- width: percentage(1/$n);
22
+ & > #{$selector} {
18
23
  float: $global-left;
24
+ width: percentage(1/$n);
25
+
26
+ // If a $gutter value is passed
27
+ @if($gutter) {
28
+ // Gutters
29
+ @if type-of($gutter) == 'map' {
30
+ @each $breakpoint, $value in $gutter {
31
+ $padding: rem-calc($value) / 2;
32
+
33
+ @include breakpoint($breakpoint) {
34
+ padding-right: $padding;
35
+ padding-left: $padding;
36
+ }
37
+ }
38
+ }
39
+ @else if type-of($gutter) == 'number' and strip-unit($gutter) > 0 {
40
+ $padding: rem-calc($gutter) / 2;
41
+ padding-right: $padding;
42
+ padding-left: $padding;
43
+ }
44
+ }
19
45
 
20
46
  &:nth-of-type(1n) {
21
47
  clear: none;
@@ -26,7 +52,25 @@
26
52
  }
27
53
 
28
54
  &:last-child {
29
- float: left;
55
+ float: $global-left;
56
+ }
57
+ }
58
+ }
59
+
60
+ /// Adds extra CSS to block grid children so the last items in the row center automatically. Apply this to the columns, not the row.
61
+ ///
62
+ /// @param {Number} $n - Number of items that appear in each row.
63
+ @mixin grid-layout-center-last($n) {
64
+ @for $i from 1 to $n {
65
+ @if $i == 1 {
66
+ &:nth-child(#{$n}n+1):last-child {
67
+ margin-left: (100 - 100/$n * $i) / 2 * 1%;
68
+ }
69
+ }
70
+ @else {
71
+ &:nth-child(#{$n}n+1):nth-last-child(#{$i}) {
72
+ margin-left: (100 - 100/$n * $i) / 2 * 1%;
73
+ }
30
74
  }
31
75
  }
32
76
  }
@@ -7,7 +7,8 @@
7
7
  ////
8
8
 
9
9
  /// Reposition a column.
10
- /// @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.
10
+ ///
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.
11
12
  @mixin grid-column-position($position) {
12
13
  @if type-of($position) == 'number' {
13
14
  $offset: percentage($position / $grid-column-count);
@@ -16,9 +17,12 @@
16
17
  #{$global-left}: $offset;
17
18
  }
18
19
  @else if $position == center {
19
- float: none;
20
- margin-left: auto;
20
+ &, &:last-child:not(:first-child) {
21
+ float: none;
22
+ clear: both;
23
+ }
21
24
  margin-right: auto;
25
+ margin-left: auto;
22
26
  }
23
27
  @else {
24
28
  @warn 'Wrong syntax for grid-column-position(). Enter a positive or negative number, or center.';
@@ -26,10 +30,11 @@
26
30
  }
27
31
 
28
32
  /// Reset a position definition.
29
- @mixin grid-column-unposition() {
33
+ @mixin grid-column-unposition {
30
34
  position: static;
31
- margin-left: 0;
35
+ float: $global-left;
32
36
  margin-right: 0;
37
+ margin-left: 0;
33
38
  }
34
39
 
35
40
  /// Offsets a column to the right by `$n` columns.
@@ -39,9 +44,9 @@
39
44
  }
40
45
 
41
46
  /// Disable the default behavior of the last column in a row aligning to the opposite edge.
42
- @mixin grid-column-end() {
47
+ @mixin grid-column-end {
43
48
  // This extra specificity is required for the property to be applied
44
- &:last-child {
49
+ &:last-child:last-child {
45
50
  float: $global-left;
46
51
  }
47
52
  }
@@ -54,7 +59,7 @@
54
59
 
55
60
  /// Shorthand for `grid-column-unposition()`.
56
61
  /// @alias grid-column-unposition
57
- @mixin grid-col-unpos() {
62
+ @mixin grid-col-unpos {
58
63
  @include grid-column-unposition;
59
64
  }
60
65
 
@@ -66,6 +71,6 @@
66
71
 
67
72
  /// Shorthand for `grid-column-end()`.
68
73
  /// @alias grid-column-end
69
- @mixin grid-col-end() {
74
+ @mixin grid-col-end {
70
75
  @include grid-column-end;
71
76
  }
@@ -8,16 +8,17 @@
8
8
 
9
9
  /// Change the behavior of columns defined inside this mixin to use a different column count.
10
10
  /// @content
11
+ ///
11
12
  /// @param {Number} $columns - Number of columns to use.
12
- /// @param {Booleam} $root [false]
13
+ /// @param {Boolean} $root [false]
13
14
  /// If `false`, selectors inside this mixin will nest inside the parent selector.
14
- /// If `tru`, selectors will not nest.
15
+ /// If `true`, selectors will not nest.
15
16
  @mixin grid-context(
16
17
  $columns,
17
18
  $root: false
18
19
  ) {
19
20
  // Store the current column count so it can be re-set later
20
- $old-grid-column-count: $columns;
21
+ $old-grid-column-count: $grid-column-count;
21
22
  $grid-column-count: $columns !global;
22
23
 
23
24
  @if $root {
@@ -33,40 +34,66 @@
33
34
 
34
35
  /// Creates a grid row.
35
36
  /// @content
37
+ ///
36
38
  /// @param {Number} $columns [null] - Column count for this row. `null` will use the default column count.
37
39
  /// @param {Keywords} $behavior [null]
38
40
  /// Modifications to the default grid styles. `nest` indicates the row will be placed inside another row. `collapse` indicates that the columns inside this row will not have padding. `nest collapse` combines both behaviors.
39
- /// @param {Number} $width [$grid-row-width] - Maximum width of the row.
41
+ /// @param {Keyword|Number} $size [$grid-row-width] Maximum size of the row. Set to `expand` to make the row taking the full width.
42
+ /// @param {Boolean} $cf [true] - Whether or not to include a clearfix.
43
+ /// @param {Number|Map} $gutters [$grid-column-gutter] - Gutter map or single value to use when inverting margins. Responsive gutter settings by default.
40
44
  @mixin grid-row(
41
45
  $columns: null,
42
46
  $behavior: null,
43
- $width: $grid-row-width,
44
- $cf: true
47
+ $size: $grid-row-width,
48
+ $cf: true,
49
+ $gutters: $grid-column-gutter
45
50
  ) {
46
- $behavior: -zf-get-options($behavior, nest collapse);
47
51
  $margin: auto;
48
52
 
49
- @if map-get($behavior, nest) {
50
- $margin: rem-calc($grid-column-gutter) / 2 * -1;
53
+ @if index($behavior, nest) != null {
54
+ @include grid-row-nest($gutters);
51
55
 
52
- @if map-get($behavior, collapse) {
53
- $margin: 0;
56
+ @if index($behavior, collapse) != null {
57
+ margin-right: 0;
58
+ margin-left: 0;
54
59
  }
55
60
  }
56
61
  @else {
57
- max-width: $width;
62
+ @include grid-row-size($size);
63
+ margin-right: auto;
64
+ margin-left: auto;
58
65
  }
59
66
 
60
67
  @if $cf {
61
68
  @include clearfix;
62
69
  }
63
70
 
64
- margin-left: $margin;
65
- margin-right: $margin;
66
-
67
71
  @if $columns != null {
68
72
  @include grid-context($columns) {
69
73
  @content;
70
74
  }
71
75
  }
72
76
  }
77
+
78
+ /// Inverts the margins of a row to nest it inside of a column.
79
+ ///
80
+ /// @param {Number|Map} $gutters [$grid-column-gutter] - Gutter map or single value to use when inverting margins. Responsive gutter settings by default.
81
+ @mixin grid-row-nest($gutters: $grid-column-gutter) {
82
+ @include -zf-each-breakpoint {
83
+ $margin: rem-calc(-zf-get-bp-val($gutters, $-zf-size)) / 2 * -1;
84
+
85
+ margin-right: $margin;
86
+ margin-left: $margin;
87
+ }
88
+ }
89
+
90
+ /// Set a grid row size
91
+ ///
92
+ /// @param {Keyword|Number} $size [$grid-row-width] Maximum size of the row. Set to `expand` to make the row taking the full width.
93
+ @mixin grid-row-size($size: $grid-row-width) {
94
+ @if $size == expand {
95
+ $size: none;
96
+ }
97
+
98
+ max-width: $size;
99
+ }
@@ -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
- .slide-out-down { @include mui-slide(out, bottom); }
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;
@@ -0,0 +1,36 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype-arrow
7
+ ////
8
+
9
+ /// Map containing all the `arrow` direction
10
+ /// @type Map
11
+ $prototype-arrow-directions: (
12
+ down,
13
+ up,
14
+ right,
15
+ left
16
+ ) !default;
17
+
18
+ /// Width of the Arrow, `0.4375rem` by default.
19
+ /// @type Number
20
+ $prototype-arrow-size: 0.4375rem;
21
+
22
+ /// Color of the Arrow, `$black` by default.
23
+ /// @type Color
24
+ $prototype-arrow-color: $black;
25
+
26
+ @mixin foundation-prototype-arrow {
27
+ @each $prototype-arrow-direction in $prototype-arrow-directions {
28
+ .arrow-#{$prototype-arrow-direction} {
29
+ @include css-triangle(
30
+ $prototype-arrow-size,
31
+ $prototype-arrow-color,
32
+ $prototype-arrow-direction
33
+ );
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,35 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype-border-box
7
+ ////
8
+
9
+ /// Responsive breakpoints for border box.
10
+ /// @type Boolean
11
+ $prototype-border-box-breakpoints: $global-prototype-breakpoints !default;
12
+
13
+ /// Border box utility
14
+ @mixin border-box {
15
+ box-sizing: border-box !important;
16
+ }
17
+
18
+ @mixin foundation-prototype-border-box {
19
+ .border-box {
20
+ @include border-box;
21
+ }
22
+
23
+ @if ($prototype-border-box-breakpoints) {
24
+ // Loop through Responsive Breakpoints
25
+ @each $size in $breakpoint-classes {
26
+ @include breakpoint($size) {
27
+ @if $size != $-zf-zero-breakpoint {
28
+ .#{$size}-border-box {
29
+ @include border-box;
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }