[common] added script for addaptive border

This commit is contained in:
Maxim Kadushkin 2020-11-20 23:54:56 +03:00
parent 89f733ae30
commit 423a240b48

View file

@ -280,3 +280,19 @@
} }
} }
} }
.adaptive-solid-border(@width, @color, @borderside: all) {
@lb-border: if((@borderside = all), border, e('border-@{borderside}'));
@lb-border-width: if((@borderside = all), border-width, e('border-@{borderside}-width'));
@{lb-border}: @width solid @color;
@media only screen {
@media (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 1.9),
(min-resolution: 1.5dppx) and (max-resolution: 1.9dppx),
(min-resolution: 144dpi) and (max-resolution: 191dpi)
{
@{lb-border-width}: (@width / 1.5);
}
}
}