modal.wxss 3.4 KB

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