index.module.less 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. .TheSearch {
  2. border-radius: 20px !important;
  3. &.noBorder {
  4. --n-border: none !important;
  5. }
  6. :global {
  7. .n-input-wrapper {
  8. padding-left: 12px;
  9. padding-right: 4px;
  10. height: 42px !important;
  11. --n-height: 42px !important;
  12. }
  13. .n-button {
  14. height: 34px;
  15. font-size: max(16px, 13Px) !important;
  16. font-weight: 500;
  17. width: auto;
  18. opacity: 0.7;
  19. }
  20. .n-input__placeholder {
  21. font-size: max(15px, 13Px);
  22. }
  23. .n-input__suffix .n-base-clear, .n-input__prefix .n-base-clear {
  24. margin-right: 4px;
  25. }
  26. }
  27. .active {
  28. display: none;
  29. }
  30. .active,
  31. .default {
  32. width: max(16px, 14Px);
  33. height: max(16px, 14Px);
  34. }
  35. &:global(.n-input--focus) {
  36. .active {
  37. display: block;
  38. }
  39. .default {
  40. display: none;
  41. }
  42. :global {
  43. .n-button {
  44. opacity: 1;
  45. }
  46. }
  47. }
  48. &:hover {
  49. :global {
  50. .n-button {
  51. opacity: 1;
  52. }
  53. }
  54. }
  55. }