1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-11 05:40:11 +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
} = 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)};