1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00

borderless MiniMetric

This commit is contained in:
Sérgio Ramos 2017-01-11 14:14:26 +00:00
parent 3433c24bee
commit 0b775fb600

View File

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