_spinners.scss 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // Rotating border
  3. //
  4. @keyframes spinner-border {
  5. to { transform: rotate(360deg); }
  6. }
  7. .spinner-border {
  8. display: inline-block;
  9. width: $spinner-width;
  10. height: $spinner-height;
  11. vertical-align: text-bottom;
  12. border: $spinner-border-width solid currentColor;
  13. border-right-color: transparent;
  14. // stylelint-disable-next-line property-blacklist
  15. border-radius: 50%;
  16. animation: spinner-border .75s linear infinite;
  17. }
  18. .spinner-border-sm {
  19. width: $spinner-width-sm;
  20. height: $spinner-height-sm;
  21. border-width: $spinner-border-width-sm;
  22. }
  23. //
  24. // Growing circle
  25. //
  26. @keyframes spinner-grow {
  27. 0% {
  28. transform: scale(0);
  29. }
  30. 50% {
  31. opacity: 1;
  32. }
  33. }
  34. .spinner-grow {
  35. display: inline-block;
  36. width: $spinner-width;
  37. height: $spinner-height;
  38. vertical-align: text-bottom;
  39. background-color: currentColor;
  40. // stylelint-disable-next-line property-blacklist
  41. border-radius: 50%;
  42. opacity: 0;
  43. animation: spinner-grow .75s linear infinite;
  44. }
  45. .spinner-grow-sm {
  46. width: $spinner-width-sm;
  47. height: $spinner-height-sm;
  48. }