index.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. @import (reference) './variable.less';
  2. @loadingPrefix: ant-loading;
  3. .@{loadingPrefix} {
  4. &-small {
  5. width: @loading-icon-size-small;
  6. height: @loading-icon-size-small;
  7. }
  8. &-medium {
  9. width: @loading-icon-size-medium;
  10. height: @loading-icon-size-medium;
  11. }
  12. &-large {
  13. width: @loading-icon-size-large;
  14. height: @loading-icon-size-large;
  15. }
  16. &-x-large {
  17. width: @loading-icon-size-x-large;
  18. height: @loading-icon-size-x-large;
  19. }
  20. &-spin {
  21. display: inline-flex;
  22. justify-content: center;
  23. align-items: center;
  24. &-icon {
  25. width: 100%;
  26. height: 100%;
  27. background-position: center;
  28. background-repeat: no-repeat;
  29. }
  30. }
  31. &-mini {
  32. display: inline-flex;
  33. justify-content: center;
  34. align-items: center;
  35. min-width: 66 * @rpx;
  36. min-height: 66 * @rpx;
  37. &-item {
  38. flex: 0 0 8 * @rpx;
  39. min-width: 8 * @rpx;
  40. min-height: 8 * @rpx;
  41. max-width: 8 * @rpx;
  42. max-height: 8 * @rpx;
  43. overflow: hidden;
  44. margin-right: @h-spacing-standard;
  45. font-size: 0;
  46. border-radius: @corner-radius-sm / 2;
  47. background-color: @COLOR_TEXT_ASSIST;
  48. animation: ant-loading-animation 1s 0s infinite linear;
  49. &__1 {
  50. animation-delay: 0s;
  51. }
  52. &__2 {
  53. animation-delay: 150ms;
  54. }
  55. &__3 {
  56. margin-right: 0;
  57. animation-delay: 300ms;
  58. }
  59. }
  60. }
  61. }
  62. @keyframes ant-loading-animation {
  63. 0% {
  64. transform: translate3d(0, 0, 0);
  65. }
  66. 12% {
  67. transform: translate3d(0, -150%, 0);
  68. }
  69. 40% {
  70. transform: translate3d(0, 110%, 0);
  71. }
  72. 55% {
  73. transform: translate3d(0, -10%, 0);
  74. }
  75. 60% {
  76. transform: translate3d(0, 0, 0);
  77. }
  78. 100% {
  79. transform: translate3d(0, 0, 0);
  80. }
  81. }