Skip to content

Commit 635de76

Browse files
committed
Cards: Fixed how cards are arranged
1 parent a8044d5 commit 635de76

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

assets/css/v2/style.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,7 @@ h6:has(a):hover {
12021202
/* Landing page cards */
12031203
.text-content .card-layout {
12041204
grid-column: 1;
1205+
margin-top: 1rem;
12051206

12061207
.card-section {
12071208
display: flex;
@@ -1248,6 +1249,24 @@ h6:has(a):hover {
12481249
&:not(:has(.featured-card)) *:nth-child(n + 3 of div.card-container) {
12491250
grid-column: 1 / -1;
12501251
}
1252+
1253+
&:not(:has(.featured-card))
1254+
*:nth-child(n + 3 of div.card-container):has(
1255+
~ *:nth-child(n + 4 of div.card-container)
1256+
) {
1257+
grid-column: auto;
1258+
}
1259+
1260+
&:not(:has(.featured-card)) *:nth-child(n + 4 of div.card-container) {
1261+
grid-column: auto;
1262+
}
1263+
1264+
&:not(:has(.featured-card))
1265+
*:nth-last-child(1 of div.card-container):nth-child(
1266+
odd of div.card-container
1267+
) {
1268+
grid-column: 1 / -1;
1269+
}
12511270
}
12521271

12531272
.card-container {
@@ -1279,6 +1298,7 @@ h6:has(a):hover {
12791298
gap: 1.5rem;
12801299
align-items: center;
12811300
justify-content: start;
1301+
margin-bottom: 1rem;
12821302

12831303
img {
12841304
width: auto;

0 commit comments

Comments
 (0)