Commit 2099be2
committed
Fix left nav: hide on homepage, center layout with max-width
1. Only render the left nav + docs-layout wrapper on non-homepage pages.
The landing page renders without the sidebar.
2. Add max-width: 84rem and margin: 0 auto to .docs-layout so the entire
three-column layout (left-nav + content + toc) is centered on the page
rather than pinned to the screen edge.1 parent 0a574e8 commit 2099be2
2 files changed
Lines changed: 17 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
765 | 768 | | |
766 | 769 | | |
767 | 770 | | |
| |||
775 | 778 | | |
776 | 779 | | |
777 | 780 | | |
778 | | - | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
779 | 784 | | |
780 | 785 | | |
781 | 786 | | |
782 | 787 | | |
783 | | - | |
| 788 | + | |
784 | 789 | | |
785 | 790 | | |
786 | | - | |
| 791 | + | |
787 | 792 | | |
788 | 793 | | |
789 | 794 | | |
790 | | - | |
| 795 | + | |
791 | 796 | | |
792 | 797 | | |
793 | 798 | | |
794 | 799 | | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | 800 | | |
800 | 801 | | |
801 | 802 | | |
| |||
914 | 915 | | |
915 | 916 | | |
916 | 917 | | |
| 918 | + | |
917 | 919 | | |
918 | 920 | | |
| 921 | + | |
919 | 922 | | |
920 | 923 | | |
921 | 924 | | |
| |||
0 commit comments