<div class="loader loader--visible" aria-live="polite" aria-label="Do not refresh the page">
<div class="loader__circle"></div>
</div>
<div
class="loader loader--visible"
aria-live="polite"
aria-label="Do not refresh the page"
>
<div class="loader__circle"></div>
</div>
/* No context defined for this component. */
$loader__size : 100% !default;
$loader__circle-size : 80px !default;
$loader__circle-border : $spacer solid $gray-lightest !default;
$loader__circle-border-top : $spacer solid $color-primary !default;
$loader__circle-border-radius: 50% !default;
$loader__circle-animation : rotate 1s infinite linear !default;
@keyframes rotate {
0% {transform: rotate(0deg);}
100% {transform: rotate(360deg);}
}
.loader {
position: absolute;
top: 0;
left: 0;
display: none;
width: $loader__size;
height: $loader__size;
background-color: inherit;
&--visible {
display: block;
}
&__circle {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: $loader__circle-size;
height: $loader__circle-size;
margin: auto;
border: $loader__circle-border;
border-top: $loader__circle-border-top;
border-radius: $loader__circle-border-radius;
animation: $loader__circle-animation;
}
}
There are no notes for this item.