loading.wxss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. .t-loading {
  29. display: inline-flex;
  30. align-items: center;
  31. justify-content: center;
  32. font-size: 24rpx;
  33. }
  34. .t-loading__spinner {
  35. position: relative;
  36. box-sizing: border-box;
  37. width: 100%;
  38. height: 100%;
  39. max-width: 100%;
  40. max-height: 100%;
  41. animation: rotate 0.8s linear infinite;
  42. color: #0052d9;
  43. }
  44. .t-loading__spinner.reverse {
  45. animation-name: rotateReverse;
  46. }
  47. .t-loading__spinner--spinner {
  48. animation-timing-function: steps(12);
  49. }
  50. .t-loading__spinner--spinner .t-loading__dot {
  51. position: absolute;
  52. top: 0;
  53. left: 0;
  54. width: 100%;
  55. height: 100%;
  56. }
  57. .t-loading__spinner--spinner .t-loading__dot::before {
  58. display: block;
  59. width: 5rpx;
  60. height: 25%;
  61. margin: 0 auto;
  62. background-color: currentColor;
  63. border-radius: 40%;
  64. content: ' ';
  65. }
  66. .t-loading__spinner--circular .t-loading__circular {
  67. border-radius: 100%;
  68. width: 100%;
  69. height: 100%;
  70. background: conic-gradient(from 180deg at 50% 50%, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0) 60deg, currentColor 330deg, rgba(255, 255, 255, 0) 360deg);
  71. mask: radial-gradient(transparent calc(50% - 1rpx), #fff 50%);
  72. /* stylelint-disable-next-line */
  73. -webkit-mask: radial-gradient(transparent calc(50% - 1rpx), #fff 50%);
  74. }
  75. .t-loading__spinner--dots {
  76. display: flex;
  77. justify-content: space-between;
  78. align-items: center;
  79. animation: none;
  80. }
  81. .t-loading__spinner--dots .t-loading__dot {
  82. width: 20%;
  83. height: 20%;
  84. border-radius: 50%;
  85. background-color: currentColor;
  86. animation-duration: 1.8s;
  87. animation-name: dotting;
  88. animation-timing-function: linear;
  89. animation-iteration-count: infinite;
  90. animation-fill-mode: both;
  91. }
  92. .t-loading--vertical {
  93. flex-direction: column;
  94. }
  95. .t-loading--vertical .t-loading__text {
  96. margin-top: 12rpx;
  97. }
  98. .t-loading--horizontal {
  99. flex-direction: row;
  100. }
  101. .t-loading--horizontal .t-loading__text {
  102. margin-left: 16rpx;
  103. }
  104. .t-loading__refresh-btn {
  105. margin-left: 16rpx;
  106. color: #0052d9;
  107. }
  108. .t-loading__bar {
  109. height: 6rpx;
  110. width: 80%;
  111. transition: 0.5s;
  112. background-color: #0052d9;
  113. display: none;
  114. }
  115. .t-loading__bar--static {
  116. display: block;
  117. }
  118. .t-loading__bar--loaded {
  119. opacity: 0;
  120. height: 0;
  121. animation: t-bar-loaded 1s ease-out;
  122. }
  123. .t-loading__bar--animation {
  124. animation: t-bar 8s linear;
  125. display: block;
  126. }
  127. @keyframes t-bar {
  128. 0% {
  129. width: 0;
  130. }
  131. 50% {
  132. width: 70%;
  133. }
  134. 100% {
  135. width: 80%;
  136. }
  137. }
  138. @keyframes t-bar-loaded {
  139. 0% {
  140. height: 6rpx;
  141. opacity: 1;
  142. width: 90%;
  143. }
  144. 50% {
  145. height: 6rpx;
  146. opacity: 1;
  147. width: 100%;
  148. }
  149. 100% {
  150. height: 0;
  151. opacity: 0;
  152. width: 100%;
  153. }
  154. }
  155. .t-loading__dot:nth-of-type(1) {
  156. transform: rotate(30deg);
  157. opacity: 0;
  158. }
  159. .t-loading__dot:nth-of-type(2) {
  160. transform: rotate(60deg);
  161. opacity: 0.08333333;
  162. }
  163. .t-loading__dot:nth-of-type(3) {
  164. transform: rotate(90deg);
  165. opacity: 0.16666667;
  166. }
  167. .t-loading__dot:nth-of-type(4) {
  168. transform: rotate(120deg);
  169. opacity: 0.25;
  170. }
  171. .t-loading__dot:nth-of-type(5) {
  172. transform: rotate(150deg);
  173. opacity: 0.33333333;
  174. }
  175. .t-loading__dot:nth-of-type(6) {
  176. transform: rotate(180deg);
  177. opacity: 0.41666667;
  178. }
  179. .t-loading__dot:nth-of-type(7) {
  180. transform: rotate(210deg);
  181. opacity: 0.5;
  182. }
  183. .t-loading__dot:nth-of-type(8) {
  184. transform: rotate(240deg);
  185. opacity: 0.58333333;
  186. }
  187. .t-loading__dot:nth-of-type(9) {
  188. transform: rotate(270deg);
  189. opacity: 0.66666667;
  190. }
  191. .t-loading__dot:nth-of-type(10) {
  192. transform: rotate(300deg);
  193. opacity: 0.75;
  194. }
  195. .t-loading__dot:nth-of-type(11) {
  196. transform: rotate(330deg);
  197. opacity: 0.83333333;
  198. }
  199. .t-loading__dot:nth-of-type(12) {
  200. transform: rotate(360deg);
  201. opacity: 0.91666667;
  202. }
  203. @keyframes rotate {
  204. from {
  205. transform: rotate(0deg);
  206. }
  207. to {
  208. transform: rotate(360deg);
  209. }
  210. }
  211. @keyframes rotateReverse {
  212. from {
  213. transform: rotate(360deg);
  214. }
  215. to {
  216. transform: rotate(0deg);
  217. }
  218. }
  219. @keyframes dotting {
  220. 0% {
  221. opacity: 0.4;
  222. }
  223. 1% {
  224. opacity: 0.8;
  225. }
  226. 33% {
  227. opacity: 0.8;
  228. }
  229. 34% {
  230. opacity: 0.4;
  231. }
  232. 100% {
  233. opacity: 0.4;
  234. }
  235. }