From 4925e47ab90881a47d0cab524c2beb62d64dbe5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 14 May 2021 13:42:29 +0200 Subject: [PATCH] MOBILE-3670 styles: Reindent mixin file --- src/theme/globals.mixins.ionic.scss | 664 ++++++++++++++-------------- 1 file changed, 332 insertions(+), 332 deletions(-) diff --git a/src/theme/globals.mixins.ionic.scss b/src/theme/globals.mixins.ionic.scss index cd4a762ca..c5333ec8a 100644 --- a/src/theme/globals.mixins.ionic.scss +++ b/src/theme/globals.mixins.ionic.scss @@ -287,353 +287,353 @@ // $root: #{&}; // @at-root [dir] { - // #{$root} { - // @content; - // } - // } - } + // #{$root} { + // @content; + // } + // } +} - @mixin rtl() { - $root: #{&}; +@mixin rtl() { + $root: #{&}; - @at-root [dir=rtl] { - #{$root} { - @content; - } - } - } - - @mixin ltr() { + @at-root [dir=rtl] { + #{$root} { @content; } + } +} + +@mixin ltr() { + @content; +} - // SVG Background Image Mixin - // @param {string} $svg - // ---------------------------------------------------------- - @mixin svg-background-image($svg, $flip-rtl: false) { - $url: url-encode($svg); - $viewBox: str-split(str-extract($svg, "viewBox='", "'"), " "); +// SVG Background Image Mixin +// @param {string} $svg +// ---------------------------------------------------------- +@mixin svg-background-image($svg, $flip-rtl: false) { + $url: url-encode($svg); + $viewBox: str-split(str-extract($svg, "viewBox='", "'"), " "); - @if $flip-rtl != true or $viewBox == null { - @include multi-dir() { - background-image: url("data:image/svg+xml;charset=utf-8,#{$url}"); - } - } @else { - $transform: "transform='translate(#{nth($viewBox, 3)}, 0) scale(-1, 1)'"; - $flipped-url: $svg; - $flipped-url: str-replace($flipped-url, "