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
23 changes: 17 additions & 6 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,14 @@ body {
box-sizing: border-box;
}

@media (min-width: 997px) {
.doc-section-subtitle {
max-width: 1000px;
margin-left: clamp(2rem, 5vw, 5rem);
margin-right: auto;
}
}

@media (max-width: 768px) {
.doc-section-subtitle {
padding-left: 2rem;
Expand Down Expand Up @@ -851,11 +859,14 @@ article h4 {
display: none !important;
}

/* Force center all documentation content */
.col:not(.col--3) {
max-width: 1000px !important;
margin-left: auto !important;
margin-right: auto !important;
@media (min-width: 997px) {
main[class*="docMainContainer"]
> .container.padding-top--md.padding-bottom--lg {
width: 100% !important;
max-width: none !important;
margin-left: 0 !important;
margin-right: 0 !important;
}
}

/* Force section overview to center - using stable attribute selector */
Expand Down Expand Up @@ -899,7 +910,7 @@ article h4 {
article
)[class*="generatedIndexPage"] {
max-width: 1000px !important;
margin-left: auto !important;
margin-left: clamp(2rem, 5vw, 5rem) !important;
margin-right: auto !important;
width: 1000px !important;
}
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocItem/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function DocItemLayout({ children }: Props): ReactNode {
const { metadata } = useDoc()
return (
<div className="row">
<div className={clsx("col", !docTOC.hidden && styles.docItemCol)}>
<div className={clsx("col", styles.docItemCol)}>
<ContentVisibility metadata={metadata} />
<DocVersionBanner />
<div className={styles.docItemContainer}>
Expand Down
18 changes: 17 additions & 1 deletion src/theme/DocItem/Layout/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
margin-top: 0;
}

:global(.col).docItemCol {
max-width: 100% !important;
margin-left: 0 !important;
margin-right: 0 !important;
}

.docItemContainer {
width: 100%;
max-width: 1000px;
}

.docItemWithButton {
position: relative;
}
Expand Down Expand Up @@ -40,6 +51,11 @@

@media (min-width: 997px) {
.docItemCol {
max-width: 75% !important;
flex: 1 1 auto;
}

.docItemContainer {
margin-left: clamp(2rem, 5vw, 5rem);
margin-right: auto;
}
}
Loading