File tree 1 file changed +87
-4
lines changed
1 file changed +87
-4
lines changed Original file line number Diff line number Diff line change @@ -346,6 +346,93 @@ nav {
346
346
}
347
347
}
348
348
349
+ /* MARK: Homepage
350
+ */
351
+
352
+ .homepage {
353
+ margin : 0 2rem ;
354
+
355
+ .homepage-heading {
356
+ grid-column : 1 / -1 ;
357
+ font-size : 1.5rem ;
358
+ font-weight : 500 ;
359
+ margin : 2rem 0rem ;
360
+ }
361
+
362
+ .homepage-section {
363
+ display : grid;
364
+ grid-template-columns : repeat (auto-fit, minmax (120px , 500px ));
365
+ gap : 1.5rem ;
366
+ padding : 1rem ;
367
+ justify-content : center;
368
+ max-width : 98rem ;
369
+ margin : 0 auto;
370
+
371
+ .homepage-heading {
372
+ grid-column : 1 / -1 ;
373
+ margin : 1rem 0rem ;
374
+ }
375
+ }
376
+
377
+ a {
378
+ color : var (--color-foreground );
379
+ text-decoration-color : var (--color-background );
380
+
381
+ & : hover {
382
+ text-decoration-color : var (--color-background );
383
+ }
384
+ }
385
+
386
+ /* Styling for items */
387
+ .homepage-item {
388
+ background : # fff ;
389
+ border : 1px solid var (--color-codeblock-border );
390
+ box-shadow : 3px 3px 0px var (--color-shadow );
391
+ height : 7rem ;
392
+ padding : 1rem 2rem 2rem 2rem ;
393
+ display : flex;
394
+ flex-direction : column;
395
+ justify-content : space-between;
396
+ cursor : pointer;
397
+
398
+ & : hover {
399
+ box-shadow : 3px 3px 0px oklch (var (--color-brand ) / 0.4 );
400
+ text-decoration-color : var (--color-background );
401
+ border : 1px solid oklch (var (--color-brand ) / 0.8 );
402
+ }
403
+ }
404
+
405
+ .homepage-item-heading {
406
+ display : flex;
407
+ align-items : center;
408
+ justify-content : flex-start;
409
+ }
410
+
411
+ .homepage-item-logo {
412
+ margin-right : 0.5rem ;
413
+ }
414
+
415
+ .homepage-item-logo img {
416
+ height : 40px ;
417
+ width : auto;
418
+ display : block;
419
+ }
420
+
421
+ .homepage-item-text {
422
+ font-size : 1.1rem ;
423
+ font-weight : 600 ;
424
+ line-height : 1.2 ;
425
+ margin : 0 ;
426
+ padding : 0 ;
427
+ /* Hack to make text line-up with logos */
428
+ transform : translateY (-6px );
429
+ }
430
+
431
+ .homepage-item-content {
432
+ line-height : 1.5rem ;
433
+ }
434
+ }
435
+
349
436
/* MARK: Main content
350
437
*/
351
438
.docs-container * {
@@ -504,10 +591,6 @@ nav {
504
591
}
505
592
}
506
593
507
- .main {
508
- display : flex;
509
- }
510
-
511
594
/* MARK: Coveo
512
595
*/
513
596
# search-v2 {
You can’t perform that action at this time.
0 commit comments