dta_rapid 0.2.5 → 0.2.6

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 (126) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/forms/text-input.html +2 -0
  3. data/_sass/_colors.scss +18 -3
  4. data/_sass/components/text-input.scss +71 -0
  5. data/_sass/vendor/bourbon/_bourbon-deprecate.scss +19 -0
  6. data/_sass/vendor/bourbon/_bourbon-deprecated-upcoming.scss +425 -0
  7. data/_sass/vendor/bourbon/_bourbon.scss +90 -0
  8. data/_sass/vendor/bourbon/addons/_border-color.scss +29 -0
  9. data/_sass/vendor/bourbon/addons/_border-radius.scss +48 -0
  10. data/_sass/vendor/bourbon/addons/_border-style.scss +28 -0
  11. data/_sass/vendor/bourbon/addons/_border-width.scss +28 -0
  12. data/_sass/vendor/bourbon/addons/_buttons.scss +69 -0
  13. data/_sass/vendor/bourbon/addons/_clearfix.scss +25 -0
  14. data/_sass/vendor/bourbon/addons/_ellipsis.scss +30 -0
  15. data/_sass/vendor/bourbon/addons/_font-stacks.scss +31 -0
  16. data/_sass/vendor/bourbon/addons/_hide-text.scss +27 -0
  17. data/_sass/vendor/bourbon/addons/_margin.scss +29 -0
  18. data/_sass/vendor/bourbon/addons/_padding.scss +29 -0
  19. data/_sass/vendor/bourbon/addons/_position.scss +51 -0
  20. data/_sass/vendor/bourbon/addons/_prefixer.scss +66 -0
  21. data/_sass/vendor/bourbon/addons/_retina-image.scss +27 -0
  22. data/_sass/vendor/bourbon/addons/_size.scss +51 -0
  23. data/_sass/vendor/bourbon/addons/_text-inputs.scss +118 -0
  24. data/_sass/vendor/bourbon/addons/_timing-functions.scss +34 -0
  25. data/_sass/vendor/bourbon/addons/_triangle.scss +63 -0
  26. data/_sass/vendor/bourbon/addons/_word-wrap.scss +29 -0
  27. data/_sass/vendor/bourbon/css3/_animation.scss +61 -0
  28. data/_sass/vendor/bourbon/css3/_appearance.scss +5 -0
  29. data/_sass/vendor/bourbon/css3/_backface-visibility.scss +5 -0
  30. data/_sass/vendor/bourbon/css3/_background-image.scss +44 -0
  31. data/_sass/vendor/bourbon/css3/_background.scss +57 -0
  32. data/_sass/vendor/bourbon/css3/_border-image.scss +61 -0
  33. data/_sass/vendor/bourbon/css3/_calc.scss +6 -0
  34. data/_sass/vendor/bourbon/css3/_columns.scss +67 -0
  35. data/_sass/vendor/bourbon/css3/_filter.scss +6 -0
  36. data/_sass/vendor/bourbon/css3/_flex-box.scss +327 -0
  37. data/_sass/vendor/bourbon/css3/_font-face.scss +29 -0
  38. data/_sass/vendor/bourbon/css3/_font-feature-settings.scss +6 -0
  39. data/_sass/vendor/bourbon/css3/_hidpi-media-query.scss +12 -0
  40. data/_sass/vendor/bourbon/css3/_hyphens.scss +6 -0
  41. data/_sass/vendor/bourbon/css3/_image-rendering.scss +15 -0
  42. data/_sass/vendor/bourbon/css3/_keyframes.scss +38 -0
  43. data/_sass/vendor/bourbon/css3/_linear-gradient.scss +40 -0
  44. data/_sass/vendor/bourbon/css3/_perspective.scss +12 -0
  45. data/_sass/vendor/bourbon/css3/_placeholder.scss +10 -0
  46. data/_sass/vendor/bourbon/css3/_radial-gradient.scss +40 -0
  47. data/_sass/vendor/bourbon/css3/_selection.scss +44 -0
  48. data/_sass/vendor/bourbon/css3/_text-decoration.scss +27 -0
  49. data/_sass/vendor/bourbon/css3/_transform.scss +21 -0
  50. data/_sass/vendor/bourbon/css3/_transition.scss +81 -0
  51. data/_sass/vendor/bourbon/css3/_user-select.scss +5 -0
  52. data/_sass/vendor/bourbon/functions/_assign-inputs.scss +16 -0
  53. data/_sass/vendor/bourbon/functions/_contains-falsy.scss +25 -0
  54. data/_sass/vendor/bourbon/functions/_contains.scss +31 -0
  55. data/_sass/vendor/bourbon/functions/_is-length.scss +16 -0
  56. data/_sass/vendor/bourbon/functions/_is-light.scss +26 -0
  57. data/_sass/vendor/bourbon/functions/_is-number.scss +16 -0
  58. data/_sass/vendor/bourbon/functions/_is-size.scss +18 -0
  59. data/_sass/vendor/bourbon/functions/_modular-scale.scss +74 -0
  60. data/_sass/vendor/bourbon/functions/_px-to-em.scss +24 -0
  61. data/_sass/vendor/bourbon/functions/_px-to-rem.scss +26 -0
  62. data/_sass/vendor/bourbon/functions/_shade.scss +24 -0
  63. data/_sass/vendor/bourbon/functions/_strip-units.scss +22 -0
  64. data/_sass/vendor/bourbon/functions/_tint.scss +24 -0
  65. data/_sass/vendor/bourbon/functions/_transition-property-name.scss +37 -0
  66. data/_sass/vendor/bourbon/functions/_unpack.scss +32 -0
  67. data/_sass/vendor/bourbon/helpers/_convert-units.scss +26 -0
  68. data/_sass/vendor/bourbon/helpers/_directional-values.scss +108 -0
  69. data/_sass/vendor/bourbon/helpers/_font-source-declaration.scss +53 -0
  70. data/_sass/vendor/bourbon/helpers/_gradient-positions-parser.scss +24 -0
  71. data/_sass/vendor/bourbon/helpers/_linear-angle-parser.scss +35 -0
  72. data/_sass/vendor/bourbon/helpers/_linear-gradient-parser.scss +51 -0
  73. data/_sass/vendor/bourbon/helpers/_linear-positions-parser.scss +77 -0
  74. data/_sass/vendor/bourbon/helpers/_linear-side-corner-parser.scss +41 -0
  75. data/_sass/vendor/bourbon/helpers/_radial-arg-parser.scss +74 -0
  76. data/_sass/vendor/bourbon/helpers/_radial-gradient-parser.scss +55 -0
  77. data/_sass/vendor/bourbon/helpers/_radial-positions-parser.scss +28 -0
  78. data/_sass/vendor/bourbon/helpers/_render-gradients.scss +31 -0
  79. data/_sass/vendor/bourbon/helpers/_shape-size-stripper.scss +15 -0
  80. data/_sass/vendor/bourbon/helpers/_str-to-num.scss +55 -0
  81. data/_sass/vendor/bourbon/settings/_asset-pipeline.scss +7 -0
  82. data/_sass/vendor/bourbon/settings/_deprecation-warnings.scss +8 -0
  83. data/_sass/vendor/bourbon/settings/_prefixer.scss +9 -0
  84. data/_sass/vendor/bourbon/settings/_px-to-em.scss +1 -0
  85. data/_sass/vendor/neat/_neat-helpers.scss +8 -0
  86. data/_sass/vendor/neat/_neat.scss +19 -22
  87. data/_sass/vendor/neat/functions/_new-breakpoint.scss +49 -0
  88. data/_sass/vendor/neat/functions/_private.scss +114 -0
  89. data/_sass/vendor/neat/grid/_box-sizing.scss +15 -0
  90. data/_sass/vendor/neat/grid/_direction-context.scss +33 -0
  91. data/_sass/vendor/neat/grid/_display-context.scss +28 -0
  92. data/_sass/vendor/neat/grid/_fill-parent.scss +22 -0
  93. data/_sass/vendor/neat/grid/_media.scss +92 -0
  94. data/_sass/vendor/neat/grid/_omega.scss +87 -0
  95. data/_sass/vendor/neat/grid/_outer-container.scss +38 -0
  96. data/_sass/vendor/neat/grid/_pad.scss +25 -0
  97. data/_sass/vendor/neat/grid/_private.scss +35 -0
  98. data/_sass/vendor/neat/grid/_row.scss +52 -0
  99. data/_sass/vendor/neat/grid/_shift.scss +50 -0
  100. data/_sass/vendor/neat/grid/_span-columns.scss +94 -0
  101. data/_sass/vendor/neat/grid/_to-deprecate.scss +97 -0
  102. data/_sass/vendor/neat/grid/_visual-grid.scss +42 -0
  103. data/_sass/vendor/neat/settings/_disable-warnings.scss +13 -0
  104. data/_sass/vendor/neat/settings/_grid.scss +51 -0
  105. data/_sass/vendor/neat/settings/_visual-grid.scss +27 -0
  106. data/assets/style.scss +7 -4
  107. metadata +103 -20
  108. data/_sass/components/.keep +0 -0
  109. data/_sass/vendor/neat/neat/functions/_neat-append-grid-visual.scss +0 -21
  110. data/_sass/vendor/neat/neat/functions/_neat-column-default.scss +0 -23
  111. data/_sass/vendor/neat/neat/functions/_neat-column-ratio.scss +0 -24
  112. data/_sass/vendor/neat/neat/functions/_neat-column-width.scss +0 -25
  113. data/_sass/vendor/neat/neat/functions/_neat-float-direction.scss +0 -22
  114. data/_sass/vendor/neat/neat/functions/_neat-merge-defaults.scss +0 -23
  115. data/_sass/vendor/neat/neat/functions/_neat-opposite-direction.scss +0 -22
  116. data/_sass/vendor/neat/neat/functions/_neat-parse-columns.scss +0 -22
  117. data/_sass/vendor/neat/neat/functions/_neat-parse-media.scss +0 -20
  118. data/_sass/vendor/neat/neat/functions/_retrieve-neat-settings.scss +0 -19
  119. data/_sass/vendor/neat/neat/mixins/_grid-collapse.scss +0 -36
  120. data/_sass/vendor/neat/neat/mixins/_grid-column.scss +0 -39
  121. data/_sass/vendor/neat/neat/mixins/_grid-container.scss +0 -30
  122. data/_sass/vendor/neat/neat/mixins/_grid-media.scss +0 -67
  123. data/_sass/vendor/neat/neat/mixins/_grid-push.scss +0 -37
  124. data/_sass/vendor/neat/neat/mixins/_grid-shift.scss +0 -36
  125. data/_sass/vendor/neat/neat/mixins/_grid-visual.scss +0 -67
  126. data/_sass/vendor/neat/neat/settings/_settings.scss +0 -74
@@ -0,0 +1,53 @@
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
+ }
@@ -0,0 +1,24 @@
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
+ }
@@ -0,0 +1,35 @@
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
+ }
@@ -0,0 +1,51 @@
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
+ }
@@ -0,0 +1,77 @@
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
+ }
@@ -0,0 +1,41 @@
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
+ }
@@ -0,0 +1,74 @@
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
+ }
@@ -0,0 +1,55 @@
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
+ }
@@ -0,0 +1,28 @@
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
+ }