Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

AutoSuggestTextField.styled.js 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import styled from "styled-components";
  2. import { Box } from "@mui/material";
  3. import selectedTheme from "../../../themes";
  4. export const AutoSuggestTextFieldContainer = styled(Box)`
  5. & .react-autosuggest__container {
  6. width: 100%;
  7. height: ${(props) => (props.editLocation ? "43px" : "48px")};
  8. position: relative;
  9. z-index: 20;
  10. & input {
  11. width: 100%;
  12. height: ${(props) => (props.editLocation ? "43px" : "48px")};
  13. padding: 4px 14px;
  14. border-radius: 4px;
  15. border: 1px solid rgba(0, 0, 0, 0.23);
  16. outline-width: 0;
  17. background-color: initial;
  18. font-family: ${selectedTheme.fonts.textFont};
  19. font-size: 16px;
  20. padding-bottom: 6px;
  21. }
  22. /* & input:hover {
  23. border: 1px solid rgba(0, 0, 0, 0.87);
  24. } */
  25. & input:focus-visible {
  26. border: 2px solid ${selectedTheme.colors.primaryPurple};
  27. }
  28. & input::placeholder {
  29. color: rgba(0, 0, 0, 0.38);
  30. }
  31. & div {
  32. z-index: 3000;
  33. background-color: ${selectedTheme.colors.primaryBackgroundColor};
  34. }
  35. & div ul {
  36. border: 1px solid black;
  37. border-radius: 4px;
  38. padding: 10px;
  39. }
  40. & div ul li {
  41. padding-left: 16px;
  42. cursor: pointer;
  43. height: 40px;
  44. padding-top: 10px;
  45. font-family: ${selectedTheme.fonts.textFont};
  46. border-radius: 4px;
  47. }
  48. & div ul li:hover {
  49. background-color: ${selectedTheme.colors.primaryPurple};
  50. color: ${selectedTheme.colors.primaryBackgroundColor};
  51. }
  52. }
  53. @media (max-width: 600px) {
  54. & .react-autosuggest__container {
  55. & input {
  56. /* font-size: 13px; */
  57. }
  58. }
  59. }
  60. `;