10000 Special case landing page of 4 .card-box · couchbase/docs-ui@b27859e · GitHub
[go: up one dir, main page]

Skip to content

Commit b27859e

Browse files
committed
Special case landing page of 4 .card-box
1 parent 036fb18 commit b27859e

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)
0