Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Added additional media queries to remove bleeding text issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Der committed Oct 12, 2022
1 parent 041be48 commit 490c476
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 16 deletions.
23 changes: 17 additions & 6 deletions src/app/views/home/sections/Intro.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@
}
}

@media only screen and (max-width: $break-medium) {
@media only screen and (max-width: 900px) {
.intro .card{
width: auto;
height: auto;

width: 75vw;
}
.intro:before{
content: "";
Expand All @@ -44,15 +42,28 @@
background-position: center;
background-repeat: no-repeat;
background-size: contain;
transform: rotate(90deg) translate(7.5vw, 5vw);
transform: rotate(90deg) translate(7.5vw, 3vw);
}
}
@media only screen and (min-width: $break-medium) {
@media only screen and (min-width: 901px) {
.intro .card {
background-image: url('../../../../assets/images/scroll_light_medium.png');
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}
}
@media only screen and (min-width: 901px) and (max-width: $break-medium) {
.mentor-information {
align-items: start;
}

.mentors .card {
width: 90vw;

p {
text-align: left;
}
}
}
}
36 changes: 26 additions & 10 deletions src/app/views/home/sections/Mentors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
width: 1200px;
height: 600px;
padding: 80px;
align-items: center;
}

& > h2 {
Expand All @@ -23,9 +24,8 @@
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;

@media screen and (max-width: $break-medium) {
@media screen and (max-width: 700px) {
flex-direction: column;
align-items: center;
}
Expand All @@ -35,7 +35,7 @@
height: 18vw;
border-radius: 1rem;

@media screen and (max-width: $break-medium) {
@media screen and (max-width: 700px) {
width: 10rem;
height: 10rem;
margin-right: 0;
Expand All @@ -53,7 +53,7 @@
text-align: left;
}

@media screen and (max-width: $break-medium) {
@media screen and (max-width: 700px) {
margin: 2rem 0 1rem 0;
text-align: center;
align-items: center;
Expand All @@ -64,10 +64,13 @@
}
}
}
@media only screen and (max-width: $break-medium) {
@media only screen and (max-width: 700px) {
.mentors .card{
width: auto;
height: auto;
width: 50vw;

p, a {
text-align: center;
}
}
.mentors:before{
content: "";
Expand All @@ -82,16 +85,29 @@
background-position: center;
background-repeat: no-repeat;
background-size: contain;
transform: rotate(90deg) translate(7.5vw, 5vw);
transform: rotate(90deg) translate(7.5vw, 3vw);
}
}
@media only screen and (min-width: $break-medium) {
@media only screen and (min-width: 701px) {
.mentors .card {
background-image: url('../../../../assets/images/scroll_dark_wide.png');
background-position: center;
background-repeat: no-repeat;
background-size: contain;
padding: 150px;
padding: 90px 150px 150px 150px;
}
}
@media only screen and (min-width: 701px) and (max-width: $break-medium) {
.mentor-information {
align-items: start;
}

.mentors .card {
width: 90vw;

p {
text-align: left;
}
}
}
}
3 changes: 3 additions & 0 deletions src/globals/zothacks-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ $white: #ffffff;
$lightGray: #e8e8e8;
$offWhite: #ededed;
$pink: #ff8dcb;
$brown: #5C3D0D;
$tan: #FFE8AC;
$black: #000000;

// Animations
@keyframes wobble {
Expand Down

0 comments on commit 490c476

Please sign in to comment.