index.module.less 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. :global {
  2. .van-search {
  3. padding-left: 14px;
  4. padding-right: 14px;
  5. input {
  6. -webkit-user-select: text !important;
  7. user-select: text !important;
  8. }
  9. .van-search__field {
  10. padding: 0.13333rem var(--van-padding-xs) 0.13333rem 0 !important;
  11. background: transparent !important;
  12. }
  13. .van-field__clear {
  14. color: #C1BDC1 !important;
  15. }
  16. }
  17. }
  18. .col-search {
  19. --van-cell-background-color: transparent;
  20. // padding-left: 14px;
  21. // padding-right: 14px;
  22. :global {
  23. .van-field__left-icon {
  24. display: flex;
  25. align-items: center;
  26. }
  27. .van-field__right-icon {
  28. font-size: 0;
  29. }
  30. .van-search__action {
  31. display: flex;
  32. }
  33. .van-field__control {
  34. font-size: 14px;
  35. }
  36. }
  37. &.default {
  38. :global {
  39. .van-search__content {
  40. background: #f3f3f3;
  41. }
  42. }
  43. }
  44. &.col-tenant-search {
  45. --van-cell-line-height: 34px;
  46. &.default,
  47. &.transparent {
  48. :global {
  49. .van-search__content {
  50. background: #f5f6f8;
  51. border: 1px solid #fff;
  52. }
  53. .van-search__field {
  54. padding: 0 3px 0 0 !important
  55. }
  56. .van-field__control {
  57. color: #333 !important;
  58. }
  59. input::placeholder {
  60. color: rgba(0, 0, 0, 0.4);
  61. }
  62. }
  63. }
  64. }
  65. &.white {
  66. :global {
  67. .van-search__content {
  68. background: #fff;
  69. }
  70. }
  71. }
  72. &.transparent {
  73. :global {
  74. .van-search__content {
  75. background: rgba(255, 255, 255, 0.16);
  76. input::placeholder {
  77. color: #fff;
  78. }
  79. input {
  80. color: #fff;
  81. }
  82. .van-field__clear {
  83. color: #fff;
  84. }
  85. }
  86. }
  87. }
  88. .searchBtn {
  89. width: 56px;
  90. height: 28px;
  91. padding: 0;
  92. font-size: 14px;
  93. --van-button-mini-height: 28px;
  94. --van-font-size-xs: 14px;
  95. line-height: 1;
  96. &.searchTenantBtn {
  97. background: linear-gradient(270deg, #FF3C81 0%, #FF76A6 100%);
  98. border: none;
  99. }
  100. }
  101. }