2020-05-19 16:53:54 +00:00
|
|
|
//
|
|
|
|
// Rotating border
|
|
|
|
//
|
|
|
|
|
2021-07-07 11:12:38 +00:00
|
|
|
// scss-docs-start spinner-border-keyframes
|
2020-05-19 16:53:54 +00:00
|
|
|
@keyframes spinner-border {
|
2021-07-07 11:12:38 +00:00
|
|
|
to { transform: rotate(360deg) #{"/* rtl:ignore */"}; }
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|
2021-07-07 11:12:38 +00:00
|
|
|
// scss-docs-end spinner-border-keyframes
|
2020-05-19 16:53:54 +00:00
|
|
|
|
|
|
|
.spinner-border {
|
|
|
|
display: inline-block;
|
|
|
|
width: $spinner-width;
|
|
|
|
height: $spinner-height;
|
2021-07-07 11:12:38 +00:00
|
|
|
vertical-align: $spinner-vertical-align;
|
2020-05-19 16:53:54 +00:00
|
|
|
border: $spinner-border-width solid currentColor;
|
|
|
|
border-right-color: transparent;
|
2020-11-06 13:16:40 +00:00
|
|
|
// stylelint-disable-next-line property-disallowed-list
|
2020-05-19 16:53:54 +00:00
|
|
|
border-radius: 50%;
|
2021-07-07 11:12:38 +00:00
|
|
|
animation: $spinner-animation-speed linear infinite spinner-border;
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.spinner-border-sm {
|
|
|
|
width: $spinner-width-sm;
|
|
|
|
height: $spinner-height-sm;
|
|
|
|
border-width: $spinner-border-width-sm;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Growing circle
|
|
|
|
//
|
|
|
|
|
2021-07-07 11:12:38 +00:00
|
|
|
// scss-docs-start spinner-grow-keyframes
|
2020-05-19 16:53:54 +00:00
|
|
|
@keyframes spinner-grow {
|
|
|
|
0% {
|
|
|
|
transform: scale(0);
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity: 1;
|
|
|
|
transform: none;
|
|
|
|
}
|
|
|
|
}
|
2021-07-07 11:12:38 +00:00
|
|
|
// scss-docs-end spinner-grow-keyframes
|
2020-05-19 16:53:54 +00:00
|
|
|
|
|
|
|
.spinner-grow {
|
|
|
|
display: inline-block;
|
|
|
|
width: $spinner-width;
|
|
|
|
height: $spinner-height;
|
2021-07-07 11:12:38 +00:00
|
|
|
vertical-align: $spinner-vertical-align;
|
2020-05-19 16:53:54 +00:00
|
|
|
background-color: currentColor;
|
2020-11-06 13:16:40 +00:00
|
|
|
// stylelint-disable-next-line property-disallowed-list
|
2020-05-19 16:53:54 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
opacity: 0;
|
2021-07-07 11:12:38 +00:00
|
|
|
animation: $spinner-animation-speed linear infinite spinner-grow;
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.spinner-grow-sm {
|
|
|
|
width: $spinner-width-sm;
|
|
|
|
height: $spinner-height-sm;
|
|
|
|
}
|
2021-03-30 12:34:31 +00:00
|
|
|
|
2021-07-07 11:12:38 +00:00
|
|
|
@if $enable-reduced-motion {
|
2021-03-30 12:34:31 +00:00
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
.spinner-border,
|
|
|
|
.spinner-grow {
|
2021-07-07 11:12:38 +00:00
|
|
|
animation-duration: $spinner-animation-speed * 2;
|
2021-03-30 12:34:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|