[all] corrected 'loading' mask's markup

This commit is contained in:
Maxim Kadushkin 2020-11-05 20:01:55 +03:00
parent 3eb148097c
commit eaea4059a7
2 changed files with 14 additions and 7 deletions

View file

@ -128,10 +128,6 @@ define([
ownerEl.append(maskeEl); ownerEl.append(maskeEl);
ownerEl.append(loaderEl); ownerEl.append(loaderEl);
loaderEl.css({
top : Math.round(ownerEl.height() / 2 - (loaderEl.height() + parseInt(loaderEl.css('padding-top')) + parseInt(loaderEl.css('padding-bottom'))) / 2) + 'px',
left: Math.round(ownerEl.width() / 2 - (loaderEl.width() + parseInt(loaderEl.css('padding-left')) + parseInt(loaderEl.css('padding-right'))) / 2) + 'px'
});
// if (ownerEl.height()<1 || ownerEl.width()<1) // if (ownerEl.height()<1 || ownerEl.width()<1)
// loaderEl.css({visibility: 'hidden'}); // loaderEl.css({visibility: 'hidden'});

View file

@ -18,7 +18,7 @@
.asc-loadmask-body { .asc-loadmask-body {
position: absolute; position: absolute;
z-index: @loadmask-zindex + 1; z-index: @loadmask-zindex + 1;
padding: 20px; padding: 24px;
line-height: @loadmask-image-height; line-height: @loadmask-image-height;
border: none; border: none;
background-image: none; background-image: none;
@ -26,6 +26,10 @@
color: @gray-light; color: @gray-light;
.border-radius(@border-radius-large); .border-radius(@border-radius-large);
left: 50%;
top: 50%;
transform: translate(-50%);
& > div { & > div {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
@ -36,24 +40,31 @@
height: @loadmask-image-height; height: @loadmask-image-height;
width: @loadmask-image-width; width: @loadmask-image-width;
float: left; float: left;
margin-left: 20px; margin-left: 8px;
} }
.asc-loadmask-title { .asc-loadmask-title {
.fontsize(@font-size-large); .fontsize(@font-size-large);
margin: 0 20px; margin: 0 8px 0 12px;
} }
.left-panel & { .left-panel & {
line-height: @loadmask-small-image-height; line-height: @loadmask-small-image-height;
background-color: transparent; background-color: transparent;
color: @gray-deep; color: @gray-deep;
padding: 8px;
top: 78px;
transform: translate(-50%, 0);
.asc-loadmask-image { .asc-loadmask-image {
background-image: ~"url(@{common-image-const-path}/load-mask/loading-small.svg)"; background-image: ~"url(@{common-image-const-path}/load-mask/loading-small.svg)";
height: @loadmask-small-image-height; height: @loadmask-small-image-height;
width: @loadmask-small-image-width; width: @loadmask-small-image-width;
} }
.asc-loadmask-title {
margin: 0 8px;
}
} }
} }