dta_rapid 0.3.5 → 0.4.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 (150) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -2
  3. data/_includes/buttons/link-button.html +1 -7
  4. data/_includes/buttons/upload-button.html +26 -4
  5. data/_includes/callouts/calendar-callout.html +5 -0
  6. data/_includes/callouts/container-callout.html +5 -0
  7. data/_includes/callouts/paragraph-callout.html +1 -0
  8. data/_includes/forms/control-input.html +26 -0
  9. data/_includes/forms/date-field.html +2 -1
  10. data/_includes/forms/text-field.html +5 -5
  11. data/_includes/navigation/breadcrumbs.html +10 -12
  12. data/_includes/navigation/inpage.html +8 -0
  13. data/_layouts/default.html +10 -7
  14. data/assets/style.scss +9 -30
  15. metadata +9 -139
  16. data/_includes/forms/radio-field.html +0 -20
  17. data/_includes/typography/callout.html +0 -1
  18. data/_layouts/conversational.html +0 -19
  19. data/_sass/_colors.scss +0 -76
  20. data/_sass/_easings.scss +0 -26
  21. data/_sass/_forms.scss +0 -79
  22. data/_sass/_grid-settings.scss +0 -143
  23. data/_sass/_mixins.scss +0 -6
  24. data/_sass/_normalize.scss +0 -424
  25. data/_sass/_print.scss +0 -77
  26. data/_sass/_typography.scss +0 -118
  27. data/_sass/_validation.scss +0 -8
  28. data/_sass/_variables.scss +0 -35
  29. data/_sass/components/_accordian.scss +0 -68
  30. data/_sass/components/_badge.scss +0 -11
  31. data/_sass/components/_breadcrumbs.scss +0 -57
  32. data/_sass/components/_button.scss +0 -72
  33. data/_sass/components/_callout.scss +0 -25
  34. data/_sass/components/_multiple-choice.scss +0 -60
  35. data/_sass/components/_scroll-form.scss +0 -49
  36. data/_sass/components/_table.scss +0 -25
  37. data/_sass/components/_text-field.scss +0 -7
  38. data/_sass/components/_upload-button.scss +0 -7
  39. data/_sass/mixins/_clearfix.scss +0 -7
  40. data/_sass/mixins/_ellipsis.scss +0 -8
  41. data/_sass/mixins/_flex-layout.scss +0 -14
  42. data/_sass/mixins/_omega-reset.scss +0 -11
  43. data/_sass/mixins/_prefixer.scss +0 -35
  44. data/_sass/mixins/_wrapper-padding.scss +0 -11
  45. data/_sass/vendor/bourbon/_bourbon-deprecate.scss +0 -19
  46. data/_sass/vendor/bourbon/_bourbon-deprecated-upcoming.scss +0 -425
  47. data/_sass/vendor/bourbon/_bourbon.scss +0 -90
  48. data/_sass/vendor/bourbon/addons/_border-color.scss +0 -29
  49. data/_sass/vendor/bourbon/addons/_border-radius.scss +0 -48
  50. data/_sass/vendor/bourbon/addons/_border-style.scss +0 -28
  51. data/_sass/vendor/bourbon/addons/_border-width.scss +0 -28
  52. data/_sass/vendor/bourbon/addons/_buttons.scss +0 -69
  53. data/_sass/vendor/bourbon/addons/_clearfix.scss +0 -25
  54. data/_sass/vendor/bourbon/addons/_ellipsis.scss +0 -30
  55. data/_sass/vendor/bourbon/addons/_font-stacks.scss +0 -31
  56. data/_sass/vendor/bourbon/addons/_hide-text.scss +0 -27
  57. data/_sass/vendor/bourbon/addons/_margin.scss +0 -29
  58. data/_sass/vendor/bourbon/addons/_padding.scss +0 -29
  59. data/_sass/vendor/bourbon/addons/_position.scss +0 -51
  60. data/_sass/vendor/bourbon/addons/_prefixer.scss +0 -66
  61. data/_sass/vendor/bourbon/addons/_retina-image.scss +0 -27
  62. data/_sass/vendor/bourbon/addons/_size.scss +0 -51
  63. data/_sass/vendor/bourbon/addons/_text-inputs.scss +0 -118
  64. data/_sass/vendor/bourbon/addons/_timing-functions.scss +0 -34
  65. data/_sass/vendor/bourbon/addons/_triangle.scss +0 -63
  66. data/_sass/vendor/bourbon/addons/_word-wrap.scss +0 -29
  67. data/_sass/vendor/bourbon/css3/_animation.scss +0 -61
  68. data/_sass/vendor/bourbon/css3/_appearance.scss +0 -5
  69. data/_sass/vendor/bourbon/css3/_backface-visibility.scss +0 -5
  70. data/_sass/vendor/bourbon/css3/_background-image.scss +0 -44
  71. data/_sass/vendor/bourbon/css3/_background.scss +0 -57
  72. data/_sass/vendor/bourbon/css3/_border-image.scss +0 -61
  73. data/_sass/vendor/bourbon/css3/_calc.scss +0 -6
  74. data/_sass/vendor/bourbon/css3/_columns.scss +0 -67
  75. data/_sass/vendor/bourbon/css3/_filter.scss +0 -6
  76. data/_sass/vendor/bourbon/css3/_flex-box.scss +0 -327
  77. data/_sass/vendor/bourbon/css3/_font-face.scss +0 -29
  78. data/_sass/vendor/bourbon/css3/_font-feature-settings.scss +0 -6
  79. data/_sass/vendor/bourbon/css3/_hidpi-media-query.scss +0 -12
  80. data/_sass/vendor/bourbon/css3/_hyphens.scss +0 -6
  81. data/_sass/vendor/bourbon/css3/_image-rendering.scss +0 -15
  82. data/_sass/vendor/bourbon/css3/_keyframes.scss +0 -38
  83. data/_sass/vendor/bourbon/css3/_linear-gradient.scss +0 -40
  84. data/_sass/vendor/bourbon/css3/_perspective.scss +0 -12
  85. data/_sass/vendor/bourbon/css3/_placeholder.scss +0 -10
  86. data/_sass/vendor/bourbon/css3/_radial-gradient.scss +0 -40
  87. data/_sass/vendor/bourbon/css3/_selection.scss +0 -44
  88. data/_sass/vendor/bourbon/css3/_text-decoration.scss +0 -27
  89. data/_sass/vendor/bourbon/css3/_transform.scss +0 -21
  90. data/_sass/vendor/bourbon/css3/_transition.scss +0 -81
  91. data/_sass/vendor/bourbon/css3/_user-select.scss +0 -5
  92. data/_sass/vendor/bourbon/functions/_assign-inputs.scss +0 -16
  93. data/_sass/vendor/bourbon/functions/_contains-falsy.scss +0 -25
  94. data/_sass/vendor/bourbon/functions/_contains.scss +0 -31
  95. data/_sass/vendor/bourbon/functions/_is-length.scss +0 -16
  96. data/_sass/vendor/bourbon/functions/_is-light.scss +0 -26
  97. data/_sass/vendor/bourbon/functions/_is-number.scss +0 -16
  98. data/_sass/vendor/bourbon/functions/_is-size.scss +0 -18
  99. data/_sass/vendor/bourbon/functions/_modular-scale.scss +0 -74
  100. data/_sass/vendor/bourbon/functions/_px-to-em.scss +0 -24
  101. data/_sass/vendor/bourbon/functions/_px-to-rem.scss +0 -26
  102. data/_sass/vendor/bourbon/functions/_shade.scss +0 -24
  103. data/_sass/vendor/bourbon/functions/_strip-units.scss +0 -22
  104. data/_sass/vendor/bourbon/functions/_tint.scss +0 -24
  105. data/_sass/vendor/bourbon/functions/_transition-property-name.scss +0 -37
  106. data/_sass/vendor/bourbon/functions/_unpack.scss +0 -32
  107. data/_sass/vendor/bourbon/helpers/_convert-units.scss +0 -26
  108. data/_sass/vendor/bourbon/helpers/_directional-values.scss +0 -108
  109. data/_sass/vendor/bourbon/helpers/_font-source-declaration.scss +0 -53
  110. data/_sass/vendor/bourbon/helpers/_gradient-positions-parser.scss +0 -24
  111. data/_sass/vendor/bourbon/helpers/_linear-angle-parser.scss +0 -35
  112. data/_sass/vendor/bourbon/helpers/_linear-gradient-parser.scss +0 -51
  113. data/_sass/vendor/bourbon/helpers/_linear-positions-parser.scss +0 -77
  114. data/_sass/vendor/bourbon/helpers/_linear-side-corner-parser.scss +0 -41
  115. data/_sass/vendor/bourbon/helpers/_radial-arg-parser.scss +0 -74
  116. data/_sass/vendor/bourbon/helpers/_radial-gradient-parser.scss +0 -55
  117. data/_sass/vendor/bourbon/helpers/_radial-positions-parser.scss +0 -28
  118. data/_sass/vendor/bourbon/helpers/_render-gradients.scss +0 -31
  119. data/_sass/vendor/bourbon/helpers/_shape-size-stripper.scss +0 -15
  120. data/_sass/vendor/bourbon/helpers/_str-to-num.scss +0 -55
  121. data/_sass/vendor/bourbon/settings/_asset-pipeline.scss +0 -7
  122. data/_sass/vendor/bourbon/settings/_deprecation-warnings.scss +0 -8
  123. data/_sass/vendor/bourbon/settings/_prefixer.scss +0 -9
  124. data/_sass/vendor/bourbon/settings/_px-to-em.scss +0 -1
  125. data/_sass/vendor/neat/_neat-helpers.scss +0 -8
  126. data/_sass/vendor/neat/_neat.scss +0 -23
  127. data/_sass/vendor/neat/functions/_new-breakpoint.scss +0 -49
  128. data/_sass/vendor/neat/functions/_private.scss +0 -114
  129. data/_sass/vendor/neat/grid/_box-sizing.scss +0 -15
  130. data/_sass/vendor/neat/grid/_direction-context.scss +0 -33
  131. data/_sass/vendor/neat/grid/_display-context.scss +0 -28
  132. data/_sass/vendor/neat/grid/_fill-parent.scss +0 -22
  133. data/_sass/vendor/neat/grid/_media.scss +0 -92
  134. data/_sass/vendor/neat/grid/_omega.scss +0 -87
  135. data/_sass/vendor/neat/grid/_outer-container.scss +0 -38
  136. data/_sass/vendor/neat/grid/_pad.scss +0 -25
  137. data/_sass/vendor/neat/grid/_private.scss +0 -35
  138. data/_sass/vendor/neat/grid/_row.scss +0 -52
  139. data/_sass/vendor/neat/grid/_shift.scss +0 -50
  140. data/_sass/vendor/neat/grid/_span-columns.scss +0 -94
  141. data/_sass/vendor/neat/grid/_to-deprecate.scss +0 -97
  142. data/_sass/vendor/neat/grid/_visual-grid.scss +0 -42
  143. data/_sass/vendor/neat/settings/_disable-warnings.scss +0 -13
  144. data/_sass/vendor/neat/settings/_grid.scss +0 -51
  145. data/_sass/vendor/neat/settings/_visual-grid.scss +0 -27
  146. data/assets/js/bundle.js +0 -424
  147. data/assets/js/main.js +0 -5
  148. data/assets/js/questions.js +0 -22
  149. data/assets/js/scroll-form.js +0 -52
  150. data/assets/js/scrolling.js +0 -22
