Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ItemDetailsLayout.styled.js 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { Container, Grid, Box } from "@mui/material";
  2. import styled from "styled-components";
  3. export const ItemDetailsLayoutContainer = styled(Container)`
  4. padding-left: 36px;
  5. padding-right: ${(props) => (props.singleOffer ? "76px" : 0)};
  6. margin: 0;
  7. width: 100%;
  8. max-width: none;
  9. /* display: flex; */
  10. position: relative;
  11. /* flex: 1; */
  12. height: 100%;
  13. @media (max-width: 1200px) {
  14. padding-right: 60px;
  15. }
  16. @media (max-width: 600px) {
  17. padding-left: 18px;
  18. padding-right: 18px;
  19. }
  20. `;
  21. export const ContentRightCardContainer = styled(Box)`
  22. display: flex;
  23. @media screen and (max-width: 600px) {
  24. flex-direction: column;
  25. }
  26. `;
  27. export const RightCard = styled(Grid)`
  28. margin-top: 0;
  29. margin-left: 0;
  30. padding-left: 0;
  31. @media screen and (min-width: 600px) {
  32. margin-top: 34px;
  33. margin-left: ${props => props.profile ? "0" : "36px"};
  34. padding-left: ${(props) => (props.singleOffer ? "36px" : 0)};
  35. border-top-right-radius: 4px;
  36. ${(props) => props.singleOffer && `width: 100%`}
  37. }
  38. `;
  39. export const Content = styled(Grid)`
  40. width: 100%;
  41. `;