index.module.less 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. .m-search {
  2. --van-cell-background-color: transparent;
  3. input::placeholder {
  4. color: var(--k-gray-4);
  5. }
  6. :global {
  7. .van-field__control {
  8. -webkit-user-select: text !important;
  9. user-select: text !important;
  10. font-size: 13px;
  11. }
  12. .van-search__field {
  13. background: transparent !important;
  14. padding: 0 var(--van-padding-xs) 0 0;
  15. }
  16. .van-field__right-icon {
  17. display: flex;
  18. align-items: center;
  19. justify-content: center;
  20. padding-right: 4px;
  21. }
  22. }
  23. &.default {
  24. :global {
  25. .van-search__content {
  26. background: #f8f9fc !important;
  27. }
  28. }
  29. }
  30. &.white {
  31. :global {
  32. .van-search__content {
  33. background: #fff !important;
  34. }
  35. }
  36. }
  37. &.transparent {
  38. :global {
  39. .van-search__content {
  40. background: rgba(255, 255, 255, 0.16);
  41. input::placeholder {
  42. color: #fff;
  43. }
  44. input {
  45. color: #fff;
  46. }
  47. .van-field__clear {
  48. color: #fff;
  49. }
  50. }
  51. }
  52. }
  53. .searchBtn {
  54. width: 56px;
  55. height: 27px;
  56. padding: 0;
  57. font-size: 14px;
  58. font-weight: 500;
  59. --van-button-mini-height: 28px;
  60. --van-font-size-xs: 14px;
  61. }
  62. }