@@ -1,53 +0,0 @@
1
- // Used for creating the source string for fonts using @font-face
2
- // Reference: http://goo.gl/Ru1bKP
3
-
4
- @function font-url-prefixer($asset-pipeline) {
5
- @if $output-bourbon-deprecation-warnings == true {
6
- @warn "[Bourbon] [Deprecation] `font-url-prefixer` is deprecated and " +
7
- "will be removed in 5.0.0.";
8
- }
9
-
10
- @if $asset-pipeline == true {
11
- @return font-url;
12
- } @else {
13
- @return url;
14
- }
15
- }
16
-
17
- @function font-source-declaration(
18
- $font-family,
19
- $file-path,
20
- $asset-pipeline,
21
- $file-formats,
22
- $font-url) {
23
-
24
- @if $output-bourbon-deprecation-warnings == true {
25
- @warn "[Bourbon] [Deprecation] `font-source-declaration` is deprecated " +
26
- "and will be removed in 5.0.0.";
27
- }
28
-
29
- $src: ();
30
-
31
- $formats-map: (
32
- eot: "#{$file-path}.eot?#iefix" format("embedded-opentype"),
33
- woff2: "#{$file-path}.woff2" format("woff2"),
34
- woff: "#{$file-path}.woff" format("woff"),
35
- ttf: "#{$file-path}.ttf" format("truetype"),
36
- svg: "#{$file-path}.svg##{$font-family}" format("svg")
37
- );
38
-
39
- @each $key, $values in $formats-map {
40
- @if contains($file-formats, $key) {
41
- $file-path: nth($values, 1);
42
- $font-format: nth($values, 2);
43
-
44
- @if $asset-pipeline == true {
45
- $src: append($src, font-url($file-path) $font-format, comma);
46
- } @else {
47
- $src: append($src, url($file-path) $font-format, comma);
48
- }
49
- }
50
- }
51
-
52
- @return $src;
53
- }
@@ -1,24 +0,0 @@
1
- @function _gradient-positions-parser($gradient-type, $gradient-positions) {
2
- @if $output-bourbon-deprecation-warnings == true {
3
- @warn "[Bourbon] [Deprecation] `_gradient-positions-parser` is " +
4
- "deprecated and will be removed in 5.0.0.";
5
- }
6
-
7
- $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
8
- $output-bourbon-deprecation-warnings: false !global;
9
-
10
- @if $gradient-positions
11
- and ($gradient-type == linear)
12
- and (type-of($gradient-positions) != color) {
13
- $gradient-positions: _linear-positions-parser($gradient-positions);
14
- }
15
- @else if $gradient-positions
16
- and ($gradient-type == radial)
17
- and (type-of($gradient-positions) != color) {
18
- $gradient-positions: _radial-positions-parser($gradient-positions);
19
- }
20
-
21
- $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
22
-
23
- @return $gradient-positions;
24
- }
@@ -1,35 +0,0 @@
1
- // Private function for linear-gradient-parser
2
- @function _linear-angle-parser($image, $first-val, $prefix, $suffix) {
3
- @if $output-bourbon-deprecation-warnings == true {
4
- @warn "[Bourbon] [Deprecation] `_linear-angle-parser` is " +
5
- "deprecated and will be removed in 5.0.0.";
6
- }
7
-
8
- $offset: null;
9
- $unit-short: str-slice($first-val, str-length($first-val) - 2, str-length($first-val));
10
- $unit-long: str-slice($first-val, str-length($first-val) - 3, str-length($first-val));
11
-
12
- @if ($unit-long == "grad") or
13
- ($unit-long == "turn") {
14
- $offset: if($unit-long == "grad", -100grad * 3, -0.75turn);
15
- }
16
-
17
- @else if ($unit-short == "deg") or
18
- ($unit-short == "rad") {
19
- $offset: if($unit-short == "deg", -90 * 3, 1.6rad);
20
- }
21
-
22
- @if $offset {
23
- $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
24
- $output-bourbon-deprecation-warnings: false !global;
25
-
26
- $num: _str-to-num($first-val);
27
-
28
- $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
29
-
30
- @return (
31
- webkit-image: -webkit- + $prefix + ($offset - $num) + $suffix,
32
- spec-image: $image
33
- );
34
- }
35
- }
@@ -1,51 +0,0 @@
1
- @function _linear-gradient-parser($image) {
2
- @if $output-bourbon-deprecation-warnings == true {
3
- @warn "[Bourbon] [Deprecation] `_linear-gradient-parser` is " +
4
- "deprecated and will be removed in 5.0.0.";
5
- }
6
-
7
- $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
8
- $output-bourbon-deprecation-warnings: false !global;
9
-
10
- $image: unquote($image);
11
- $gradients: ();
12
- $start: str-index($image, "(");
13
- $end: str-index($image, ",");
14
- $first-val: str-slice($image, $start + 1, $end - 1);
15
-
16
- $prefix: str-slice($image, 1, $start);
17
- $suffix: str-slice($image, $end, str-length($image));
18
-
19
- $has-multiple-vals: str-index($first-val, " ");
20
- $has-single-position: unquote(_position-flipper($first-val) + "");
21
- $has-angle: is-number(str-slice($first-val, 1, 1));
22
-
23
- @if $has-multiple-vals {
24
- $gradients: _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals);
25
- }
26
-
27
- @else if $has-single-position != "" {
28
- $pos: unquote($has-single-position + "");
29
-
30
- $gradients: (
31
- webkit-image: -webkit- + $image,
32
- spec-image: $prefix + "to " + $pos + $suffix
33
- );
34
- }
35
-
36
- @else if $has-angle {
37
- // Rotate degree for webkit
38
- $gradients: _linear-angle-parser($image, $first-val, $prefix, $suffix);
39
- }
40
-
41
- @else {
42
- $gradients: (
43
- webkit-image: -webkit- + $image,
44
- spec-image: $image
45
- );
46
- }
47
-
48
- $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
49
-
50
- @return $gradients;
51
- }
@@ -1,77 +0,0 @@
1
- @function _linear-positions-parser($pos) {
2
- @if $output-bourbon-deprecation-warnings == true {
3
- @warn "[Bourbon] [Deprecation] `_linear-positions-parser` is " +
4
- "deprecated and will be removed in 5.0.0.";
5
- }
6
-
7
- $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
8
- $output-bourbon-deprecation-warnings: false !global;
9
-
10
- $type: type-of(nth($pos, 1));
11
- $spec: null;
12
- $degree: null;
13
- $side: null;
14
- $corner: null;
15
- $length: length($pos);
16
- // Parse Side and corner positions
17
- @if ($length > 1) {
18
- @if nth($pos, 1) == "to" { // Newer syntax
19
- $side: nth($pos, 2);
20
-
21
- @if $length == 2 { // eg. to top
22
- // Swap for backwards compatibility
23
- $degree: _position-flipper(nth($pos, 2));
24
- }
25
- @else if $length == 3 { // eg. to top left
26
- $corner: nth($pos, 3);
27
- }
28
- }
29
- @else if $length == 2 { // Older syntax ("top left")
30
- $side: _position-flipper(nth($pos, 1));
31
- $corner: _position-flipper(nth($pos, 2));
32
- }
33
-
34
- @if ("#{$side} #{$corner}" == "left top") or ("#{$side} #{$corner}" == "top left") {
35
- $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
36
- }
37
- @else if ("#{$side} #{$corner}" == "right top") or ("#{$side} #{$corner}" == "top right") {
38
- $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
39
- }
40
- @else if ("#{$side} #{$corner}" == "right bottom") or ("#{$side} #{$corner}" == "bottom right") {
41
- $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
42
- }
43
- @else if ("#{$side} #{$corner}" == "left bottom") or ("#{$side} #{$corner}" == "bottom left") {
44
- $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
45
- }
46
- $spec: to $side $corner;
47
- }
48
- @else if $length == 1 {
49
- // Swap for backwards compatibility
50
- @if $type == string {
51
- $degree: $pos;
52
- $spec: to _position-flipper($pos);
53
- }
54
- @else {
55
- $degree: -270 - $pos; //rotate the gradient opposite from spec
56
- $spec: $pos;
57
- }
58
- }
59
- $degree: unquote($degree + ",");
60
- $spec: unquote($spec + ",");
61
-
62
- $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
63
-
64
- @return $degree $spec;
65
- }
66
-
67
- @function _position-flipper($pos) {
68
- @if $output-bourbon-deprecation-warnings == true {
69
- @warn "[Bourbon] [Deprecation] `_position-flipper` is " +
70
- "deprecated and will be removed in 5.0.0.";
71
- }
72
-
73
- @return if($pos == left, right, null)
74
- if($pos == right, left, null)
75
- if($pos == top, bottom, null)
76
- if($pos == bottom, top, null);
77
- }
@@ -1,41 +0,0 @@
1
- // Private function for linear-gradient-parser
2
- @function _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals) {
3
- @if $output-bourbon-deprecation-warnings == true {
4
- @warn "[Bourbon] [Deprecation] `_linear-side-corner-parser` is " +
5
- "deprecated and will be removed in 5.0.0.";
6
- }
7
-
8
- $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
9
- $output-bourbon-deprecation-warnings: false !global;
10
-
11
- $val-1: str-slice($first-val, 1, $has-multiple-vals - 1);
12
- $val-2: str-slice($first-val, $has-multiple-vals + 1, str-length($first-val));
13
- $val-3: null;
14
- $has-val-3: str-index($val-2, " ");
15
-
16
- @if $has-val-3 {
17
- $val-3: str-slice($val-2, $has-val-3 + 1, str-length($val-2));
18
- $val-2: str-slice($val-2, 1, $has-val-3 - 1);
19
- }
20
-
21
- $pos: _position-flipper($val-1) _position-flipper($val-2) _position-flipper($val-3);
22
- $pos: unquote($pos + "");
23
-
24
- $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
25
-
26
- // Use old spec for webkit
27
- @if $val-1 == "to" {
28
- @return (
29
- webkit-image: -webkit- + $prefix + $pos + $suffix,
30
- spec-image: $image
31
- );
32
- }
33
-
34
- // Bring the code up to spec
35
- @else {
36
- @return (
37
- webkit-image: -webkit- + $image,
38
- spec-image: $prefix + "to " + $pos + $suffix
39
- );
40
- }
41
- }
@@ -1,74 +0,0 @@
1
- @function _radial-arg-parser($g1, $g2, $pos, $shape-size) {
2
- @if $output-bourbon-deprecation-warnings == true {
3
- @warn "[Bourbon] [Deprecation] `_radial-arg-parser` is " +
4
- "deprecated and will be removed in 5.0.0.";
5
- }
6
-
7
- @each $value in $g1, $g2 {
8
- $first-val: nth($value, 1);
9
- $pos-type: type-of($first-val);
10
- $spec-at-index: null;
11
-
12
- // Determine if spec was passed to mixin
13
- @if type-of($value) == list {
14
- $spec-at-index: if(index($value, at), index($value, at), false);
15
- }
16
- @if $spec-at-index {
17
- @if $spec-at-index > 1 {
18
- @for $i from 1 through ($spec-at-index - 1) {
19
- $shape-size: $shape-size nth($value, $i);
20
- }
21
- @for $i from ($spec-at-index + 1) through length($value) {
22
- $pos: $pos nth($value, $i);
23
- }
24
- }
25
- @else if $spec-at-index == 1 {
26
- @for $i from ($spec-at-index + 1) through length($value) {
27
- $pos: $pos nth($value, $i);
28
- }
29
- }
30
- $g1: null;
31
- }
32
-
33
- // If not spec calculate correct values
34
- @else {
35
- @if ($pos-type != color) or ($first-val != "transparent") {
36
- @if ($pos-type == number)
37
- or ($first-val == "center")
38
- or ($first-val == "top")
39
- or ($first-val == "right")
40
- or ($first-val == "bottom")
41
- or ($first-val == "left") {
42
-
43
- $pos: $value;
44
-
45
- @if $pos == $g1 {
46
- $g1: null;
47
- }
48
- }
49
-
50
- @else if
51
- ($first-val == "ellipse")
52
- or ($first-val == "circle")
53
- or ($first-val == "closest-side")
54
- or ($first-val == "closest-corner")
55
- or ($first-val == "farthest-side")
56
- or ($first-val == "farthest-corner")
57
- or ($first-val == "contain")
58
- or ($first-val == "cover") {
59
-
60
- $shape-size: $value;
61
-
62
- @if $value == $g1 {
63
- $g1: null;
64
- }
65
-
66
- @else if $value == $g2 {
67
- $g2: null;
68
- }
69
- }
70
- }
71
- }
72
- }
73
- @return $g1, $g2, $pos, $shape-size;
74
- }
@@ -1,55 +0,0 @@
1
- @function _radial-gradient-parser($image) {
2
- @if $output-bourbon-deprecation-warnings == true {
3
- @warn "[Bourbon] [Deprecation] `_radial-gradient-parser` is " +
4
- "deprecated and will be removed in 5.0.0.";
5
- }
6
-
7
- $image: unquote($image);
8
- $gradients: ();
9
- $start: str-index($image, "(");
10
- $end: str-index($image, ",");
11
- $first-val: str-slice($image, $start + 1, $end - 1);
12
-
13
- $prefix: str-slice($image, 1, $start);
14
- $suffix: str-slice($image, $end, str-length($image));
15
-
16
- $is-spec-syntax: str-index($first-val, "at");
17
-
18
- @if $is-spec-syntax and $is-spec-syntax > 1 {
19
- $keyword: str-slice($first-val, 1, $is-spec-syntax - 2);
20
- $pos: str-slice($first-val, $is-spec-syntax + 3, str-length($first-val));
21
- $pos: append($pos, $keyword, comma);
22
-
23
- $gradients: (
24
- webkit-image: -webkit- + $prefix + $pos + $suffix,
25
- spec-image: $image
26
- );
27
- }
28
-
29
- @else if $is-spec-syntax == 1 {
30
- $pos: str-slice($first-val, $is-spec-syntax + 3, str-length($first-val));
31
-
32
- $gradients: (
33
- webkit-image: -webkit- + $prefix + $pos + $suffix,
34
- spec-image: $image
35
- );
36
- }
37
-
38
- @else if str-index($image, "cover") or str-index($image, "contain") {
39
- @warn "Radial-gradient needs to be updated to conform to latest spec.";
40
-
41
- $gradients: (
42
- webkit-image: null,
43
- spec-image: $image
44
- );
45
- }
46
-
47
- @else {
48
- $gradients: (
49
- webkit-image: -webkit- + $image,
50
- spec-image: $image
51
- );
52
- }
53
-
54
- @return $gradients;
55
- }
@@ -1,28 +0,0 @@
1
- @function _radial-positions-parser($gradient-pos) {
2
- @if $output-bourbon-deprecation-warnings == true {
3
- @warn "[Bourbon] [Deprecation] `_radial-positions-parser` is " +
4
- "deprecated and will be removed in 5.0.0.";
5
- }
6
-
7
- $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
8
- $output-bourbon-deprecation-warnings: false !global;
9
-
10
- $shape-size: nth($gradient-pos, 1);
11
- $pos: nth($gradient-pos, 2);
12
- $shape-size-spec: _shape-size-stripper($shape-size);
13
-
14
- $pre-spec: unquote(if($pos, "#{$pos}, ", null))
15
- unquote(if($shape-size, "#{$shape-size},", null));
16
- $pos-spec: if($pos, "at #{$pos}", null);
17
-
18
- $spec: "#{$shape-size-spec} #{$pos-spec}";
19
-
20
- // Add comma
21
- @if ($spec != " ") {
22
- $spec: "#{$spec},";
23
- }
24
-
25
- $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
26
-
27
- @return $pre-spec $spec;
28
- }