Skip to content

Commit

Permalink
fix(docs): Cap the docs content width.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Jan 28, 2021
1 parent 840f619 commit a374afd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/docs/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
PageSidebar
} from '@patternfly/react-core';
import { createUseStyles } from 'react-jss';
import classnames from 'classnames';
import Link from 'next/link';
import Navigation from '../navigation';
import HeaderTools from './header-tools';
Expand All @@ -16,6 +17,17 @@ const useStyles = createUseStyles({
},
logo: {
width: 100
},
content: {
marginLeft: 'initial',
marginRight: 'initial'
},
'@media (min-width: 1200px)': {
content: {
width: 900,
marginLeft: 'auto',
marginRight: 'auto'
}
}
});

Expand All @@ -38,7 +50,7 @@ const Layout = ({ children }) => {
const Sidebar = <PageSidebar nav={<Navigation />} isNavOpen={isOpen} />;
return (
<Page className={classes.page} header={Header} sidebar={Sidebar}>
<div className="pf-u-p-md">
<div className={classnames('pf-u-p-md', classes.content)}>
{children}
</div>
</Page>
Expand Down

0 comments on commit a374afd

Please sign in to comment.