Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ const config: Config = {
},
{ to: "https://blog.tscircuit.com", label: "Blog", position: "left" },
{
to: "https://tscircuit.com",
label: "Use Online",
to: "https://tscircuit.com/editor",
label: "Try Online",
position: "left",
},

Expand Down
6 changes: 4 additions & 2 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -851,11 +851,13 @@ article h4 {
display: none !important;
}

/* Force center all documentation content */
/* Center the documentation column after hiding the table of contents. */
.col:not(.col--3) {
max-width: 1000px !important;
width: 100%;
max-width: min(100%, 1000px) !important;
margin-left: auto !important;
margin-right: auto !important;
box-sizing: border-box;
}

/* Force section overview to center - using stable attribute selector */
Expand Down
11 changes: 10 additions & 1 deletion src/theme/DocItem/Layout/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
position: relative;
}

.docItemContainer {
width: 100%;
margin-left: auto;
margin-right: auto;
}

.contentHeader {
position: relative;
z-index: 10;
Expand Down Expand Up @@ -40,6 +46,9 @@

@media (min-width: 997px) {
.docItemCol {
max-width: 75% !important;
flex: 0 1 1000px !important;
max-width: min(100%, 1000px) !important;
margin-left: auto;
margin-right: auto;
}
}
Loading