From 3207023fb360ad75f02c4fd9d830330bbebc6e07 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 22 Sep 2021 14:55:04 +0300 Subject: [PATCH] [scaling] correct images for 125%/175% --- apps/common/main/resources/less/asc-mixins.less | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/common/main/resources/less/asc-mixins.less b/apps/common/main/resources/less/asc-mixins.less index 44f8f6593..980503c55 100644 --- a/apps/common/main/resources/less/asc-mixins.less +++ b/apps/common/main/resources/less/asc-mixins.less @@ -327,11 +327,12 @@ } } -@img-colorpicker-width: 205px; +@img-colorpicker-width: 208px; .img-colorpicker, .hsb-colorpicker .empty-color:before { background-image: if(@icon-src-base64, data-uri(%("%s",'@{common-image-path}/hsbcolorpicker/hsb-colorpicker.png')), ~"url(@{common-image-const-path}/hsbcolorpicker/hsb-colorpicker.png)"); background-repeat: no-repeat; + background-size: @img-colorpicker-width auto; @media only screen { @media (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 1.9), @@ -350,6 +351,14 @@ background-size: @img-colorpicker-width auto; } } + + .pixel-ratio__1_25 & { + background-image: ~"url(@{common-image-const-path}/hsbcolorpicker/hsb-colorpicker@1.25x.png)"; + } + + .pixel-ratio__1_75 & { + background-image: ~"url(@{common-image-const-path}/hsbcolorpicker/hsb-colorpicker@1.75x.png)"; + } } .icon.lang-flag {