Skip to content

Commit

Permalink
🎨 add spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnath committed May 17, 2024
1 parent 1d29068 commit 642a75a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
width: 100%;
background: var(--color-background);
color: var(--color-primary);
padding: var(--spacing);
}

@media (prefers-color-scheme: dark) {
Expand Down
11 changes: 11 additions & 0 deletions src/web-component.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,17 @@ export const SectionTitles = {
}
}

export const Contained = {
render: (args) =>
html`<div style="margin: 0 auto; width: 100%; max-width: ${args.maxwidth || 52}em;">
<json-resume .resumejson="${args.resumejson}" preordered="${args.preordered}"></json-resume></div>
`,
args: {
resumejson: changeSummary('This resume is boxed into a container'),
preordered: true,
},
}

export const Slots = {
render: (args) =>
html`<json-resume .resumejson="${args.resumejson}" preordered="${args.preordered}">
Expand Down

0 comments on commit 642a75a

Please sign in to comment.