Skip to content

Commit b29a9e6

Browse files
committed
added small screen breakpoint; adjusted card heights for various screen sizes
1 parent 61a3d3e commit b29a9e6

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

styles/Card.module.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,17 @@
88
box-shadow: $box-shadow;
99
min-width: 32%;
1010
height: 37rem;
11-
11+
12+
@include small-mobile {
13+
height: 42rem;
14+
}
15+
1216
@include tablet {
13-
height: 40rem;
17+
height: 42rem;
1418
}
1519

1620
@include desktop {
21+
height: 37rem;
1722
margin: 1.5rem 1.5rem 0 1.5rem;
1823
&:first-child,
1924
&:last-child {
@@ -62,7 +67,7 @@
6267
//About Us
6368
&.our-goals {
6469
background-color: $primary-accent-color;
65-
max-height: 30rem;
70+
max-height: 35rem;
6671

6772
.title {
6873
font-size: 3.5rem;

styles/_mixins.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,9 @@
5050
@content;
5151
}
5252
}
53+
54+
@mixin small-mobile {
55+
@media (max-width: $sm-mobile-breakpoint) {
56+
@content;
57+
}
58+
}

styles/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Media Query Breakpoints
2+
$sm-mobile-breakpoint: 350px;
23
$mobile-breakpoint: 578px;
34
$lg-mobile-breakpoint: 767px;
45
$tablet-breakpoint: 768px;

0 commit comments

Comments
 (0)