2017-09-27 17:44:57 +03:00
|
|
|
import is from 'styled-is';
|
2017-09-07 19:28:56 +03:00
|
|
|
import { Grid } from 'react-styled-flexboxgrid';
|
|
|
|
import remcalc from 'remcalc';
|
2017-09-20 12:30:53 +03:00
|
|
|
|
|
|
|
import { styled as breakpoints } from '../breakpoints';
|
2017-09-07 19:28:56 +03:00
|
|
|
|
|
|
|
export default Grid.extend`
|
2017-11-16 12:47:32 +02:00
|
|
|
max-width: ${remcalc(1000)};
|
|
|
|
|
2017-09-20 12:30:53 +03:00
|
|
|
${breakpoints.smallOnly`
|
|
|
|
padding-left: ${remcalc(6)};
|
|
|
|
padding-right: ${remcalc(6)};
|
|
|
|
`};
|
|
|
|
|
|
|
|
${is('main')`
|
|
|
|
padding-bottom: ${remcalc(18)};
|
|
|
|
`};
|
|
|
|
|
2017-09-07 19:28:56 +03:00
|
|
|
${is('center')`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
justify-content: center;
|
|
|
|
align-content: center;
|
|
|
|
align-items: center;
|
|
|
|
`};
|
|
|
|
`;
|