Skip to content

Commit aea60c9

Browse files
authored
Merge pull request #190 from couchbase/special-case-4-cards
UI: Special case landing page of 4 .card-box
2 parents 036fb18 + b27859e commit aea60c9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/css/landing-page.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,15 @@
407407
.doc.landing-page-capella .card-box {
408408
width: 30%;
409409
}
410+
411+
/* special case container with 4 cards to be 2x2 even on wide screen */
412+
.doc.landing-page-capella .card-container:has(.card-box:nth-child(4)) .card-box {
413+
width: 46%;
414+
}
415+
416+
.doc.landing-page-capella .card-container:has(.card-box:nth-child(5)) .card-box {
417+
width: 30%;
418+
}
410419
}
411420

412421
/* CSS for nav filter */

0 commit comments

Comments
 (0)