Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'docs/assets/scss/_functions.scss')
-rw-r--r--docs/assets/scss/_functions.scss10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/assets/scss/_functions.scss b/docs/assets/scss/_functions.scss
new file mode 100644
index 000000000..55f252da2
--- /dev/null
+++ b/docs/assets/scss/_functions.scss
@@ -0,0 +1,10 @@
+// See https://codepen.io/kevinweber/pen/dXWoRw
+@function escape-svg($string) {
+ @if str-index($string, "data:image/svg+xml") {
+ @each $char, $encoded in $escaped-characters {
+ $string: str-replace($string, $char, $encoded);
+ }
+ }
+
+ @return $string;
+}