[common] combined loader's svg

This commit is contained in:
Maxim Kadushkin 2020-11-10 10:51:34 +03:00
parent 2b50ca8cbd
commit 7afa349870
3 changed files with 20 additions and 12 deletions

View file

@ -1,5 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20px" height="20px" viewBox="0 0 20 20">
<circle cx="10" cy="10" fill="none" stroke="#444" stroke-width="1.5" r="7.25" stroke-dasharray="160%, 40%">
<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 10 10;360 10 10" keyTimes="0;1"/>
</circle>
</svg>

Before

Width:  |  Height:  |  Size: 393 B

View file

@ -1,5 +1,18 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28px" height="28px" viewBox="0 0 28 28">
<circle cx="14" cy="14" fill="none" stroke="#fff" stroke-width="1.5" r="10.25" stroke-dasharray="160%, 40%">
<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 14 14;360 14 14" keyTimes="0;1"/>
</circle>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<style>
use {display: none}
use:target {display: inline}
</style>
<symbol id="middle1" viewBox="0 0 28 28">
<circle cx="14" cy="14" fill="none" stroke="#fff" stroke-width="1.5" r="10.25" stroke-dasharray="160%, 40%">
<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 14 14;360 14 14" keyTimes="0;1"/>
</circle>
</symbol>
<symbol id="small1" viewBox="0 0 20 20">
<circle cx="10" cy="10" fill="none" stroke="#444" stroke-width="1.5" r="7.25" stroke-dasharray="160%, 40%">
<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 10 10;360 10 10" keyTimes="0;1"/>
</circle>
</symbol>
<use id="middle" href="#middle1" />
<use id="small" href="#small1" />
</svg>

Before

Width:  |  Height:  |  Size: 394 B

After

Width:  |  Height:  |  Size: 943 B

View file

@ -36,7 +36,7 @@
}
.asc-loadmask-image {
background-image: ~"url(@{common-image-const-path}/load-mask/loading.svg)";
background-image: ~"url(@{common-image-const-path}/load-mask/loading.svg#middle)";
height: @loadmask-image-height;
width: @loadmask-image-width;
float: left;
@ -57,7 +57,7 @@
transform: translate(-50%, 0);
.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.svg#small)";
height: @loadmask-small-image-height;
width: @loadmask-small-image-width;
}