Global loader

This commit is contained in:
James Barnsley
2017-03-27 14:23:38 +13:00
parent b7f3eb4c14
commit 76f262fd33
11 changed files with 181 additions and 51 deletions

View File

@ -8,4 +8,5 @@
background: rgba(0,0,0,0.5);
color: #FFFFFF;
pointer-events: none;
width: 200px;
}

View File

@ -1,24 +1,28 @@
.loader {
opacity: 0;
position: fixed;
bottom: 12px;
right: 12px;
margin: 0 auto;
width: 16px;
height: 16px;
border: {
radius: 100%;
style: solid;
color: $blue;
width: 2px;
}
border-top-color: transparent;
pointer-events: none;
&.active {
opacity: 1;
@include animate();
@include spin();
}
}
.lazy-loader {
padding: 20px 0 40px;
.loader {
@include animate();
opacity: 0;
margin: 0 auto;
width: 30px;
height: 30px;
border: {
radius: 100%;
style: solid;
color: $mid_grey;
width: 2px;
}
border-top-color: transparent;
}
&.loading .loader {
@include spin();
opacity: 1;
}
}