button.wxss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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-button {
  29. display: inline-flex;
  30. align-items: center;
  31. justify-content: center;
  32. position: relative;
  33. white-space: nowrap;
  34. text-align: center;
  35. background-image: none;
  36. border: 1px solid transparent;
  37. cursor: pointer;
  38. transition: all 0.3s;
  39. user-select: none;
  40. touch-action: manipulation;
  41. font-size: 28rpx;
  42. height: 80rpx;
  43. border-radius: 8rpx;
  44. color: rgba(0, 0, 0, 0.9);
  45. border-color: #dcdcdc;
  46. background-color: #fff;
  47. outline: none;
  48. font-family: PingFang SC, Microsoft YaHei, Arial Regular;
  49. /* stylelint-disable-next-line */
  50. -webkit-appearance: none;
  51. }
  52. .t-button::after {
  53. background-color: #000;
  54. content: ' ';
  55. opacity: 0;
  56. top: 0;
  57. right: 0;
  58. bottom: 0;
  59. left: 0;
  60. position: absolute;
  61. }
  62. .t-button:not(.t-is-disabled):active::after {
  63. opacity: 0.1;
  64. }
  65. .t-button--default {
  66. color: rgba(0, 0, 0, 0.9);
  67. background-color: #ffffff;
  68. border: 1px solid #dcdcdc;
  69. }
  70. .t-button--default.t-is-disabled {
  71. color: rgba(0, 0, 0, 0.26);
  72. }
  73. .t-button--primary {
  74. color: #fff;
  75. background-color: #0052d9;
  76. border: 1px solid #0052d9;
  77. }
  78. .t-button--primary.t-is-disabled {
  79. background-color: #bbd3fb;
  80. border-color: #bbd3fb;
  81. }
  82. .t-button--danger {
  83. color: #fff;
  84. background-color: #e34d59;
  85. border: 1px solid #e34d59;
  86. }
  87. .t-button--danger.t-is-disabled {
  88. background-color: #f8b9be;
  89. border-color: #f8b9be;
  90. }
  91. .t-button--text {
  92. color: #0052d9;
  93. background: none;
  94. border: 0;
  95. }
  96. .t-button--text.t-button--size-default {
  97. width: auto;
  98. height: auto;
  99. line-height: normal;
  100. padding: 0;
  101. }
  102. .t-button--text.t-is-disabled {
  103. color: #bbd3fb;
  104. }
  105. .t-button--ghost {
  106. background-color: transparent;
  107. border: 1px solid #fff;
  108. color: #fff;
  109. }
  110. .t-button--ghost.t-is-disabled {
  111. color: rgba(255, 255, 255, 0.35);
  112. border-color: rgba(255, 255, 255, 0.35);
  113. }
  114. .t-button--outline {
  115. background-color: transparent;
  116. }
  117. .t-button--outline.t-button--primary {
  118. color: #0052d9;
  119. }
  120. .t-button--outline.t-button--primary.t-is-disabled {
  121. background-color: transparent;
  122. color: #bbd3fb;
  123. }
  124. .t-button--outline.t-button--danger {
  125. color: #e34d59;
  126. }
  127. .t-button--outline.t-button--danger.t-is-disabled {
  128. background-color: transparent;
  129. color: #f8b9be;
  130. }
  131. .t-button--dashed {
  132. background-color: transparent;
  133. border-style: dashed;
  134. }
  135. .t-button--dashed.t-button--primary {
  136. color: #0052d9;
  137. }
  138. .t-button--dashed.t-button--primary.t-is-disabled {
  139. background-color: transparent;
  140. color: #bbd3fb;
  141. }
  142. .t-button--dashed.t-button--danger {
  143. color: #e34d59;
  144. }
  145. .t-button--dashed.t-button--danger.t-is-disabled {
  146. background-color: transparent;
  147. color: #f8b9be;
  148. }
  149. .t-button--base {
  150. height: 80rpx;
  151. line-height: 80rpx;
  152. padding-left: 31rpx;
  153. padding-right: 31rpx;
  154. font-size: 28rpx;
  155. }
  156. .t-button--size-l {
  157. height: 88rpx;
  158. line-height: 88rpx;
  159. }
  160. .t-button--size-l .t-button__icon {
  161. font-size: 48rpx;
  162. }
  163. .t-button--size-l .t-button__loading + .t-button__content:not(:empty),
  164. .t-button--size-l .t-button__icon + .t-button__content:not(:empty) {
  165. margin-left: 16rpx;
  166. }
  167. .t-button--size-m .t-button__icon {
  168. font-size: 44rpx;
  169. }
  170. .t-button--size-m .t-button__loading + .t-button__content:not(:empty),
  171. .t-button--size-m .t-button__icon + .t-button__content:not(:empty) {
  172. margin-left: 8rpx;
  173. }
  174. .t-button--size-s {
  175. height: 72rpx;
  176. line-height: 72rpx;
  177. }
  178. .t-button--size-s .t-button__icon {
  179. font-size: 40rpx;
  180. }
  181. .t-button--size-s .t-button__loading + .t-button__content:not(:empty),
  182. .t-button--size-s .t-button__icon + .t-button__content:not(:empty) {
  183. margin-left: 8rpx;
  184. }
  185. .t-button__icon {
  186. border-radius: 8rpx;
  187. }
  188. .t-button--round.t-button--size-l {
  189. border-radius: 44rpx;
  190. }
  191. .t-button--round.t-button--size-m {
  192. border-radius: 40rpx;
  193. }
  194. .t-button--round.t-button--size-s {
  195. border-radius: 36rpx;
  196. }
  197. .t-button--square {
  198. padding: 0;
  199. }
  200. .t-button--square.t-button--size-l {
  201. width: 88rpx;
  202. }
  203. .t-button--square.t-button--size-m {
  204. width: 80rpx;
  205. }
  206. .t-button--square.t-button--size-s {
  207. width: 72rpx;
  208. }
  209. .t-button--circle {
  210. padding: 0;
  211. }
  212. .t-button--circle.t-button--size-l {
  213. border-radius: 50%;
  214. width: 88rpx;
  215. }
  216. .t-button--circle.t-button--size-m {
  217. border-radius: 50%;
  218. width: 80rpx;
  219. }
  220. .t-button--circle.t-button--size-s {
  221. border-radius: 50%;
  222. width: 72rpx;
  223. }
  224. .t-button.t-is-block {
  225. display: flex;
  226. width: 100%;
  227. }
  228. .t-button.t-is-disabled {
  229. cursor: not-allowed;
  230. }
  231. .t-button.button-hover:after {
  232. border-radius: 8rpx;
  233. }
  234. .t-button .position-center {
  235. display: flex;
  236. align-items: center;
  237. justify-content: center;
  238. }
  239. .t-button .indicator-blue {
  240. color: white;
  241. }
  242. .t-button-group .t-button {
  243. border: 0;
  244. border-radius: 0;
  245. box-shadow: 0;
  246. width: 100%;
  247. height: 100%;
  248. }