From 2bf6b9bc08bd24aabd6424709f0d3460661aadd9 Mon Sep 17 00:00:00 2001 From: harrisonchin2523 Date: Wed, 1 Nov 2023 17:50:09 -0400 Subject: [PATCH] making the profile page more responsive --- .../modules/Course/Styles/Review.module.css | 68 ++++++++++++++++++- .../modules/Profile/Styles/Profile.module.css | 15 ++-- 2 files changed, 75 insertions(+), 8 deletions(-) diff --git a/client/src/modules/Course/Styles/Review.module.css b/client/src/modules/Course/Styles/Review.module.css index 41e85fa6e..eafc48370 100644 --- a/client/src/modules/Course/Styles/Review.module.css +++ b/client/src/modules/Course/Styles/Review.module.css @@ -97,9 +97,32 @@ color: #807b7b; } +@media (min-width: 768px) and (max-width: 1000px) { + .reviewContainer { + width: 100%; + } + + .ratingsContainer { + width: 95%; + position: relative; + background-color: #ffffff; + top: 4vh; + left: 6vw; + } + + .ratingsContainerColor { + background: #ffffff; + } + + .ratingNum { + float: none; + margin-left: 0.2rem; + } +} + @media screen and (max-width: 768px) { .ratingsContainerColor { - background: #f4f9fe; + background: #ffffff; } .ratingsContainer { @@ -116,7 +139,45 @@ @media screen and (max-width: 768px) { .contentContainer { - margin-top: 20px; + position: relative; + top: -7vh; + } + + .reviewContainer { + width: 100%; + } + + .ratingsContainer { + width: 95%; + position: relative; + background-color: #ffffff; + top: 7vh; + left: 1.2vw; + } + + .ratingNum { + float: none; + margin-left: 0.2rem; + } + + .gradeMajorContainer { + position: relative; + top: 3vh; + } + + .reviewText { + position: relative; + top: 3vh; + } + + .date { + position: relative; + top: 8vh; + } + + .helpful { + position: relative; + top: 7vh; } } @@ -164,7 +225,7 @@ .flagContainer { position: relative; width: 5%; - top: -10vh; + top: -12vh; right: -75vw; overflow: none; } @@ -188,6 +249,7 @@ position: relative; background-color: #ffffff; top: 6vh; + left: -0.2vw; } .ratingsContainerColor { diff --git a/client/src/modules/Profile/Styles/Profile.module.css b/client/src/modules/Profile/Styles/Profile.module.css index 5bf242a8f..be9e0eaf0 100644 --- a/client/src/modules/Profile/Styles/Profile.module.css +++ b/client/src/modules/Profile/Styles/Profile.module.css @@ -336,13 +336,18 @@ color: #a2a1a1; } -@media (max-width: 480px) { - .fullScreen { - display: flex; - flex-direction: row; - /* overflow: auto; */ +@media (min-width: 481px) and (max-width: 1000px) { + .profileLeft { + width: 100%; } + .profileContainer { + width: 85%; + height: 80%; + } +} + +@media (max-width: 480px) { .profileLeft { display: flex; margin-top: 0px;