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
11 changes: 6 additions & 5 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
:root {
--ifm-font-family-base: "Google Sans", system-ui, -apple-system, sans-serif;
--ifm-heading-font-family: "Google Sans", system-ui, -apple-system, sans-serif;
--doc-content-max-width: 1100px;
--ifm-color-primary: #1877f2;
--ifm-color-primary-dark: #166bda;
--ifm-color-primary-darker: #1564ce;
Expand Down Expand Up @@ -746,10 +747,10 @@ body {
line-height: 1.2;
text-align: left;
white-space: nowrap;
max-width: 970px;
max-width: var(--doc-content-max-width);
margin-left: auto;
margin-right: auto;
padding-left: 4rem;
padding-left: 2rem;
padding-right: 2rem;
box-sizing: border-box;
}
Expand Down Expand Up @@ -853,7 +854,7 @@ article h4 {

/* Force center all documentation content */
.col:not(.col--3) {
max-width: 1000px !important;
max-width: var(--doc-content-max-width) !important;
margin-left: auto !important;
margin-right: auto !important;
}
Expand Down Expand Up @@ -898,10 +899,10 @@ article h4 {
div,
article
)[class*="generatedIndexPage"] {
max-width: 1000px !important;
max-width: var(--doc-content-max-width) !important;
margin-left: auto !important;
margin-right: auto !important;
width: 1000px !important;
width: var(--doc-content-max-width) !important;
}
}

Expand Down
3 changes: 1 addition & 2 deletions src/theme/DocItem/Layout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { type ReactNode } from "react"
import clsx from "clsx"
import { useWindowSize } from "@docusaurus/theme-common"
import { useDoc } from "@docusaurus/plugin-content-docs/client"
import DocItemPaginator from "@theme/DocItem/Paginator"
Expand Down Expand Up @@ -45,7 +44,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="col">
<ContentVisibility metadata={metadata} />
<DocVersionBanner />
<div className={styles.docItemContainer}>
Expand Down
6 changes: 0 additions & 6 deletions src/theme/DocItem/Layout/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,3 @@
margin-bottom: 0.75rem;
}
}

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