summaryrefslogtreecommitdiff
path: root/src/components/container.js
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2019-01-10 15:42:12 -0800
committerNick Van Doorn <vandoorn.nick@gmail.com>2019-01-10 15:42:12 -0800
commite4208cbe44a1702213de876ef100de1185d8dd2b (patch)
tree09bbbad79daec6dfbf1bae823755736d9febf05c /src/components/container.js
parentc562d85ee2ba06dd4e9c68e0efa746db5f165861 (diff)
Use unit from global definition
Diffstat (limited to 'src/components/container.js')
-rw-r--r--src/components/container.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/container.js b/src/components/container.js
index 5b4aad8..4ccd822 100644
--- a/src/components/container.js
+++ b/src/components/container.js
@@ -6,18 +6,18 @@ const mq = breakpoints
.map(
({ breakpoint, size }) => `
@media (min-width: ${breakpoint}px) {
- width: ${size}px;
+ width: ${size};
}
`
)
.join('\n')
-const containerStyle = css(`
+const containerStyle = css`
display: block;
margin: 0 auto;
padding: ${margins.lg}px 0;
width: 93%;
${mq}
-`)
+`
export const Container = p => <div className={containerStyle}>{p.children}</div>