Skip to content

Commit

Permalink
making the profile page more responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisonchin2523 committed Nov 1, 2023
1 parent 2351d90 commit 2bf6b9b
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 8 deletions.
68 changes: 65 additions & 3 deletions client/src/modules/Course/Styles/Review.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
}
}

Expand Down Expand Up @@ -164,7 +225,7 @@
.flagContainer {
position: relative;
width: 5%;
top: -10vh;
top: -12vh;
right: -75vw;
overflow: none;
}
Expand All @@ -188,6 +249,7 @@
position: relative;
background-color: #ffffff;
top: 6vh;
left: -0.2vw;
}

.ratingsContainerColor {
Expand Down
15 changes: 10 additions & 5 deletions client/src/modules/Profile/Styles/Profile.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2bf6b9b

Please sign in to comment.