You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProfileContact.styled.js 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 ? "white" : selectedTheme.colors.primaryDarkText};
  48. display: unset;
  49. font-family: ${selectedTheme.fonts.textFont};
  50. letter-spacing: 0.02em;
  51. font-size: 16px;
  52. font-weight: 400;
  53. position: relative;
  54. bottom: 1px;
  55. @media (max-width: 600px) {
  56. font-size: 14px;
  57. bottom: 4px;
  58. margin-right: 0;
  59. ${(props) =>
  60. props.bigProfileCard &&
  61. css`
  62. width: calc(100vw - 218px);
  63. overflow-wrap: break-word;
  64. `}
  65. }
  66. `;
  67. export const MailIcon = styled(Mail)`
  68. height: 24px;
  69. width: 24px;
  70. & path {
  71. stroke: ${(props) =>
  72. props.isMyProfile
  73. ? selectedTheme.colors.iconMineProfileColor
  74. : selectedTheme.colors.iconProfileColor};
  75. }
  76. @media (max-width: 600px) {
  77. width: 14px;
  78. height: 14px;
  79. }
  80. `;
  81. export const GlobeIcon = styled(Globe)`
  82. height: 22px;
  83. width: 22px;
  84. & path {
  85. stroke: ${(props) =>
  86. props.isMyProfile
  87. ? selectedTheme.colors.iconMineProfileColor
  88. : selectedTheme.colors.iconProfileColor};
  89. }
  90. @media (max-width: 600px) {
  91. width: 14px;
  92. height: 14px;
  93. }
  94. `;