Skip to content

Commit

Permalink
refactor: define and use global bernhard-grid css class
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinstadler committed Sep 12, 2024
1 parent b2d6984 commit 399a74d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/main-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface MainContentProps {
}

export function MainContent(props: MainContentProps): ReactNode {
const { children, className = "grid grid-cols-[25%_75%]" } = props;
const { children, className = "bernhard-grid" } = props;

return (
<main className="container max-w-screen-lg p-8" id={id} tabIndex={-1}>
Expand Down
5 changes: 5 additions & 0 deletions styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,8 @@ textarea {
--tw-prose-th-borders: var(--color-neutral-600);
--tw-prose-td-borders: var(--color-neutral-700);
}

.bernhard-grid {
/* @apply container max-w-screen-lg p-8; */
@apply grid grid-cols-[25%_75%];
}

0 comments on commit 399a74d

Please sign in to comment.