|
47 | 47 | z-index: 40; |
48 | 48 | } |
49 | 49 | .docs-header-inner { |
50 | | - max-width: 1440px; |
51 | 50 | height: 100%; |
52 | 51 | padding: 0 40px; |
53 | | - margin: auto; |
54 | 52 | display: flex; |
55 | 53 | justify-content: space-between; |
56 | 54 | align-items: center; |
|
113 | 111 | color: var(--docs-ink); |
114 | 112 | } |
115 | 113 | .docs-layout { |
116 | | - max-width: 1440px; |
117 | | - padding-inline: 18px 40px; |
118 | | - margin: auto; |
119 | 114 | display: grid; |
120 | | - grid-template-columns: 232px minmax(0, 1fr) 196px; |
| 115 | + grid-template-columns: 250px minmax(0, 1fr); |
| 116 | + align-items: start; |
| 117 | +} |
| 118 | +.docs-reading { |
| 119 | + width: calc(100% - 80px); |
| 120 | + max-width: 1100px; |
| 121 | + margin-inline: auto; |
| 122 | + display: grid; |
| 123 | + grid-template-columns: minmax(0, 1fr) 196px; |
121 | 124 | align-items: start; |
122 | 125 | column-gap: 48px; |
123 | 126 | } |
|
127 | 130 | height: calc(100dvh - 72px); |
128 | 131 | display: grid; |
129 | 132 | grid-template-rows: auto minmax(0, 1fr) auto; |
130 | | - padding: 20px 12px 16px 0; |
| 133 | + padding: 20px 12px 16px 18px; |
131 | 134 | border-right: 1px solid var(--docs-border); |
132 | 135 | } |
133 | 136 | .docs-sidebar > nav { |
|
463 | 466 | .docs-table tr:last-child td { |
464 | 467 | border: 0; |
465 | 468 | } |
| 469 | +.docs-prose .docs-method-grid { |
| 470 | + display: grid; |
| 471 | + grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); |
| 472 | + gap: 32px 28px; |
| 473 | + margin: 16px 0 28px; |
| 474 | + padding: 0; |
| 475 | + list-style: none; |
| 476 | +} |
| 477 | +.docs-prose .docs-method-card { |
| 478 | + display: flex; |
| 479 | + flex-direction: column; |
| 480 | + gap: 10px; |
| 481 | + min-width: 0; |
| 482 | + margin: 0; |
| 483 | + padding: 0; |
| 484 | +} |
| 485 | +.docs-method-name { |
| 486 | + display: flex; |
| 487 | + flex-wrap: wrap; |
| 488 | + align-items: center; |
| 489 | + justify-content: center; |
| 490 | + gap: 4px 8px; |
| 491 | + color: var(--docs-ink); |
| 492 | + font-size: 1rem; |
| 493 | + line-height: 1.45; |
| 494 | + text-align: center; |
| 495 | +} |
| 496 | +.docs-method-description, |
| 497 | +.docs-method-scenario { |
| 498 | + margin: 0; |
| 499 | + line-height: 1.65; |
| 500 | +} |
| 501 | +.docs-method-description { |
| 502 | + min-block-size: 2lh; |
| 503 | +} |
| 504 | +.docs-method-scenario { |
| 505 | + display: grid; |
| 506 | + grid-template-columns: 14px minmax(0, 1fr) 14px; |
| 507 | + align-items: center; |
| 508 | + gap: 6px; |
| 509 | + padding: 7px 10px; |
| 510 | + border-radius: 8px; |
| 511 | + background: var(--docs-tint); |
| 512 | + color: var(--docs-muted); |
| 513 | + font-size: 0.8125rem; |
| 514 | + text-align: center; |
| 515 | +} |
| 516 | +.docs-method-quote { |
| 517 | + height: 14px; |
| 518 | + color: color-mix(in srgb, var(--docs-accent) 60%, var(--docs-muted)); |
| 519 | + font: 700 1.625rem / 0.85 Georgia, serif; |
| 520 | + user-select: none; |
| 521 | +} |
| 522 | +.docs-method-quote:first-child { |
| 523 | + align-self: start; |
| 524 | +} |
| 525 | +.docs-method-quote:last-child { |
| 526 | + align-self: end; |
| 527 | +} |
| 528 | +.docs-method-tag, |
| 529 | +.docs-method-status { |
| 530 | + padding: 1px 7px; |
| 531 | + border: 1px solid transparent; |
| 532 | + border-radius: 999px; |
| 533 | + font-size: 11px; |
| 534 | + font-weight: 600; |
| 535 | + line-height: 1.45; |
| 536 | + white-space: nowrap; |
| 537 | +} |
| 538 | +.docs-method-tag { |
| 539 | + background: var(--docs-tint); |
| 540 | + color: var(--docs-link); |
| 541 | +} |
| 542 | +.docs-method-status { |
| 543 | + border-color: #f2d684; |
| 544 | + background: #fff3c4; |
| 545 | + color: #785200; |
| 546 | +} |
| 547 | +.docs-method-illustration { |
| 548 | + display: block; |
| 549 | + margin-top: auto; |
| 550 | + aspect-ratio: 960 / 676; |
| 551 | + overflow: hidden; |
| 552 | + border-radius: 14px; |
| 553 | + background: var(--color-hover); |
| 554 | +} |
| 555 | +.docs-method-illustration img { |
| 556 | + display: block; |
| 557 | + width: 100%; |
| 558 | + height: 100%; |
| 559 | + object-fit: contain; |
| 560 | +} |
466 | 561 | .docs-api-overview table { |
467 | 562 | table-layout: fixed; |
468 | 563 | } |
|
947 | 1042 | .docs-mobile-nav { |
948 | 1043 | display: none; |
949 | 1044 | } |
950 | | -@media (min-width: 1600px) { |
951 | | - .docs-layout { |
952 | | - column-gap: 64px; |
953 | | - } |
954 | | -} |
955 | 1045 | @media (max-width: 1180px) { |
956 | 1046 | .docs-layout { |
957 | | - grid-template-columns: 210px minmax(0, 1fr); |
958 | | - gap: 36px; |
959 | | - padding-inline: 16px 30px; |
| 1047 | + grid-template-columns: 226px minmax(0, 1fr); |
960 | 1048 | } |
961 | | - .docs-toc { |
962 | | - display: none; |
| 1049 | + .docs-sidebar { |
| 1050 | + padding-inline-start: 16px; |
963 | 1051 | } |
964 | | - .docs-main { |
| 1052 | + .docs-reading { |
| 1053 | + width: calc(100% - 60px); |
965 | 1054 | max-width: 760px; |
| 1055 | + grid-template-columns: minmax(0, 1fr); |
| 1056 | + } |
| 1057 | + .docs-toc { |
| 1058 | + display: none; |
966 | 1059 | } |
967 | 1060 | } |
968 | 1061 | @media (max-width: 760px) { |
|
989 | 1082 | } |
990 | 1083 | .docs-layout { |
991 | 1084 | display: block; |
992 | | - padding: 0 24px; |
| 1085 | + } |
| 1086 | + .docs-reading { |
| 1087 | + width: calc(100% - 48px); |
993 | 1088 | } |
994 | 1089 | .docs-main { |
995 | 1090 | padding-top: 30px; |
|
0 commit comments