2017-07-01 21:51:53 -04:00
|
|
|
//
|
|
|
|
// Rotating border
|
|
|
|
//
|
|
|
|
|
2021-02-10 22:29:59 -05:00
|
|
|
// scss-docs-start spinner-border-keyframes
|
2017-07-01 21:51:53 -04:00
|
|
|
@keyframes spinner-border {
|
2020-06-26 10:06:20 -04:00
|
|
|
to { transform: rotate(360deg) #{"/* rtl:ignore */"}; }
|
2017-07-01 21:51:53 -04:00
|
|
|
}
|
2021-02-10 22:29:59 -05:00
|
|
|
// scss-docs-end spinner-border-keyframes
|
2017-07-01 21:51:53 -04:00
|
|
|
|
|
|
|
.spinner-border {
|
|
|
|
display: inline-block;
|
|
|
|
width: $spinner-width;
|
|
|
|
height: $spinner-height;
|
2021-04-04 14:44:30 -04:00
|
|
|
vertical-align: $spinner-vertical-align;
|
2018-11-17 14:36:11 -05:00
|
|
|
border: $spinner-border-width solid currentColor;
|
|
|
|
border-right-color: transparent;
|
2020-09-28 07:57:48 -04:00
|
|
|
// stylelint-disable-next-line property-disallowed-list
|
2017-07-01 21:51:53 -04:00
|
|
|
border-radius: 50%;
|
2020-11-11 11:27:12 -05:00
|
|
|
animation: $spinner-animation-speed linear infinite spinner-border;
|
2017-07-01 21:51:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.spinner-border-sm {
|
|
|
|
width: $spinner-width-sm;
|
|
|
|
height: $spinner-height-sm;
|
|
|
|
border-width: $spinner-border-width-sm;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Growing circle
|
|
|
|
//
|
|
|
|
|
2021-02-10 22:29:59 -05:00
|
|
|
// scss-docs-start spinner-grow-keyframes
|
2017-07-01 21:51:53 -04:00
|
|
|
@keyframes spinner-grow {
|
|
|
|
0% {
|
|
|
|
transform: scale(0);
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity: 1;
|
2020-04-08 13:58:23 -04:00
|
|
|
transform: none;
|
2017-07-01 21:51:53 -04:00
|
|
|
}
|
|
|
|
}
|
2021-02-10 22:29:59 -05:00
|
|
|
// scss-docs-end spinner-grow-keyframes
|
2017-07-01 21:51:53 -04:00
|
|
|
|
|
|
|
.spinner-grow {
|
|
|
|
display: inline-block;
|
|
|
|
width: $spinner-width;
|
|
|
|
height: $spinner-height;
|
2021-04-04 14:44:30 -04:00
|
|
|
vertical-align: $spinner-vertical-align;
|
2017-07-01 21:51:53 -04:00
|
|
|
background-color: currentColor;
|
2020-09-28 07:57:48 -04:00
|
|
|
// stylelint-disable-next-line property-disallowed-list
|
2017-07-01 21:51:53 -04:00
|
|
|
border-radius: 50%;
|
2018-11-17 14:36:11 -05:00
|
|
|
opacity: 0;
|
2020-11-11 11:27:12 -05:00
|
|
|
animation: $spinner-animation-speed linear infinite spinner-grow;
|
2017-07-01 21:51:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.spinner-grow-sm {
|
|
|
|
width: $spinner-width-sm;
|
|
|
|
height: $spinner-height-sm;
|
|
|
|
}
|
2020-10-19 04:42:19 -04:00
|
|
|
|
|
|
|
@if $enable-reduced-motion {
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
.spinner-border,
|
|
|
|
.spinner-grow {
|
|
|
|
animation-duration: $spinner-animation-speed * 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|