web-apps/apps/common/mobile/resources/less/_mixins.less

18 lines
562 B
Plaintext
Raw Normal View History

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}");
-webkit-mask-size: contain;
-webkit-mask-repeat: round;
2020-11-19 17:28:28 +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
}