Skip to content

Commit f097197

Browse files
committed
claude's attempt at fixing wide mode
1 parent 3b0ebbd commit f097197

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

docs/custom.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* Fix wide mode layout to allow content to expand into TOC area */
2+
3+
/* Override the xl:w-[calc(100%-19rem)] constraint on content area */
4+
@media (min-width: 1280px) {
5+
html[data-page-mode="wide"] #content-area {
6+
width: 100% !important;
7+
max-width: 96rem !important; /* 6xl = 1536px */
8+
min-width: 100% !important;
9+
}
10+
}
11+
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+
17+
html[data-page-mode="wide"] .mdx-content {
18+
max-width: 100% !important;
19+
}
20+
21+
/* 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 {
27+
max-width: none !important;
28+
}
29+
30+
html[data-page-mode="wide"] [data-table-wrapper="true"] table {
31+
width: 100% !important;
32+
max-width: none !important;
33+
}
34+

docs/docs.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,9 @@
221221
"x": "https://twitter.com/litprotocol",
222222
"discord": "https://litgateway.com/discord"
223223
}
224-
}
224+
},
225+
"styling": {
226+
"codeblocks": "system"
227+
},
228+
"customCSS": "/custom.css"
225229
}

0 commit comments

Comments
 (0)