|
309 | 309 | // ---------------------------------------------------------- |
310 | 310 | @mixin svg-background-image($svg, $flip-rtl: false) { |
311 | 311 | $url: url-encode($svg); |
312 | | - $viewBox: str-split(str-extract($svg, "viewBox='", "'"), " "); |
| 312 | + $viewBox: string.str-split(string.str-extract($svg, "viewBox='", "'"), " "); |
313 | 313 |
|
314 | 314 | @if $flip-rtl != true or $viewBox == null { |
315 | 315 | @include multi-dir() { |
|
318 | 318 | } @else { |
319 | 319 | $transform: "transform='translate(#{nth($viewBox, 3)}, 0) scale(-1, 1)'"; |
320 | 320 | $flipped-url: $svg; |
321 | | - $flipped-url: str-replace($flipped-url, "<path", "<path #{$transform}"); |
322 | | - $flipped-url: str-replace($flipped-url, "<line", "<line #{$transform}"); |
323 | | - $flipped-url: str-replace($flipped-url, "<polygon", "<polygon #{$transform}"); |
| 321 | + $flipped-url: string.str-replace($flipped-url, "<path", "<path #{$transform}"); |
| 322 | + $flipped-url: string.str-replace($flipped-url, "<line", "<line #{$transform}"); |
| 323 | + $flipped-url: string.str-replace($flipped-url, "<polygon", "<polygon #{$transform}"); |
324 | 324 | $flipped-url: url-encode($flipped-url); |
325 | 325 |
|
326 | 326 | @include ltr() { |
|
575 | 575 |
|
576 | 576 | @each $transform in $transforms { |
577 | 577 | @if (str-index($transform, translate3d)) { |
578 | | - $transform: str-replace($transform, "translate3d("); |
579 | | - $transform: str-replace($transform, ")"); |
| 578 | + $transform: string.str-replace($transform, "translate3d("); |
| 579 | + $transform: string.str-replace($transform, ")"); |
580 | 580 |
|
581 | | - $coordinates: str-split($transform, ","); |
| 581 | + $coordinates: string.str-split($transform, ","); |
582 | 582 |
|
583 | 583 | $x: nth($coordinates, 1); |
584 | 584 | $y: nth($coordinates, 2); |
|
0 commit comments