Skip to content

Commit fce318f

Browse files
committed
Cards: Updated styling to be more robust
1 parent 3fe02dd commit fce318f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

assets/css/v2/style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,8 @@ h6:has(a):hover {
12141214

12151215
/* Hide all the cards past 3 if it is a featured card section */
12161216
&.featured-section {
1217-
.card-section-content.card-grid > *:nth-child(n + 4) {
1217+
.card-section-content.card-grid
1218+
> *:nth-child(n + 4 of div.card-container) {
12181219
display: none;
12191220
}
12201221
}
@@ -1244,7 +1245,7 @@ h6:has(a):hover {
12441245
}
12451246

12461247
/* If there is no featured card, last card that is the 3rd one should be full width */
1247-
&:not(:has(.featured-card)) .card-container:nth-child(3n):last-child {
1248+
&:not(:has(.featured-card)) *:nth-child(n + 3 of div.card-container) {
12481249
grid-column: 1 / -1;
12491250
}
12501251
}

0 commit comments

Comments
 (0)