input.wxss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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-input--bordered::after {
  29. position: absolute;
  30. box-sizing: border-box;
  31. content: ' ';
  32. pointer-events: none;
  33. right: 0;
  34. left: 0;
  35. bottom: 0;
  36. border-bottom: 1px solid #e7e7e7;
  37. transform: scaleY(0.5);
  38. left: 32rpx;
  39. }
  40. .t-input {
  41. position: relative;
  42. display: flex;
  43. padding: 24rpx 32rpx;
  44. background: #fff;
  45. }
  46. .t-input__name {
  47. width: 164rpx;
  48. margin-right: 32rpx;
  49. flex: none;
  50. }
  51. .t-input__content {
  52. display: flex;
  53. align-items: center;
  54. width: 100%;
  55. font-size: 32rpx;
  56. }
  57. .t-input__wrap {
  58. display: flex;
  59. flex-wrap: wrap;
  60. flex: auto;
  61. }
  62. .t-input__wrap--suffix,
  63. .t-input__wrap--icon {
  64. flex: 0 0 auto;
  65. margin-left: 24rpx;
  66. color: #bbbbbb;
  67. font-size: 32rpx;
  68. }
  69. .t-input__wrap--suffix:empty,
  70. .t-input__wrap--icon:empty {
  71. display: none;
  72. }
  73. .t-input__wrap--suffix {
  74. position: relative;
  75. padding-left: 24rpx;
  76. }
  77. .t-input__wrap--suffix::after {
  78. position: absolute;
  79. box-sizing: border-box;
  80. content: ' ';
  81. pointer-events: none;
  82. top: 0;
  83. bottom: 0;
  84. left: 0;
  85. border-left: 1px solid #e6e6e6;
  86. transform: scaleX(0.5);
  87. }
  88. .t-input__wrap--suffix-text {
  89. position: relative;
  90. padding-left: 24rpx;
  91. color: #000000;
  92. }
  93. .t-input__control {
  94. display: block;
  95. box-sizing: border-box;
  96. width: 100%;
  97. min-width: 0;
  98. margin: 0;
  99. padding: 0;
  100. color: #000000;
  101. line-height: inherit;
  102. text-align: left;
  103. background-color: transparent;
  104. border: 0;
  105. resize: none;
  106. font-size: inherit;
  107. }
  108. .t-input__control::placeholder {
  109. color: rgba(0, 0, 0, 0.4);
  110. }
  111. .t-input__control:disabled {
  112. color: #000000;
  113. background-color: transparent;
  114. cursor: not-allowed;
  115. opacity: 1;
  116. -webkit-text-fill-color: currentColor;
  117. }
  118. .t-input__control:read-only {
  119. cursor: default;
  120. }
  121. .t-input__control--right {
  122. text-align: right;
  123. }
  124. .t-input__control--center {
  125. text-align: center;
  126. }
  127. .t-input__placeholder {
  128. color: rgba(0, 0, 0, 0.4);
  129. }
  130. .t-input.t-is-error {
  131. align-items: flex-start;
  132. }
  133. .t-input.t-is-error .t-input__control {
  134. color: #e34d59;
  135. }
  136. .t-input.t-is-error .t-input__control::placeholder {
  137. color: #e34d59;
  138. }
  139. .t-input.t-is-error .t-input__placeholder {
  140. color: #e34d59;
  141. }
  142. .t-input.t-is-error .t-input__error-msg {
  143. text-align: left;
  144. padding-top: 24rpx;
  145. font-size: 24rpx;
  146. line-height: 1;
  147. color: rgba(0, 0, 0, 0.4);
  148. width: 100%;
  149. }
  150. .t-input--size-medium {
  151. padding-top: 32rpx;
  152. padding-bottom: 33rpx;
  153. }
  154. .t-input--size-small {
  155. padding-top: 24rpx;
  156. padding-bottom: 24rpx;
  157. }