index.module.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. }
  14. }
  15. .col-search {
  16. --van-cell-background-color: transparent;
  17. // padding-left: 14px;
  18. // padding-right: 14px;
  19. :global {
  20. .van-field__left-icon {
  21. display: flex;
  22. align-items: center;
  23. }
  24. .van-field__right-icon {
  25. font-size: 0;
  26. }
  27. .van-search__action {
  28. display: flex;
  29. }
  30. .van-field__control {
  31. font-size: 14px;
  32. }
  33. }
  34. &.default {
  35. :global {
  36. .van-search__content {
  37. background: #f3f3f3;
  38. }
  39. }
  40. }
  41. &.col-tenant-search {
  42. &.default {
  43. :global {
  44. .van-search__content {
  45. background: #f5f6f8;
  46. }
  47. .van-field__control {
  48. color: #aaa;
  49. }
  50. }
  51. }
  52. }
  53. &.white {
  54. :global {
  55. .van-search__content {
  56. background: #fff;
  57. }
  58. }
  59. }
  60. &.transparent {
  61. :global {
  62. .van-search__content {
  63. background: rgba(255, 255, 255, 0.16);
  64. input::placeholder {
  65. color: #fff;
  66. }
  67. input {
  68. color: #fff;
  69. }
  70. .van-field__clear {
  71. color: #fff;
  72. }
  73. }
  74. }
  75. }
  76. .searchBtn {
  77. width: 56px;
  78. height: 28px;
  79. padding: 0;
  80. font-size: 14px;
  81. --van-button-mini-height: 28px;
  82. --van-font-size-xs: 14px;
  83. line-height: 1;
  84. &.searchTenantBtn {
  85. background: linear-gradient(270deg, #FF3C81 0%, #FF76A6 100%);
  86. border: none;
  87. }
  88. }
  89. }