blob: f791a6b5b5108db2d80f0ab6e06cd6a0391d8537 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import React from 'react'
import { css } from '@emotion/core'
const splitSyle = ({ breakpoints, margins }) => css`
display: flex;
flex-wrap: wrap;
justify-content: space-between;
@media (min-width: ${breakpoints[0].breakpoint}) {
flex-wrap: nowrap;
}
> *:first-of-type {
margin-right: ${margins.md}px;
}
`
export const SplitContainer = ({ children }) => (
<div css={splitSyle}>{children}</div>
)
|