2016-11-15 12:32:11 +00:00
|
|
|
// Encoded SVG Background
|
2021-11-04 21:11:52 +00:00
|
|
|
.encoded-svg-mask(@svg, @color: @brandColor) {
|
2016-11-15 12:32:11 +00:00
|
|
|
@url: `encodeURIComponent(@{svg})`;
|
2021-02-19 21:05:06 +00:00
|
|
|
background-color: @color;
|
2016-11-15 12:32:11 +00:00
|
|
|
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,@{url}");
|
2021-11-18 12:23:33 +00:00
|
|
|
-webkit-mask-size: contain;
|
|
|
|
-webkit-mask-repeat: round;
|
2020-11-19 17:28:28 +00:00
|
|
|
}
|
|
|
|
|
2021-02-09 20:59:49 +00:00
|
|
|
.encoded-svg-uncolored-mask(@svg) {
|
|
|
|
@url: `encodeURIComponent(@{svg})`;
|
|
|
|
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,@{url}");
|
|
|
|
}
|
|
|
|
|
2020-11-19 17:28:28 +00:00
|
|
|
.encoded-svg-background(@svg) {
|
|
|
|
@url: `encodeURIComponent(@{svg})`;
|
|
|
|
background-image: url("data:image/svg+xml;charset=utf-8,@{url}");
|
2016-11-15 12:32:11 +00:00
|
|
|
}
|