2019-02-28 12:35:54 -05:00
|
|
|
@mixin spinner-color($color) {
|
2019-02-28 15:01:45 -05:00
|
|
|
border-color: rgba($color, 0.25);
|
2019-02-28 12:35:54 -05:00
|
|
|
border-top-color: $color;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin spinner-size($size, $border-width) {
|
|
|
|
width: $size;
|
|
|
|
height: $size;
|
|
|
|
border-width: $border-width;
|
|
|
|
@include webkit-prefix(transform-origin, 50% 50% calc((#{$size} / 2) + #{$border-width}));
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes spinner-rotate {
|
|
|
|
0% {
|
|
|
|
transform: rotate(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.spinner {
|
|
|
|
border-radius: 50%;
|
|
|
|
position: relative;
|
|
|
|
margin: 0 auto;
|
|
|
|
animation-name: spinner-rotate;
|
2019-02-28 15:01:45 -05:00
|
|
|
animation-duration: 0.6s;
|
2019-02-28 12:35:54 -05:00
|
|
|
animation-timing-function: linear;
|
|
|
|
animation-iteration-count: infinite;
|
|
|
|
border-style: solid;
|
|
|
|
display: inline-flex;
|
|
|
|
@include spinner-size(16px, 2px);
|
2020-09-09 02:08:55 -04:00
|
|
|
@include spinner-color($orange-400);
|
2019-02-28 12:35:54 -05:00
|
|
|
|
|
|
|
&.spinner-md {
|
|
|
|
@include spinner-size(32px, 3px);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.spinner-lg {
|
|
|
|
@include spinner-size(64px, 4px);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.spinner-dark {
|
2020-08-17 17:09:56 -04:00
|
|
|
@include spinner-color($gray-500);
|
2019-02-28 12:35:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&.spinner-light {
|
|
|
|
@include spinner-color($white);
|
|
|
|
}
|
|
|
|
}
|
2020-02-14 04:08:43 -05:00
|
|
|
|
|
|
|
.btn {
|
2020-02-25 10:08:50 -05:00
|
|
|
.spinner,
|
|
|
|
.gl-spinner {
|
2020-02-14 04:08:43 -05:00
|
|
|
vertical-align: text-bottom;
|
|
|
|
}
|
|
|
|
}
|