[common] debug stylesheet

This commit is contained in:
Maxim Kadushkin 2019-10-21 18:05:10 +03:00
parent b65c980be5
commit 291616bcb8

View file

@ -159,14 +159,15 @@
.background-ximage-v2(@image, @w: auto, @h: auto, @repeat: no-repeat, @commonimage: true) {
.choose-image-path(@commonimage);
@imagepath: '@{path}/@{image}';
background-image: if(@icon-src-base64, data-uri(%("%s",'@{path}/@{image}')), ~"url(@{path}/@{image})");
background-image: if(@icon-src-base64, data-uri(%("%s", '@{imagepath}')), ~"url(@{imagepath})");
background-repeat: @repeat;
@1d5ximage: replace(@image, '\.png$', '@1.5x.png');
@1d75ximage: replace(@image, '\.png$', '@1.75x.png');
@1d25ximage: replace(@image, '\.png$', '@1.25x.png');
@2ximage: replace(@image, '\.png$', '@2x.png');
@1d5ximage: replace(@imagepath, '\.png$', '@1.5x.png');
@1d75ximage: replace(@imagepath, '\.png$', '@1.75x.png');
@1d25ximage: replace(@imagepath, '\.png$', '@1.25x.png');
@2ximage: replace(@imagepath, '\.png$', '@2x.png');
@media only screen {
@media (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 1.9),