Skip to content

Commit

Permalink
added responsiveness to team and events page cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Zhu authored and Charles Zhu committed Oct 18, 2023
1 parent f775076 commit 944312b
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 12 deletions.
2 changes: 1 addition & 1 deletion styles/BoardCard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@
.container {
width: 21rem;
}
}
}
2 changes: 1 addition & 1 deletion styles/EventCard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@
min-width: auto;
width: auto;
}
}
}
2 changes: 1 addition & 1 deletion styles/Events.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@
@media (max-width: 576px) {
.main {
padding: 2rem 3rem;
}
}
}
48 changes: 39 additions & 9 deletions styles/Teampage.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@
font-size: 3.5rem;
}

.description {
margin: 1rem;
font-size: 1.1rem;
}

.subtitle {
margin: 1rem;
font-size: 32px;
margin: 1.25rem 1.5rem 0 1.5rem;
font-size: 1.75rem;
line-height: 1;
margin-top: 2rem;
}

.description {
margin: 1rem 1.5rem;
font-size: 1.1rem;
}

.boardgrid {
Expand Down Expand Up @@ -57,11 +56,42 @@
// grid-area: card;
}

@media (max-width: 600px) {
@media (max-width: 768px) {
.main {
padding: 2rem 3rem;
}

.title {
font-size: 3rem;
}

.subtitle {
margin-top: 0;
font-size: 1.6rem;
}

.description {
font-size: 0.9rem;
}
}

@media (max-width: 576px) {
.grid {
width: 100%;
flex-direction: column;
}

.title {
margin: 1rem 0;
}

.subtitle {
margin-left: 0.5rem;
}

.description {
margin-left: 0.5rem;
}
}

@media (prefers-color-scheme: dark) {
Expand Down

0 comments on commit 944312b

Please sign in to comment.