2018-04-07 21:17:51 +00:00
|
|
|
.spinner {
|
2018-08-02 04:10:28 +00:00
|
|
|
@apply .h-4 .relative .bg-transparent;
|
2018-04-07 21:17:51 +00:00
|
|
|
pointer-events: none;
|
2018-08-02 04:10:28 +00:00
|
|
|
|
|
|
|
&.spinner-xl {
|
|
|
|
@apply .h-16;
|
|
|
|
}
|
2018-04-07 21:17:51 +00:00
|
|
|
|
|
|
|
&:after {
|
2019-02-09 22:32:18 +00:00
|
|
|
@apply .border-2 .border-neutral-400 .absolute .block .h-4 .w-4 .rounded-full;
|
2018-04-07 21:17:51 +00:00
|
|
|
animation: spinners--spin 500ms infinite linear;
|
|
|
|
border-top-color: transparent !important;
|
|
|
|
border-right-color: transparent !important;
|
|
|
|
content: '';
|
|
|
|
left: calc(50% - (1em / 2));
|
2018-05-28 23:28:36 +00:00
|
|
|
}
|
|
|
|
|
2018-09-12 04:32:01 +00:00
|
|
|
&.spinner-relative:after {
|
|
|
|
@apply .relative;
|
|
|
|
}
|
|
|
|
|
2018-05-28 23:28:36 +00:00
|
|
|
&.spinner-xl:after {
|
|
|
|
@apply .h-16 .w-16;
|
|
|
|
left: calc(50% - (4rem / 2));
|
2018-04-07 21:17:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Speeds
|
|
|
|
*/
|
|
|
|
&.spin-slow:after {
|
|
|
|
animation: spinners--spin 1200ms infinite linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Spinner Colors
|
|
|
|
*/
|
2018-06-21 06:05:35 +00:00
|
|
|
&.blue:after, &.text-blue:after {
|
2019-02-09 22:44:35 +00:00
|
|
|
@apply .border-primary-500;
|
2018-04-07 21:17:51 +00:00
|
|
|
}
|
|
|
|
|
2018-06-21 06:05:35 +00:00
|
|
|
&.white:after, &.text-white:after {
|
2018-04-07 21:17:51 +00:00
|
|
|
@apply .border-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.spinner-thick:after {
|
|
|
|
@apply .border-4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes spinners--spin {
|
|
|
|
from {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
to {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|
2019-06-12 06:12:03 +00:00
|
|
|
|
|
|
|
.spinner-circle {
|
|
|
|
@apply .w-8 .h-8;
|
|
|
|
border: 3px solid hsla(211, 12%, 43%, 0.2);
|
|
|
|
border-top-color: hsl(211, 12%, 43%);
|
|
|
|
border-radius: 50%;
|
|
|
|
animation: spin 1s cubic-bezier(0.55, 0.25, 0.25, 0.70) infinite;
|
|
|
|
|
|
|
|
&.spinner-sm {
|
|
|
|
@apply .w-4 .h-4 .border-2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.spinner-lg {
|
|
|
|
@apply .w-16 .h-16;
|
|
|
|
border-width: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.spinner-blue {
|
|
|
|
border: 3px solid hsla(212, 92%, 43%, 0.2);
|
|
|
|
border-top-color: hsl(212, 92%, 43%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.spinner-white {
|
|
|
|
border: 3px solid rgba(255, 255, 255, 0.2);
|
|
|
|
border-top-color: rgb(255, 255, 255);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes spin {
|
|
|
|
to {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|