|
93 | 93 | --sidebar-line-box-left: 12px;
|
94 | 94 | --sidebar-width: 22rem;
|
95 | 95 | --sidebar-line-width: 11.5px;
|
| 96 | + --sidebar-mobile-top-displacement: 5rem; |
96 | 97 | --side-gutter-width: 20rem;
|
97 | 98 | --table-top-bottom-spacing: 1rem;
|
98 | 99 | --table-row-space-between: 1.5rem;
|
@@ -268,6 +269,10 @@ header {
|
268 | 269 | padding: 20px 10px;
|
269 | 270 | }
|
270 | 271 |
|
| 272 | + .nav-item-explore { |
| 273 | + margin: 0; |
| 274 | + } |
| 275 | + |
271 | 276 | .navbar-button {
|
272 | 277 | padding: 0.5rem 0.5rem;
|
273 | 278 | border: none;
|
@@ -464,6 +469,10 @@ nav {
|
464 | 469 | position: relative;
|
465 | 470 | z-index: 2;
|
466 | 471 | min-height: 74vh;
|
| 472 | + |
| 473 | + .sidebar__mobile__toggle { |
| 474 | + display: none; |
| 475 | + } |
467 | 476 | }
|
468 | 477 |
|
469 | 478 | .sidebar-layout::before {
|
@@ -527,8 +536,84 @@ nav {
|
527 | 536 | column-gap: var(--grid-column-gutter);
|
528 | 537 | }
|
529 | 538 |
|
530 |
| - .sidebar-layout { |
531 |
| - display: none; |
| 539 | + .content-layout .breadcrumb-layout { |
| 540 | + position: sticky; |
| 541 | + top: 0; |
| 542 | + z-index: 3; |
| 543 | + } |
| 544 | + |
| 545 | + body:has(.sidebar__mobile-open) { |
| 546 | + /* Disable scrolling in main content + hide footer if the sidebar is visible */ |
| 547 | + overflow-y: hidden; |
| 548 | + |
| 549 | + .sidebar-layout { |
| 550 | + position: absolute; |
| 551 | + height: 100%; |
| 552 | + } |
| 553 | + |
| 554 | + footer { |
| 555 | + display: none; |
| 556 | + } |
| 557 | + |
| 558 | + .sidebar-layout .sidebar__mobile__toggle { |
| 559 | + display: flex; |
| 560 | + align-items: center; |
| 561 | + position: sticky; |
| 562 | + top: 1rem; |
| 563 | + margin-top: 2rem; |
| 564 | + margin-left: 2rem; |
| 565 | + margin-right: 2rem; |
| 566 | + padding: 0.5rem; |
| 567 | + color: white; |
| 568 | + background-color: oklch(var(--color-brand)); |
| 569 | + } |
| 570 | + } |
| 571 | + |
| 572 | + .sidebar__mobile__toggle { |
| 573 | + background-color: transparent; |
| 574 | + border: none; |
| 575 | + |
| 576 | + .lucide { |
| 577 | + margin-right: 1rem; |
| 578 | + } |
| 579 | + } |
| 580 | + |
| 581 | + .main-layout { |
| 582 | + /* Mobile support for sidebar */ |
| 583 | + display: flex; |
| 584 | + flex-direction: column; |
| 585 | + position: relative; |
| 586 | + |
| 587 | + .sidebar-layout { |
| 588 | + min-height: fit-content; |
| 589 | + background: white; |
| 590 | + z-index: 999; |
| 591 | + width: calc(100% + 4rem); |
| 592 | + margin-left: -2rem; |
| 593 | + |
| 594 | + &::before { |
| 595 | + display: none; |
| 596 | + } |
| 597 | + |
| 598 | + nav { |
| 599 | + width: 100%; |
| 600 | + display: none; |
| 601 | + top: var(--sidebar-mobile-top-displacement); |
| 602 | + max-height: calc(100vh - var(--sidebar-mobile-top-displacement)); |
| 603 | + padding: 0 2rem; |
| 604 | + |
| 605 | + .sidebar__container { |
| 606 | + width: 100%; |
| 607 | + } |
| 608 | + } |
| 609 | + } |
| 610 | + |
| 611 | + .content-layout { |
| 612 | + .breadcrumb-layout .sidebar__mobile__toggle { |
| 613 | + display: inline; |
| 614 | + padding: 0; |
| 615 | + } |
| 616 | + } |
532 | 617 | }
|
533 | 618 |
|
534 | 619 | main {
|
@@ -773,6 +858,10 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
|
773 | 858 | /* MARK: Sidebar
|
774 | 859 | */
|
775 | 860 |
|
| 861 | +nav.sidebar.sidebar__mobile-open { |
| 862 | + display: block; |
| 863 | +} |
| 864 | + |
776 | 865 | .sidebar {
|
777 | 866 | --color-foreground: oklch(0 0 0 / 0.75);
|
778 | 867 |
|
@@ -963,6 +1052,18 @@ p {
|
963 | 1052 | line-height: 1.5rem;
|
964 | 1053 | }
|
965 | 1054 |
|
| 1055 | +.breadcrumb-layout { |
| 1056 | + position: relative; |
| 1057 | + background-color: white; |
| 1058 | + width: calc(100% + 4rem); |
| 1059 | + margin-left: -2rem; |
| 1060 | + padding: 1rem 2rem; |
| 1061 | + |
| 1062 | + .sidebar__mobile__toggle { |
| 1063 | + display: none; |
| 1064 | + } |
| 1065 | +} |
| 1066 | + |
966 | 1067 | .breadcrumb {
|
967 | 1068 | color: oklch(var(--color-foreground));
|
968 | 1069 | text-decoration: none;
|
|
0 commit comments