This repository has been archived by the owner on May 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
styles.js
73 lines (64 loc) · 1.95 KB
/
styles.js
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import styled from 'styled-components';
import './index.css';
export const ClauseWrapper = styled.div`
margin: 10px -10px;
display: grid;
grid-template-columns: 10px 375px 1fr 25px 25px 25px 10px;
grid-template-rows: 11px 11px 1fr;
grid-template-areas: "one two three four five six seven"
"eight nine ten eleven twelve thirteen fourteen"
"fifteen sixteen seventeen eighteen nineteen twenty twentyone";
`;
export const ClauseBackground = styled.div`
background-color: ${props => props.clausebg || '#ECF0FA'};
border: 1px solid ${props => props.clauseborder || '#19C6C7'};
border-radius: 3px;
grid-area: eight / eight / twentyone / twentyone;
`;
export const ClauseHeader = styled.div`
visibility: ${props => (props.currentHover ? 'visible' : 'hidden')};
font-family: ${props => props.headerfont || 'Graphik'};
grid-area: two / two / ten / ten;
transition-duration: 0.5s;
background: linear-gradient(180deg, #FFFFFF 0%, #ECF0FA 100%);
align-self: center;
justify-self: start;
margin: 6px 0;
padding: 3px;
color: #939EBA;
line-height: 14px;
font-size: 14px;
font-weight: 600;
`;
export const ClauseBody = styled.div`
font-family: ${props => props.bodyfont || 'Graphik'};
grid-area: sixteen / sixteen / twenty / twenty;
margin: 2px 0 10px;
color: #141F3C;
font-size: 1em;
line-height: 22px;
`;
export const DeleteWrapper = styled.div`
visibility: ${props => (props.currentHover ? 'visible' : 'hidden')};
background: linear-gradient(180deg, #FFFFFF 0%, #ECF0FA 100%);
grid-area: six / six / thirteen / thirteen;
padding: 2px;
place-self: center;
transition-duration: 0.5s;
`;
export const ClauseDelete = styled.svg`
fill: #939EBA;
cursor: pointer;
&:hover {
fill: ${props => props.clausedelete || '#19C6C7'};
}
`;
export const ClauseAdd = styled.svg`
fill: #46608E;
cursor: pointer;
grid-area: editIcon;
place-self: center;
&:hover {
fill: #FFFFFF;
}
`;