|
1 | 1 | /* Fix wide mode layout to allow content to expand into TOC area */ |
2 | 2 |
|
3 | | -/* Override the xl:w-[calc(100%-19rem)] constraint on content area */ |
| 3 | +/* Override the xl:w-[calc(100%-19rem)] Tailwind constraint */ |
4 | 4 | @media (min-width: 1280px) { |
5 | | - html[data-page-mode="wide"] #content-area { |
| 5 | + html[data-page-mode="wide"] div#content-area, |
| 6 | + html[data-page-mode="wide"] #content-area.relative { |
6 | 7 | width: 100% !important; |
7 | | - max-width: 96rem !important; /* 6xl = 1536px */ |
| 8 | + max-width: 100% !important; |
8 | 9 | min-width: 100% !important; |
9 | 10 | } |
| 11 | + |
| 12 | + /* Adjust padding to account for sidebar */ |
| 13 | + html[data-page-mode="wide"] div#content-area { |
| 14 | + padding-right: 3rem !important; |
| 15 | + } |
10 | 16 | } |
11 | 17 |
|
12 | | -/* Ensure the main content container uses full width in wide mode */ |
13 | | -html[data-page-mode="wide"] #content-container { |
14 | | - max-width: 100% !important; |
15 | | -} |
16 | | - |
| 18 | +/* Ensure the content container expands fully */ |
| 19 | +html[data-page-mode="wide"] #content-container, |
17 | 20 | html[data-page-mode="wide"] .mdx-content { |
18 | 21 | max-width: 100% !important; |
| 22 | + width: 100% !important; |
19 | 23 | } |
20 | 24 |
|
21 | 25 | /* Allow tables in wide mode to use full available width */ |
22 | | -html[data-page-mode="wide"] [data-table-wrapper="true"] { |
23 | | - max-width: none !important; |
24 | | -} |
25 | | - |
26 | | -html[data-page-mode="wide"] [data-table-wrapper="true"] > div { |
| 26 | +html[data-page-mode="wide"] [data-table-wrapper="true"], |
| 27 | +html[data-page-mode="wide"] [data-table-wrapper="true"] > div, |
| 28 | +html[data-page-mode="wide"] [data-table-wrapper="true"] .table { |
27 | 29 | max-width: none !important; |
| 30 | + width: 100% !important; |
28 | 31 | } |
29 | 32 |
|
30 | 33 | html[data-page-mode="wide"] [data-table-wrapper="true"] table { |
31 | 34 | width: 100% !important; |
32 | 35 | max-width: none !important; |
| 36 | + table-layout: auto !important; |
33 | 37 | } |
34 | 38 |
|
0 commit comments