[common] fix bug 49731

This commit is contained in:
Maxim Kadushkin 2021-04-19 23:57:54 +03:00
parent 9e30429737
commit ba31d2f163
2 changed files with 12 additions and 30 deletions

View file

@ -33,23 +33,14 @@
img, .image { img, .image {
background: ~"url(@{common-image-const-path}/combo-border-size/BorderSize.png) no-repeat 0 0"; background: ~"url(@{common-image-const-path}/combo-border-size/BorderSize.png) no-repeat 0 0";
background-size: 60px auto;
@media only screen { .pixel-ratio__1_5 & {
//@media (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 1.9), background-image: ~"url(@{common-image-const-path}/combo-border-size/BorderSize@1.5x.png)";
// (min-resolution: 1.5dppx) and (max-resolution: 1.9dppx), }
// (min-resolution: 144dpi) and (max-resolution: 191dpi)
//{
// background-image: ~"url(@{common-image-const-path}/combo-border-size/BorderSize@1.5x.png)";
// background-size: 60px auto;
//}
@media (-webkit-min-device-pixel-ratio: 2), .pixel-ratio__2 & {
(min-resolution: 2dppx), background-image: ~"url(@{common-image-const-path}/combo-border-size/BorderSize@2x.png)";
(min-resolution: 192dpi)
{
background-image: ~"url(@{common-image-const-path}/combo-border-size/BorderSize@2x.png)";
background-size: 60px auto;
}
} }
} }
} }

View file

@ -208,23 +208,14 @@
.combo-border-size.cell-border-type { .combo-border-size.cell-border-type {
img, .image { img, .image {
background-image: ~"url(@{app-image-const-path}/toolbar/BorderSize.png)"; background-image: ~"url(@{app-image-const-path}/toolbar/BorderSize.png)";
background-size: 60px auto;
@media only screen { .pixel-ratio__1_5 & {
//@media (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 1.9), background-image: ~"url(@{common-image-const-path}/combo-border-size/BorderSize@1.5x.png)";
// (min-resolution: 1.5dppx) and (max-resolution: 1.9dppx), }
// (min-resolution: 144dpi) and (max-resolution: 191dpi)
//{
// background-image: ~"url(@{app-image-const-path}/toolbar/BorderSize@1.5x.png)";
// background-size: 60px auto;
//}
@media (-webkit-min-device-pixel-ratio: 2), .pixel-ratio__2 & {
(min-resolution: 2dppx), background-image: ~"url(@{common-image-const-path}/combo-border-size/BorderSize@2x.png)";
(min-resolution: 192dpi)
{
background-image: ~"url(@{app-image-const-path}/toolbar/BorderSize@2x.png)";
background-size: 60px auto;
}
} }
} }
} }