|
91 | 91 | --sidebar-line-box-left: 12px;
|
92 | 92 | --sidebar-width: 22rem;
|
93 | 93 | --sidebar-line-width: 11.5px;
|
| 94 | + --sidebar-mobile-top-displacement: 3rem; |
94 | 95 | --side-gutter-width: 20rem;
|
95 | 96 | --table-top-bottom-spacing: 1rem;
|
96 | 97 | --table-row-space-between: 1.5rem;
|
@@ -266,6 +267,10 @@ header {
|
266 | 267 | padding: 20px 10px;
|
267 | 268 | }
|
268 | 269 |
|
| 270 | + .nav-item-explore { |
| 271 | + margin: 0; |
| 272 | + } |
| 273 | + |
269 | 274 | .navbar-button {
|
270 | 275 | padding: 0.5rem 0.5rem;
|
271 | 276 | border: none;
|
@@ -526,8 +531,74 @@ nav {
|
526 | 531 | column-gap: var(--grid-column-gutter);
|
527 | 532 | }
|
528 | 533 |
|
529 |
| - .sidebar-layout { |
530 |
| - display: none; |
| 534 | + body:has(#sidebar-v2[style*="block"]) { |
| 535 | + /* Disable scrolling in main content + hide footer if the sidebar is visible */ |
| 536 | + overflow-y: hidden; |
| 537 | + |
| 538 | + .sidebar-layout { |
| 539 | + position: absolute; |
| 540 | + height: 100%; |
| 541 | + } |
| 542 | + |
| 543 | + footer { |
| 544 | + display: none; |
| 545 | + } |
| 546 | + |
| 547 | + .sidebar-layout .sidebar-mobile-toggle { |
| 548 | + display: flex !important; |
| 549 | + align-items: center; |
| 550 | + position: sticky; |
| 551 | + top: 1rem; |
| 552 | + margin-top: 2rem; |
| 553 | + padding: 0.5rem; |
| 554 | + color: white; |
| 555 | + background-color: oklch(var(--color-brand)); |
| 556 | + } |
| 557 | + } |
| 558 | + |
| 559 | + .breadcrumb .sidebar-mobile-toggle { |
| 560 | + display: inline !important; |
| 561 | + padding: 0; |
| 562 | + } |
| 563 | + |
| 564 | + .sidebar-mobile-toggle { |
| 565 | + background-color: transparent; |
| 566 | + border: none; |
| 567 | + |
| 568 | + .lucide { |
| 569 | + margin-right: 1rem; |
| 570 | + } |
| 571 | + } |
| 572 | + |
| 573 | + .main-layout { |
| 574 | + /* Mobile support for sidebar */ |
| 575 | + display: flex; |
| 576 | + flex-direction: column; |
| 577 | + position: relative; |
| 578 | + |
| 579 | + .sidebar-layout { |
| 580 | + min-height: fit-content; |
| 581 | + background: white; |
| 582 | + z-index: 3; |
| 583 | + width: calc(100% + 4rem); |
| 584 | + margin-left: -2rem; |
| 585 | + |
| 586 | + &::before { |
| 587 | + display: none; |
| 588 | + } |
| 589 | + |
| 590 | + nav { |
| 591 | + width: 100%; |
| 592 | + display: none; |
| 593 | + padding: 0; |
| 594 | + top: var(--sidebar-mobile-top-displacement); |
| 595 | + max-height: calc(100vh - var(--sidebar-mobile-top-displacement)); |
| 596 | + |
| 597 | + .sidebar__container { |
| 598 | + width: 100%; |
| 599 | + } |
| 600 | + } |
| 601 | + } |
531 | 602 | }
|
532 | 603 |
|
533 | 604 | main {
|
@@ -943,6 +1014,16 @@ p {
|
943 | 1014 | line-height: 1.5rem;
|
944 | 1015 | }
|
945 | 1016 |
|
| 1017 | +.breadcrumb-layout { |
| 1018 | + position: sticky; |
| 1019 | + top: 0; |
| 1020 | + z-index: 3; |
| 1021 | + background-color: white; |
| 1022 | + width: calc(100% + 4rem); |
| 1023 | + margin-left: -2rem; |
| 1024 | + padding: 1rem 2rem; |
| 1025 | +} |
| 1026 | + |
946 | 1027 | .breadcrumb {
|
947 | 1028 | color: var(--color-foreground);
|
948 | 1029 | text-decoration: none;
|
@@ -1170,7 +1251,7 @@ blockquote p:last-child {
|
1170 | 1251 | }
|
1171 | 1252 |
|
1172 | 1253 | /* Maintain the split column for as long as possible */
|
1173 |
| -@media (min-width: 67rem) { |
| 1254 | +@media (min-width: 88rem) { |
1174 | 1255 | blockquote.side-callout {
|
1175 | 1256 | grid-column: 2 !important;
|
1176 | 1257 | align-self: start;
|
|
0 commit comments