button.wxss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. /* color start*/
  2. .tui-primary {
  3. background: #5677fc !important;
  4. color: #fff;
  5. }
  6. .tui-danger {
  7. background: #EB0909 !important;
  8. color: #fff;
  9. }
  10. .tui-red {
  11. background: #e41f19 !important;
  12. color: #fff;
  13. }
  14. .tui-warning {
  15. background: #ff7900 !important;
  16. color: #fff;
  17. }
  18. .tui-green {
  19. background: #19be6b !important;
  20. color: #fff;
  21. }
  22. .tui-white {
  23. background: #fff !important;
  24. color: #333 !important;
  25. }
  26. .tui-gray {
  27. background: #ededed !important;
  28. color: #999 !important;
  29. }
  30. .tui-hover-gray {
  31. background: #f7f7f9 !important;
  32. }
  33. /* color end*/
  34. /* button start*/
  35. .tui-btn {
  36. width: 100%;
  37. position: relative;
  38. border: 0 !important;
  39. border-radius: 10rpx;
  40. display: inline-block;
  41. }
  42. .tui-btn::after {
  43. content: "";
  44. position: absolute;
  45. width: 200%;
  46. height: 200%;
  47. -webkit-transform-origin: 0 0;
  48. transform-origin: 0 0;
  49. -webkit-transform: scale(0.5, 0.5);
  50. transform: scale(0.5, 0.5);
  51. -webkit-box-sizing: border-box;
  52. box-sizing: border-box;
  53. left: 0;
  54. top: 0;
  55. border-radius: 20rpx;
  56. }
  57. .tui-btn-block {
  58. font-size: 36rpx;
  59. height: 90rpx;
  60. line-height: 90rpx;
  61. }
  62. .tui-white::after {
  63. border: 1px solid #eaeef1;
  64. }
  65. .tui-white-hover {
  66. background: #e5e5e5 !important;
  67. color: #2e2e2e !important;
  68. }
  69. .tui-dark-disabled {
  70. opacity: 0.6;
  71. color: #fafbfc !important;
  72. }
  73. .tui-outline-hover {
  74. opacity: 0.5;
  75. }
  76. .tui-primary-hover {
  77. background: #4a67d6 !important;
  78. color: #e5e5e5 !important;
  79. }
  80. .tui-primary-outline::after {
  81. border: 1px solid #5677fc !important;
  82. }
  83. .tui-primary-outline {
  84. color: #5677fc !important;
  85. background: none;
  86. }
  87. .tui-danger-hover {
  88. background: #c80808 !important;
  89. color: #e5e5e5 !important;
  90. }
  91. .tui-danger-outline {
  92. color: #EB0909 !important;
  93. background: none;
  94. }
  95. .tui-danger-outline::after {
  96. border: 1px solid #EB0909 !important;
  97. }
  98. .tui-red-hover {
  99. background: #c51a15 !important;
  100. color: #e5e5e5 !important;
  101. }
  102. .tui-red-outline {
  103. color: #e41f19 !important;
  104. background: none;
  105. }
  106. .tui-red-outline::after {
  107. border: 1px solid #e41f19 !important;
  108. }
  109. .tui-warning-hover {
  110. background: #e56d00 !important;
  111. color: #e5e5e5 !important;
  112. }
  113. .tui-warning-outline {
  114. color: #ff7900 !important;
  115. background: none;
  116. }
  117. .tui-warning-outline::after {
  118. border: 1px solid #ff7900 !important;
  119. }
  120. .tui-green-hover {
  121. background: #16ab60 !important;
  122. color: #e5e5e5 !important;
  123. }
  124. .tui-green-outline {
  125. color: #44cf85 !important;
  126. background: none;
  127. }
  128. .tui-green-outline::after {
  129. border: 1px solid #44cf85 !important;
  130. }
  131. .tui-gray-hover {
  132. background: #d5d5d5 !important;
  133. color: #898989;
  134. }
  135. .tui-gray-outline, .tui-white-outline {
  136. color: #999 !important;
  137. background: none !important;
  138. }
  139. .tui-gray-outline::after, .tui-white-outline::after {
  140. border: 1px solid #ccc !important;
  141. }
  142. /*圆角 */
  143. .tui-fillet {
  144. border-radius: 45rpx;
  145. }
  146. .tui-white.tui-fillet::after {
  147. border-radius: 90rpx;
  148. }
  149. .tui-outline-fillet::after {
  150. border-radius: 90rpx;
  151. }
  152. /*渐变 */
  153. .tui-gradual {
  154. background: linear-gradient(-90deg, #5677fc, #5c8dff);
  155. border-radius: 45rpx;
  156. color: #fff;
  157. }
  158. .tui-gradual-hover {
  159. color: #d5d4d9 !important;
  160. background: linear-gradient(-90deg, #4a67d6, #4e77d9);
  161. }
  162. .btn-gradual-disabled {
  163. color: #fafbfc !important;
  164. border-radius: 45rpx;
  165. background: linear-gradient(-90deg, #cad8fb, #c9d3fb);
  166. }
  167. /*不同尺寸 */
  168. .tui-btn-mini {
  169. width: auto;
  170. font-size: 30rpx;
  171. height: 70rpx;
  172. line-height: 70rpx;
  173. }
  174. .tui-btn-small {
  175. width: auto;
  176. font-size: 30rpx;
  177. height: 60rpx;
  178. line-height: 60rpx;
  179. }
  180. /* button end*/