Skip to content

Commit bae1d39

Browse files
authored
Merge pull request #4055 from Blargian/mobile_fixes
Styling: fix mobile styling of related blogs component
2 parents fdfdc98 + 0f6883d commit bae1d39

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

src/components/RelatedBlogs/styles.module.scss

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1+
@use '../../css/breakpoints' as breakpoints;
2+
13
/* Container for the entire component */
24
.relatedBlogsContainer {
35
display: flex;
46
flex-direction: column;
57
padding-top: 32px;
68
}
79

8-
/* Container for just the cards (excluding header) */
910
.blogCardsContainer {
10-
display: grid;
11-
grid-template-columns: repeat(3, minmax(0, 1fr));
12-
gap: 0.5em;
13-
width: 100%;
14-
height: 100%
11+
display: flex;
12+
flex-direction: column;
13+
gap: 1em;
14+
width: 100%;
1515
}
1616

1717
/* Container for individual card */
@@ -68,10 +68,11 @@
6868

6969
/* Container for the bottom half of the card */
7070
[data-theme='light'] .cardBottom {
71-
background-color: #c0c0c0;
71+
background-color: #f7f7fa;
7272
border-left: 1px solid #c7c7c7;
7373
border-right: 1px solid #c7c7c7;
7474
border-bottom: 1px solid #c7c7c7;
75+
border-top: 1px solid #c7c7c7;
7576
}
7677

7778
/* Container for the bottom half of the card */
@@ -186,4 +187,17 @@
186187
100% {
187188
opacity: 0.6;
188189
}
190+
}
191+
192+
@media (min-width: breakpoints.$laptop-breakpoint) {
193+
194+
/* Container for just the cards (excluding header) */
195+
.blogCardsContainer {
196+
display: grid;
197+
grid-template-columns: repeat(3, minmax(0, 1fr));
198+
gap: 0.5em;
199+
width: 100%;
200+
height: 100%
201+
}
202+
189203
}

0 commit comments

Comments
 (0)