index.less 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. @import (reference) './variable.less';
  2. @inputItemPrefix: ant-input;
  3. .@{inputItemPrefix} {
  4. display: flex;
  5. align-items: center;
  6. background: @COLOR_CARD;
  7. &-disabled {
  8. opacity: 0.4;
  9. }
  10. &-line {
  11. position: relative;
  12. flex: 1;
  13. display: flex;
  14. align-items: center;
  15. overflow: hidden;
  16. }
  17. &-prefix {
  18. color: @COLOR_TEXT_WEAK;
  19. font-size: 34 * @rpx;
  20. margin: 0 8 * @rpx 0 8 * @rpx;
  21. &:empty {
  22. display: none;
  23. }
  24. }
  25. &-suffix {
  26. color: @COLOR_TEXT_WEAK;
  27. font-size: 34 * @rpx;
  28. margin: 0 8 * @rpx 0 8 * @rpx;
  29. &:empty {
  30. display: none;
  31. }
  32. }
  33. &-content {
  34. width: 100%;
  35. align-self: center;
  36. padding: 0;
  37. font-size: 34 * @rpx;
  38. text-align: left;
  39. color: @input-item-color;
  40. background: @COLOR_CARD;
  41. }
  42. &-clear {
  43. display: flex;
  44. justify-content: center;
  45. align-items: center;
  46. border-radius: 16 * @rpx;
  47. margin-left: 8 * @rpx;
  48. &-icon {
  49. color: @COLOR_TEXT_WEAK;
  50. font-size: 34 * @rpx;
  51. }
  52. }
  53. &-clear-show {
  54. opacity: 1;
  55. }
  56. &-clear-hidden {
  57. opacity: 0;
  58. pointer-events: none;
  59. }
  60. &-placeholder {
  61. font-size: 34 * @rpx;
  62. color: @input-item-placeholder-color;
  63. margin-left: -6 * @rpx;
  64. }
  65. }