@@ -880,6 +880,9 @@ nav {
880
880
[data-grid = "last-third" ] {
881
881
grid-column : 1 ;
882
882
}
883
+ [data-grid = "halve" ] {
884
+ grid-column : 1 ;
885
+ }
883
886
884
887
@media (min-width : 55rem ) {
885
888
max-width : var (--content-max-width );
@@ -905,6 +908,10 @@ nav {
905
908
[data-grid = "last-third" ] {
906
909
grid-column : 8 / -1 ;
907
910
}
911
+
912
+ [data-grid = "halve" ] {
913
+ grid-column : span 6 ;
914
+ }
908
915
}
909
916
}
910
917
@@ -1451,7 +1458,7 @@ h6:has(a):hover {
1451
1458
}
1452
1459
1453
1460
/* Landing page cards */
1454
- .text-content . card-layout {
1461
+ .card-layout {
1455
1462
grid-column : 1 ;
1456
1463
1457
1464
.card-section {
@@ -1463,65 +1470,53 @@ h6:has(a):hover {
1463
1470
font-weight : 500 ;
1464
1471
}
1465
1472
1466
- /* Hide all the cards past 3 if it is a featured card section */
1467
1473
& .featured-section {
1468
- . card- section-content . card-grid
1469
- > * : nth-child (n + 4 of div .card-container ) {
1474
+ /* Hide all the cards past 3 if it is a featured card section */
1475
+ . card-section-content > * : nth-child (n + 4 of div .card ) {
1470
1476
display : none;
1471
1477
}
1472
1478
}
1473
1479
}
1474
- }
1475
1480
1476
- /* Optional grid layout */
1477
- . card-grid {
1478
- display : grid ;
1479
- grid-template-columns : repeat (auto-fit , minmax ( 33 % , 1 fr )) ;
1480
- gap : 1.5 rem ;
1481
+ . card {
1482
+ display : flex;
1483
+ flex-direction : column ;
1484
+ gap : 0.5 rem ;
1485
+ margin-bottom : 1 rem ;
1481
1486
1482
- .card-container {
1483
- border : 1 px solid oklch ( var ( --color-codeblock-border )) ;
1484
- box-shadow : 3 px 3 px 0 px oklch ( var ( --color-shadow )) ;
1485
- padding : 1 rem ;
1487
+ .card-header {
1488
+ display : flex ;
1489
+ flex-direction : row ;
1490
+ gap : 0.5 rem ;
1486
1491
1487
- & .featured-card {
1488
- /* If there is a need for a featured card, only the featured card should be full length */
1489
- grid-column : 1 / -1 ;
1492
+ .card-brand-icon {
1493
+ height : 20px ;
1494
+ width : auto;
1495
+ }
1490
1496
1491
- /* If there is a featured card AND two cards, the last one should be full length */
1492
- ~ .card-container : nth-child (2n): last-child {
1493
- grid-column : 1 / -1 ;
1497
+ h2 {
1498
+ padding : 0 ;
1499
+ margin : 0 ;
1500
+ font-size : 1rem ;
1494
1501
}
1495
1502
}
1496
1503
}
1497
-
1498
- /* If there is no featured card, last card that is the 3rd one should be full width */
1499
- & : not (: has (.featured-card )) * : nth-child (n + 3 of div .card-container ) {
1500
- grid-column : 1 / -1 ;
1501
- }
1502
1504
}
1503
1505
1504
- .card-container {
1505
- display : flex;
1506
- flex-direction : column;
1507
- gap : 0.5rem ;
1508
- margin-bottom : 1rem ;
1509
-
1510
- .card-header {
1511
- display : flex;
1512
- flex-direction : row;
1513
- gap : 0.5rem ;
1506
+ /* Optional grid layout */
1507
+ .card-grid {
1508
+ display : grid;
1509
+ grid-template-columns : repeat (var (--grid-columns ), 1fr );
1510
+ gap : 1.5rem ;
1514
1511
1515
- .card-brand-icon {
1516
- height : 20px ;
1517
- width : auto;
1518
- }
1512
+ @media (max-width : 55rem ) {
1513
+ grid-template-columns : 1fr ;
1514
+ }
1519
1515
1520
- h2 {
1521
- padding : 0 ;
1522
- margin : 0 ;
1523
- font-size : 1rem ;
1524
- }
1516
+ .card {
1517
+ border : 1px solid oklch (var (--color-codeblock-border ));
1518
+ box-shadow : 3px 3px 0px oklch (var (--color-shadow ));
1519
+ padding : 1rem ;
1525
1520
}
1526
1521
}
1527
1522
0 commit comments