modal.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. .tui-modal-box {
  2. position: fixed;
  3. width: 580rpx;
  4. left: 50%;
  5. top: 40%;
  6. margin: auto;
  7. background: #fff;
  8. z-index: 99998;
  9. transition: all 0.3s ease-in-out;
  10. opacity: 0;
  11. visibility: hidden;
  12. border-radius: 16rpx;
  13. box-sizing: border-box;
  14. /* padding: 40rpx 60rpx; */
  15. }
  16. .tui-modal-scale {
  17. transform: translate(-50%, -50%) scale(0);
  18. }
  19. .tui-modal-normal {
  20. transform: translate(-50%, -50%) scale(1);
  21. }
  22. .tui-modal-show {
  23. opacity: 1;
  24. visibility: visible;
  25. }
  26. .tui-modal-mask {
  27. position: fixed;
  28. top: 0;
  29. left: 0;
  30. right: 0;
  31. bottom: 0;
  32. background: rgba(0, 0, 0, 0.6) !important;
  33. z-index: 99996;
  34. transition: all 0.3s ease-in-out;
  35. opacity: 0;
  36. visibility: hidden;
  37. }
  38. .tui-mask-show {
  39. visibility: visible;
  40. opacity: 1;
  41. }
  42. .tui-modal-title {
  43. text-align: center;
  44. font-size: 34rpx;
  45. color: #333;
  46. padding-top: 20rpx;
  47. font-weight: bold;
  48. }
  49. .tui-modal-content {
  50. text-align: center;
  51. color: #999;
  52. font-size: 28rpx;
  53. padding-top: 20rpx;
  54. padding-bottom: 60rpx;
  55. }
  56. .tui-mtop {
  57. margin-top: 30rpx;
  58. }
  59. .tui-mbtm {
  60. margin-bottom: 30rpx;
  61. }
  62. .tui-modalBtn-box {
  63. display: flex;
  64. align-items: center;
  65. justify-content: center;
  66. }
  67. .tui-flex-column {
  68. flex-direction: column;
  69. }
  70. .tui-modal-btn {
  71. width: 44%;
  72. height: 68rpx;
  73. line-height: 68rpx;
  74. position: relative;
  75. border-radius: 10rpx;
  76. font-size: 24rpx;
  77. overflow: visible;
  78. }
  79. .tui-modal-btn::after {
  80. content: "";
  81. position: absolute;
  82. width: 200%;
  83. height: 200%;
  84. -webkit-transform-origin: 0 0;
  85. transform-origin: 0 0;
  86. -webkit-transform: scale(0.5, 0.5);
  87. transform: scale(0.5, 0.5);
  88. left: 0;
  89. top: 0;
  90. border-radius: 20rpx;
  91. }
  92. .tui-btn-width {
  93. width: 80% !important;
  94. }
  95. .tui-primary {
  96. background: #5677fc;
  97. color: #fff;
  98. }
  99. .tui-primary-hover {
  100. background: #4a67d6;
  101. color: #e5e5e5;
  102. }
  103. .tui-primary-outline {
  104. color: #5677fc;
  105. background: none;
  106. }
  107. .tui-primary-outline::after {
  108. border: 1px solid #5677fc;
  109. }
  110. .tui-danger {
  111. background: #ed3f14;
  112. color: #fff;
  113. }
  114. .tui-danger-hover {
  115. background: #d53912;
  116. color: #e5e5e5;
  117. }
  118. .tui-danger-outline {
  119. color: #ed3f14;
  120. background: none;
  121. }
  122. .tui-danger-outline::after {
  123. border: 1px solid #ed3f14;
  124. }
  125. .tui-red {
  126. background: #e41f19;
  127. color: #fff;
  128. }
  129. .tui-red-hover {
  130. background: #c51a15;
  131. color: #e5e5e5;
  132. }
  133. .tui-red-outline {
  134. color: #e41f19;
  135. background: none;
  136. }
  137. .tui-red-outline::after {
  138. border: 1px solid #e41f19;
  139. }
  140. .tui-warning {
  141. background: #ff7900;
  142. color: #fff;
  143. }
  144. .tui-warning-hover {
  145. background: #e56d00;
  146. color: #e5e5e5;
  147. }
  148. .tui-warning-outline {
  149. color: #ff7900;
  150. background: none;
  151. }
  152. .tui-warning-outline::after {
  153. border: 1px solid #ff7900;
  154. }
  155. .tui-green {
  156. background: #19be6b;
  157. color: #fff;
  158. }
  159. .tui-green-hover {
  160. background: #16ab60;
  161. color: #e5e5e5;
  162. }
  163. .tui-green-outline {
  164. color: #19be6b;
  165. background: none;
  166. }
  167. .tui-green-outline::after {
  168. border: 1px solid #19be6b;
  169. }
  170. .tui-white {
  171. background: #fff;
  172. color: #333;
  173. }
  174. .tui-white-hover {
  175. background: #f7f7f9;
  176. color: #666;
  177. }
  178. .tui-white-outline {
  179. color: #333;
  180. background: none;
  181. }
  182. .tui-white-outline::after {
  183. border: 1px solid #333;
  184. }
  185. .tui-gray {
  186. background: #ededed;
  187. color: #999;
  188. }
  189. .tui-gray-hover {
  190. background: #d5d5d5;
  191. color: #898989;
  192. }
  193. .tui-gray-outline {
  194. color: #999;
  195. background: none;
  196. }
  197. .tui-gray-outline::after {
  198. border: 1px solid #999;
  199. }
  200. .tui-outline-hover {
  201. opacity: 0.6;
  202. }
  203. .tui-circle-btn {
  204. border-radius: 40rpx !important;
  205. }
  206. .tui-circle-btn::after {
  207. border-radius: 80rpx !important;
  208. }