loading.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /*!
  2. * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
  3. * Copyright 2015 Daniel Cardoso <@DanielCardoso>
  4. * Licensed under MIT
  5. */
  6. .la-ball-clip-rotate,
  7. .la-ball-clip-rotate>div {
  8. position: relative;
  9. -webkit-box-sizing: border-box;
  10. -moz-box-sizing: border-box;
  11. box-sizing: border-box;
  12. }
  13. .la-ball-clip-rotate {
  14. display: block;
  15. font-size: 0;
  16. color: #fff;
  17. }
  18. .la-ball-clip-rotate.la-dark {
  19. color: #333;
  20. }
  21. .la-ball-clip-rotate>div {
  22. display: inline-block;
  23. float: none;
  24. background-color: currentColor;
  25. border: 0 solid currentColor;
  26. }
  27. .la-ball-clip-rotate {
  28. width: 32px;
  29. height: 32px;
  30. }
  31. .la-ball-clip-rotate>div {
  32. width: 32px;
  33. height: 32px;
  34. background: transparent;
  35. border-width: 2px;
  36. border-bottom-color: transparent;
  37. border-radius: 100%;
  38. -webkit-animation: ball-clip-rotate 1.0s linear infinite;
  39. -moz-animation: ball-clip-rotate 1.0s linear infinite;
  40. -o-animation: ball-clip-rotate 1.0s linear infinite;
  41. animation: ball-clip-rotate 1.0s linear infinite;
  42. }
  43. .la-ball-clip-rotate.la-sm {
  44. width: 16px;
  45. height: 16px;
  46. }
  47. .la-ball-clip-rotate.la-sm>div {
  48. width: 16px;
  49. height: 16px;
  50. border-width: 1px;
  51. }
  52. .la-ball-clip-rotate.la-2x {
  53. width: 64px;
  54. height: 64px;
  55. }
  56. .la-ball-clip-rotate.la-2x>div {
  57. width: 64px;
  58. height: 64px;
  59. border-width: 4px;
  60. }
  61. .la-ball-clip-rotate.la-3x {
  62. width: 96px;
  63. height: 96px;
  64. }
  65. .la-ball-clip-rotate.la-3x>div {
  66. width: 96px;
  67. height: 96px;
  68. border-width: 6px;
  69. }
  70. /*
  71. * Animation
  72. */
  73. @-webkit-keyframes ball-clip-rotate {
  74. 0% {
  75. -webkit-transform: rotate(0deg);
  76. transform: rotate(0deg);
  77. }
  78. 50% {
  79. -webkit-transform: rotate(180deg);
  80. transform: rotate(180deg);
  81. }
  82. 100% {
  83. -webkit-transform: rotate(360deg);
  84. transform: rotate(360deg);
  85. }
  86. }
  87. @-moz-keyframes ball-clip-rotate {
  88. 0% {
  89. -moz-transform: rotate(0deg);
  90. transform: rotate(0deg);
  91. }
  92. 50% {
  93. -moz-transform: rotate(180deg);
  94. transform: rotate(180deg);
  95. }
  96. 100% {
  97. -moz-transform: rotate(360deg);
  98. transform: rotate(360deg);
  99. }
  100. }
  101. @-o-keyframes ball-clip-rotate {
  102. 0% {
  103. -o-transform: rotate(0deg);
  104. transform: rotate(0deg);
  105. }
  106. 50% {
  107. -o-transform: rotate(180deg);
  108. transform: rotate(180deg);
  109. }
  110. 100% {
  111. -o-transform: rotate(360deg);
  112. transform: rotate(360deg);
  113. }
  114. }
  115. @keyframes ball-clip-rotate {
  116. 0% {
  117. -webkit-transform: rotate(0deg);
  118. -moz-transform: rotate(0deg);
  119. -o-transform: rotate(0deg);
  120. transform: rotate(0deg);
  121. }
  122. 50% {
  123. -webkit-transform: rotate(180deg);
  124. -moz-transform: rotate(180deg);
  125. -o-transform: rotate(180deg);
  126. transform: rotate(180deg);
  127. }
  128. 100% {
  129. -webkit-transform: rotate(360deg);
  130. -moz-transform: rotate(360deg);
  131. -o-transform: rotate(360deg);
  132. transform: rotate(360deg);
  133. }
  134. }
  135. :root {
  136. --delay: 0;
  137. }
  138. .progress {
  139. position: relative;
  140. width: 16px;
  141. height: 16px;
  142. background: conic-gradient(#333 80%, #fff 80%);
  143. border-radius: 50%;
  144. display: flex;
  145. align-items: center;
  146. justify-content: center;
  147. }
  148. .progress>div {
  149. position: absolute;
  150. height: 14px;
  151. width: 14px;
  152. background-color: #fff;
  153. border-radius: 50%;
  154. }
  155. .off {
  156. display: none !important;
  157. }