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

CreateOffer.styled.js 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. import { Box, Container, Typography } from "@mui/material";
  2. import styled from "styled-components";
  3. import selectedTheme from "../../../themes";
  4. import { Label } from "../../CheckBox/Label";
  5. import Select from "../../Select/Select";
  6. export const ModalCreateOfferContainer = styled(Box)`
  7. background-color: #fff;
  8. position: fixed;
  9. ${(props) => props.currentStep === 3 && `overflow-y: auto;`}
  10. max-height: 90vh;
  11. top: ${(props) =>
  12. props.currentStep === 1 ? "calc(50% - 400px);" : "calc(50% - 350px);"};
  13. left: ${(props) =>
  14. props.currentStep !== 3 ? "calc(50% - 310px);" : "calc(50% - 420px);"};
  15. z-index: 150;
  16. padding: ${(props) => (props.currentStep !== 3 ? "0 120px" : "0 130px")};
  17. overflow-y: auto;
  18. &::-webkit-scrollbar {
  19. width: 5px;
  20. }
  21. &::-webkit-scrollbar-track {
  22. background: #ddd;
  23. }
  24. &::-webkit-scrollbar-thumb {
  25. background: #777;
  26. }
  27. scrollbar-width: thin;
  28. scrollbar-color: #ddd;
  29. @media (max-height: 820px) {
  30. top: ${(props) =>
  31. props.currentStep === 1 ? "calc(50% - 340px)" : "calc(50% - 340px)"};
  32. }
  33. @media screen and (max-width: 628px) {
  34. height: 100vh;
  35. max-height: 100vh;
  36. min-height: 90vh;
  37. width: 100vw;
  38. top: 0;
  39. left: 0;
  40. padding: 0 30px;
  41. }
  42. `;
  43. export const ModalHeader = styled(Box)`
  44. display: flex;
  45. justify-content: space-between;
  46. align-items: center;
  47. `;
  48. export const BackIcon = styled(Box)`
  49. cursor: pointer;
  50. position: absolute;
  51. left: 40px;
  52. @media screen and (max-width: 600px) {
  53. left: 20px;
  54. & svg {
  55. width: 20px;
  56. }
  57. }
  58. `;
  59. // export const CloseIcon = styled(Box)`
  60. // cursor: pointer;
  61. // position: absolute;
  62. // right: 40px;
  63. // @media screen and (max-width: 600px) {
  64. // right: 20px;
  65. // & svg {
  66. // width: 20px;
  67. // }
  68. // }
  69. // `;
  70. export const CreateOfferContainer = styled(Container)`
  71. margin-top: 0px;
  72. display: flex;
  73. width: ${(props) => (props.currentStep === 3 ? "580px" : "380px")};
  74. flex-direction: column;
  75. align-items: center;
  76. @media screen and (max-width: 600px) {
  77. width: 95%;
  78. }
  79. `;
  80. export const CreateOfferTitle = styled(Typography)`
  81. font-family: "Open Sans";
  82. /* width: 328px;
  83. height: 33px; */
  84. text-align: center;
  85. flex: 1;
  86. font-style: normal;
  87. font-weight: 700;
  88. font-size: 24px;
  89. line-height: 33px;
  90. color: ${selectedTheme.primaryPurple};
  91. margin-top: 36px;
  92. margin-bottom: 40px;
  93. @media screen and (max-width: 600px) {
  94. font-size: 18px;
  95. margin-bottom: 30px;
  96. }
  97. `;
  98. export const CreateOfferDescription = styled(Typography)`
  99. font-family: "Open Sans";
  100. margin-top: 9px;
  101. width: 221px;
  102. font-style: normal;
  103. font-weight: 400;
  104. font-size: 16px;
  105. line-height: 22px;
  106. display: flex;
  107. align-items: center;
  108. text-align: center;
  109. color: ${selectedTheme.primaryGrayText};
  110. margin-bottom: 20px;
  111. `;
  112. export const CreateOfferFormContainer = styled(Box)`
  113. width: 335px;
  114. height: 700px;
  115. ${(props) => props.currentStep === 3 && `width: 120%; height: 420px;`}
  116. `;
  117. export const RegisterAltText = styled(Typography)`
  118. font-family: "Poppins";
  119. color: ${selectedTheme.primaryText};
  120. font-size: 14px;
  121. padding-right: 6px;
  122. line-height: 14px;
  123. `;
  124. export const RegisterTextContainer = styled(Box)`
  125. display: flex;
  126. flex-direction: row;
  127. margin-top: 36px;
  128. justify-content: center;
  129. `;
  130. export const FieldLabel = styled(Label)`
  131. position: relative;
  132. bottom: -14px;
  133. & label {
  134. font-size: 12px;
  135. font-weight: 600;
  136. line-height: 20px;
  137. color: ${selectedTheme.primaryGrayText};
  138. cursor: auto;
  139. letter-spacing: 0.2px;
  140. }
  141. @media (max-width: 600px) {
  142. & label {
  143. font-size: 9px;
  144. }
  145. }
  146. `;
  147. export const SelectText = styled(Typography)`
  148. font-size: 16px;
  149. font-family: "Open Sans";
  150. font-weight: 400;
  151. `;
  152. export const SelectField = styled(Select)`
  153. position: relative;
  154. top: 15px;
  155. margin-bottom: 18px;
  156. @media (max-width: 600px) {
  157. height: 40px;
  158. font-size: 12px;
  159. }
  160. & div {
  161. ${SelectText} {
  162. font-weight: 600;
  163. }
  164. }
  165. `;
  166. export const SelectAltText = styled(Typography)`
  167. font-family: "Open Sans";
  168. font-style: italic;
  169. white-space: pre;
  170. font-size: 12px;
  171. position: relative;
  172. bottom: -1px;
  173. `;