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.

UserReviewsCard.styled.js 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import styled from "styled-components";
  2. import { List, Box, Typography, Grid } from "@mui/material";
  3. import selectedTheme from "../../../themes";
  4. export const ReviewsBox = styled(Box)`
  5. width: 100%;
  6. height: calc(100% - 90px);
  7. max-height: 100vh;
  8. padding-top: 20px;
  9. @media (max-width: 1200px) {
  10. padding: 0;
  11. }
  12. @media (max-width: 600px) {
  13. position: relative;
  14. top: -45px;
  15. overflow: hidden;
  16. height: 350px;
  17. max-height: 350px;
  18. padding: 0;
  19. }
  20. `;
  21. export const ReviewsHeader = styled(Grid)`
  22. @media (max-width: 800px) {
  23. display: none;
  24. }
  25. `;
  26. export const ReviewsTitle = styled(Typography)`
  27. font-family: ${selectedTheme.fonts.textFont};
  28. font-size: 16px;
  29. @media (max-width: 800px) {
  30. display: none;
  31. }
  32. `;
  33. export const ReviewList = styled(List)`
  34. background: white;
  35. padding: 2rem;
  36. border-radius: 4px 0 0 4px;
  37. height: 100%;
  38. width: 100%;
  39. border: 1px solid ${selectedTheme.colors.borderNormal};
  40. /* overflow-y: auto; */
  41. &::-webkit-scrollbar {
  42. width: 5px;
  43. }
  44. &::-webkit-scrollbar-track {
  45. background: #ddd;
  46. }
  47. &::-webkit-scrollbar-thumb {
  48. background: #777;
  49. }
  50. scrollbar-width: thin;
  51. scrollbar-color: #ddd;
  52. `;
  53. export const NoReviewsContainer = styled(Box)``;
  54. export const NoReviewsText = styled(Typography)`
  55. color: ${selectedTheme.colors.primaryPurple};
  56. font-size: 24px;
  57. font-family: ${selectedTheme.fonts.textFont};
  58. text-align: center;
  59. font-weight: 700;
  60. width: 100%;
  61. `;
  62. export const NoReviewsAltText = styled(Typography)`
  63. font-size: 12px;
  64. color: ${selectedTheme.colors.primaryDarkText};
  65. font-family: ${selectedTheme.fonts.textFont};
  66. text-align: center;
  67. width: 100%;
  68. margin-bottom: 36px;
  69. `;