120 lines
2.2 KiB
JavaScript
Raw Normal View History

import styled, { css } from 'styled-components';
const Checked = styled.div`
padding-top: 20px;
line-height: 54px;
position: relative;
> div {
height: 14px;
width: 14px;
margin-right: 10px;
background-color: #2dd210;
border: 1px solid rgba(16, 22, 34, 0.1);
border-radius: 3px;
&:after {
content: '\f00c';
position: absolute;
top: 0;
left: 2px;
font-size: 10px;
font-family: 'FontAwesome';
font-weight: 100;
color: #fff;
transition: all 0.2s;
}
}
`;
const StyledLi = styled.li`
2018-02-19 13:10:35 +01:00
height: 54px;
background-color: #fff;
padding-top: 5px;
cursor: pointer;
2018-02-16 17:19:57 +01:00
${({ withCopyStyle }) => {
if (withCopyStyle) {
return css`
background-color: #fafafb;
> div {
display: flex;
width: 100%;
justify-content: center;
padding-top: 1px;
text-align: center;
color: #868fa1;
font-size: 12px;
font-weight: 500;
line-height: 54px;
text-transform: uppercase;
letter-spacing: 0.05rem;
}
`;
}
return '';
}}
`;
const Truncate = styled.div`
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
`;
const Wrapper = styled.div`
2018-02-16 17:19:57 +01:00
display: flex;
2018-02-19 13:10:35 +01:00
height: 100%;
2018-03-06 14:02:56 +01:00
padding-left: 12px;
padding-right: 12px;
2018-03-06 15:49:11 +01:00
margin-left: 20px;
margin-right: 20px;
line-height: 48px;
border-bottom: 1px solid rgba(14, 22, 34, 0.04);
2018-02-22 18:24:17 +01:00
justify-content: space-between;
2018-02-19 13:10:35 +01:00
2018-02-16 17:19:57 +01:00
> div:first-child {
2018-02-23 12:21:57 +01:00
display: flex;
width: 133px;
> div:first-child {
width: 51px;
}
> div:last-child {
width: 82px;
}
2018-02-16 17:19:57 +01:00
}
2018-02-23 12:21:57 +01:00
2018-02-16 17:19:57 +01:00
> div:nth-child(2) {
2018-02-23 12:21:57 +01:00
width: calc(100% - 696px);
padding-right: 20px;
2018-02-16 17:19:57 +01:00
}
> div:nth-child(3) {
2018-02-23 12:21:57 +01:00
width: calc(100% - 596px);
2018-02-16 17:19:57 +01:00
}
> div:nth-child(4) {
2018-02-22 18:24:17 +01:00
width: 184px;
2018-02-23 12:21:57 +01:00
flex-shrink: 0;
2018-02-16 17:19:57 +01:00
> span {
&:after {
content: '\f0d8';
margin-left: 10px;
font-family: 'FontAwesome';
}
}
}
2018-02-23 12:21:57 +01:00
> div:nth-child(5) {
flex-shrink: 0;
2018-02-22 18:24:17 +01:00
width: 100px;
2018-02-16 17:19:57 +01:00
}
2018-02-23 12:21:57 +01:00
> div:nth-child(6) {
2018-02-22 18:24:17 +01:00
width: 147px;
2018-02-23 12:21:57 +01:00
flex-shrink: 0;
}
2018-02-23 12:21:57 +01:00
> div:nth-child(7) {
2018-02-22 18:24:17 +01:00
width: 116px;
2018-02-23 12:21:57 +01:00
flex-shrink: 0;
2018-02-16 17:19:57 +01:00
}
`;
2018-02-19 13:10:35 +01:00
export { Checked, StyledLi, Truncate, Wrapper };