index.module.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. .fraction {
  2. display: flex;
  3. flex-direction: column;
  4. align-items: center;
  5. justify-content: center;
  6. color: #fff;
  7. position: relative;
  8. width: 100vw;
  9. height: 100vh;
  10. overflow: hidden;
  11. .closeIcon {
  12. position: fixed;
  13. width: 20px;
  14. height: 20px;
  15. max-width: 20px;
  16. max-height: 20px;
  17. right: 30px;
  18. top: 30px;
  19. }
  20. .closeDom {
  21. position: fixed;
  22. width: 20px;
  23. height: 20px;
  24. right: 30px;
  25. top: 30px;
  26. &::before,
  27. &::after {
  28. content: '';
  29. position: absolute;
  30. top: 50%;
  31. left: 50%;
  32. width: 100%;
  33. height: 2px;
  34. background-color: #ffffff;
  35. transform-origin: center;
  36. border-radius: 5px;
  37. }
  38. &::before {
  39. transform: translate(-50%, -50%) rotate(45deg);
  40. }
  41. &::after {
  42. transform: translate(-50%, -50%) rotate(-45deg);
  43. }
  44. }
  45. .bg {
  46. width: 264px;
  47. }
  48. .content {
  49. .title {
  50. line-height: 24px;
  51. font-size: 18px;
  52. font-family: PingFangSC, PingFang SC;
  53. font-weight: 600;
  54. color: #fff;
  55. text-align: center;
  56. }
  57. .desc {
  58. font-size: 15px;
  59. font-family: PingFangSC, PingFang SC;
  60. font-weight: 400;
  61. color: rgba(255, 255, 255, 0.7);
  62. margin: 20px 0 24px;
  63. text-align: center;
  64. }
  65. }
  66. .btn {
  67. width: 96px;
  68. height: 32px;
  69. &:active{
  70. opacity: 0.8;
  71. }
  72. }
  73. }
  74. .loadColumn {
  75. display: flex;
  76. align-items: center;
  77. background: rgba(0, 0, 0, 0.6);
  78. border-radius: 8px;
  79. padding: 8px 12px;
  80. position: relative;
  81. .close {
  82. position: absolute;
  83. width: 19px;
  84. height: 19px;
  85. right: -30px;
  86. top: -22px;
  87. }
  88. .loadIcon {
  89. width: 17px;
  90. height: 17px;
  91. }
  92. .successIcon {
  93. width: 18px;
  94. height: 18px;
  95. }
  96. p {
  97. font-size: 14px;
  98. font-family: PingFangSC, PingFang SC;
  99. color: #fff;
  100. margin-left: 6px;
  101. }
  102. }
  103. .loadingPop {
  104. display: flex;
  105. flex-direction: column;
  106. justify-content: center;
  107. align-items: center;
  108. .loadingIcon {
  109. width: 118px;
  110. }
  111. .loadingTip {
  112. font-size: 16px;
  113. color: #fff;
  114. line-height: 20px;
  115. margin-bottom: 24px;
  116. }
  117. .loadingClose {
  118. font-weight: 400;
  119. font-size: 14px;
  120. color: #FFFFFF;
  121. line-height: 32px;
  122. border: 1px solid rgba(255, 255, 255, 0.7);
  123. border-radius: 16px;
  124. text-align: center;
  125. width: 96px;
  126. height: 32px;
  127. box-sizing: border-box;
  128. &:active{
  129. opacity: 0.8;
  130. }
  131. }
  132. }
  133. .loadingCssBox{
  134. width: 27px;
  135. height: 27px;
  136. display: flex;
  137. justify-content: space-between;
  138. flex-wrap: wrap;
  139. align-content: space-between;
  140. margin-bottom: 17px;
  141. animation: rotate 1.5s ease-in-out infinite;
  142. .loadingCssItem{
  143. width: 11px;
  144. height: 11px;
  145. border-radius: 50%;
  146. background: #11FFD4;
  147. opacity: 0.5;
  148. &:nth-child(2){
  149. opacity:1;
  150. }
  151. }
  152. }
  153. @keyframes rotate {
  154. 0% {
  155. transform: rotate(0deg);
  156. }
  157. 90% {
  158. transform: rotate(360deg);
  159. }
  160. 100% {
  161. transform: rotate(360deg);
  162. }
  163. }