File size: 710 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
// @flow
import theme from 'shared/theme';
import React from 'react';
import compose from 'recompose/compose';
import styled from 'styled-components';
import { FlexCol } from '../globals';
import { MEDIA_BREAK } from 'src/components/layout';
const StyledCard = styled(FlexCol)`
background: ${theme.bg.default};
position: relative;
width: 100%;
max-width: 100%;
background-clip: padding-box;
overflow: visible;
flex: none;
@media (max-width: ${MEDIA_BREAK}px) {
border-radius: 0;
box-shadow: none;
}
`;
const CardPure = (props: Object): React$Element<any> => (
<StyledCard {...props}>{props.children}</StyledCard>
);
export const Card = compose()(CardPure);
export default Card;
|