Skip to content

Commit 642a75a

Browse files
committed
🎨 add spacing
1 parent 1d29068 commit 642a75a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
width: 100%;
6060
background: var(--color-background);
6161
color: var(--color-primary);
62+
padding: var(--spacing);
6263
}
6364

6465
@media (prefers-color-scheme: dark) {

src/web-component.stories.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,17 @@ export const SectionTitles = {
9898
}
9999
}
100100

101+
export const Contained = {
102+
render: (args) =>
103+
html`<div style="margin: 0 auto; width: 100%; max-width: ${args.maxwidth || 52}em;">
104+
<json-resume .resumejson="${args.resumejson}" preordered="${args.preordered}"></json-resume></div>
105+
`,
106+
args: {
107+
resumejson: changeSummary('This resume is boxed into a container'),
108+
preordered: true,
109+
},
110+
}
111+
101112
export const Slots = {
102113
render: (args) =>
103114
html`<json-resume .resumejson="${args.resumejson}" preordered="${args.preordered}">

0 commit comments

Comments
 (0)