borderless MiniMetric

This commit is contained in:
Sérgio Ramos 2017-01-11 14:14:26 +00:00
parent 3433c24bee
commit 0b775fb600
1 changed files with 6 additions and 1 deletions

View File

@ -15,15 +15,20 @@ const {
default: styled
} = Styled;
const border = (props) => !props.borderless
? `solid ${remcalc(1)} ${colors.borderSecondary}`
: 'none';
const Container = styled.div`
position: relative;
height: 100%;
width: 100%;
background-color: ${colors.miniBackground};
border: solid ${remcalc(1)} ${colors.borderSecondary};
border: ${border};
`;
const Shadow = styled.div`
z-index: 1;
position: absolute;
height: 100%;
width: ${remcalc(9)};