opt-cc/static/src/app/style/load-indicator.scss

52 lines
1008 B
SCSS

$primary-color: #dadada;
$secondary-color: #666666;
$indicator-width: 100px;
$indicator-height: 100px;
.load-indicator {
width: $indicator-width;
height: $indicator-height;
position: absolute;
top: calc(50% - (#{$indicator-height} / 2));
left: calc(50% - (#{$indicator-width} / 2));
z-index: 10000;
filter: drop-shadow(3px 1px 2px $secondary-color);
.opt-loader {
border: 3px solid $secondary-color;
border-top: 3px solid $primary-color;
border-radius: 50%;
display: inline-block;
position: absolute;
width: 100%;
height: 100%;
animation: spin 2s linear infinite, fade 2s linear infinite;
}
.opt-logo-core {
width: $indicator-width * 0.85;
height: $indicator-height * 0.85;
margin: 6px 8px;
stroke: $secondary-color;
color: $primary-color;
}
}
@keyframes fade {
0%, 100% {
opacity: 0.5;
}
50% {
opacity: 1;
}
}
@keyframes spin {
0% {
transform: rotate(0deg)
}
100% {
transform: rotate(360deg)
}
}