Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ProfileContact.styled.js 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import styled, { css } from "styled-components";
  2. import { Grid, Typography } from "@mui/material";
  3. import { ReactComponent as Location } from "../../../../assets/images/svg/location.svg";
  4. import { ReactComponent as Mail } from "../../../../assets/images/svg/mail.svg";
  5. import { ReactComponent as Globe } from "../../../../assets/images/svg/globe.svg";
  6. import selectedTheme from "../../../../themes";
  7. export const ProfileContactContainer = styled(Grid)`
  8. padding-top: ${(props) => (props.isAdmin ? `20px` : `2rem`)};
  9. padding-bottom: ${(props) => (props.isAdmin ? "0" : "2rem")};
  10. @media (max-width: 1300px) {
  11. ${(props) =>
  12. props.isAdmin &&
  13. css`
  14. flex-direction: column;
  15. justify-content: flex-start;
  16. align-items: start;
  17. padding-bottom: 0;
  18. `}
  19. }
  20. @media (max-width: 600px) {
  21. ${(props) => props.isAdmin && `overflow: hidden;`}
  22. padding-top: ${(props) =>
  23. props.isAdmin && (props.bigProfileCard ? "88px" : "58px")};
  24. padding-bottom: ${(props) => (props.isAdmin ? "1rem" : "0")};
  25. gap: 5px;
  26. width: ${(props) => props.bigProfileCard && "calc(100vw - 198px)"};
  27. }
  28. `;
  29. export const LocationIcon = styled(Location)`
  30. height: 22px;
  31. width: 22px;
  32. & path {
  33. stroke: ${(props) =>
  34. props.isMyProfile
  35. ? selectedTheme.colors.iconMineProfileColor
  36. : selectedTheme.colors.iconProfileColor};
  37. }
  38. @media (max-width: 600px) {
  39. width: 14px;
  40. height: 14px;
  41. }
  42. `;
  43. export const ContactItem = styled(Typography)`
  44. margin-right: 2rem;
  45. margin-left: 0.4rem;
  46. color: ${(props) =>
  47. props.isMyProfile && !props.isBlocked
  48. ? "white"
  49. : selectedTheme.colors.primaryDarkText};
  50. /* color: ${selectedTheme.colors.primaryDarkText}; */
  51. display: unset;
  52. font-family: ${selectedTheme.fonts.textFont};
  53. letter-spacing: 0.02em;
  54. font-size: 16px;
  55. font-weight: 400;
  56. position: relative;
  57. bottom: 1px;
  58. @media (max-width: 600px) {
  59. font-size: 14px;
  60. bottom: 4px;
  61. margin-right: 0;
  62. ${(props) =>
  63. props.bigProfileCard &&
  64. css`
  65. width: calc(100vw - 218px);
  66. overflow-wrap: break-word;
  67. `}
  68. }
  69. `;
  70. export const MailIcon = styled(Mail)`
  71. height: 24px;
  72. width: 24px;
  73. & path {
  74. stroke: ${(props) =>
  75. props.isMyProfile
  76. ? selectedTheme.colors.iconMineProfileColor
  77. : selectedTheme.colors.iconProfileColor};
  78. }
  79. @media (max-width: 600px) {
  80. width: 14px;
  81. height: 14px;
  82. }
  83. `;
  84. export const GlobeIcon = styled(Globe)`
  85. height: 22px;
  86. width: 22px;
  87. & path {
  88. stroke: ${(props) =>
  89. props.isMyProfile
  90. ? selectedTheme.colors.iconMineProfileColor
  91. : selectedTheme.colors.iconProfileColor};
  92. }
  93. @media (max-width: 600px) {
  94. width: 14px;
  95. height: 14px;
  96. }
  97. `;