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

Header.styled.js 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. import { Box } from "@mui/material";
  2. import styled from "styled-components";
  3. export const DrawerContainer = styled(Box)`
  4. display: flex;
  5. flex-direction: column;
  6. justify-content: center;
  7. align-items: center;
  8. margin: 25px;
  9. & div {
  10. flex-direction: column;
  11. }
  12. `;
  13. export const LogoContainer = styled(Box)`
  14. display: flex;
  15. justify-content: center;
  16. align-items: center;
  17. cursor: pointer;
  18. max-width: 130px;
  19. svg {
  20. width: 90%;
  21. }
  22. @media (min-width: 800px) {
  23. position: relative;
  24. left: 15px;
  25. }
  26. `;
  27. export const ToolsButtonsContainer = styled(Box)`
  28. display: flex;
  29. flex: ${(props) => (props.shrink ? "none" : "4")};
  30. justify-content: flex-end;
  31. gap: 2.5rem;
  32. min-width: ${(props) =>
  33. props.mobile ? "40px" : props.shrink ? "0" : "600px"};
  34. max-width: 600px;
  35. align-items: center;
  36. flex-wrap: nowrap;
  37. @media (max-width: 1400px) {
  38. min-width: ${(props) => (props.shrink ? "0" : "450px")};
  39. }
  40. @media (max-width: 1200px) {
  41. min-width: ${(props) => (props.shrink ? "0" : "400px")};
  42. }
  43. @media (max-width: 900px) {
  44. flex: 0.2;
  45. min-width: 0px;
  46. width: 60px;
  47. justify-content: right;
  48. }
  49. `;
  50. export const ToolsContainer = styled(Box)`
  51. display: flex;
  52. flex-direction: row;
  53. justify-content: ${(props) => (props.mobile ? "center" : "space-between")};
  54. align-items: ${(props) => (props.mobile ? "start" : "center")};
  55. ${(props) => !props.mobile && `width: 100%;`}
  56. & div button {
  57. ${(props) => props.mobile && `width: auto;`}
  58. }
  59. `;
  60. export const AuthButtonsContainer = styled(Box)`
  61. display: flex;
  62. justify-content: flex-start;
  63. flex: 1;
  64. min-width: ${(props) => (props.mobile ? "40px" : "200px")};
  65. max-width: 600px;
  66. align-items: flex-start;
  67. flex-wrap: nowrap;
  68. margin-left: 40px;
  69. & div {
  70. margin-left: 20px;
  71. }
  72. @media (max-width: 1300px) {
  73. margin-left: 0;
  74. }
  75. @media (max-width: 1200px) {
  76. min-width: 400px;
  77. }
  78. @media (max-width: 900px) {
  79. min-width: 0px;
  80. width: 0px;
  81. justify-content: right;
  82. }
  83. `;
  84. export const AuthButtonsDrawerContainer = styled(Box)`
  85. position: relative;
  86. left: 10px;
  87. height: 200px;
  88. display: flex;
  89. flex-direction: column;
  90. flex: 1;
  91. justify-content: space-around;
  92. `;
  93. export const HeaderContainer = styled(Box)``;