-
Notifications
You must be signed in to change notification settings - Fork 5
/
graph.css
81 lines (66 loc) · 1.19 KB
/
graph.css
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
74
75
76
77
78
79
80
81
/* Page Layout */
html, body {
height: 100%;
margin: 0px;
padding: 0px;
}
.graph {
display: block;
width: 100%;
height: 80%;
}
.graph > svg {
width: 100%;
height: 100%;
}
.controls {
width: 100%;
height: 20%;
background: #EEE;
color: #644;
}
/* Graph styling */
.person > circle {
fill: hsla(168, 50%, 50%, 0.6);
}
.person > text {
font-family: 'Wellfleet', sans-serif;
font-weight: bold;
font-size: 0.8em;
cursor: default;
}
.relationship {
stroke-width: 5px;
stroke-dasharray: 15, 15;
animation: relationshipDirection 2s linear infinite;
-webkit-animation: relationshipDirection 2s linear infinite;
}
/* Stroke animation */
@keyframes relationshipDirection {
from {stroke-dashoffset: 0;}
to {stroke-dashoffset: 30;}
}
@-webkit-keyframes relationshipDirection {
from {stroke-dashoffset: 0;}
to {stroke-dashoffset: 30;}
}
/* Controls Styling */
.controls {
font-family: 'Wellfleet', sans-serif;
}
.controls > h1 {
margin-top: 0px;
}
.legend-section {
padding: 10px;
}
.legend-section > h2 {
margin-top: 0px;
}
.legend .colour-key,
.legend input[type='checkbox'] {
display: inline-block;
width: 20px;
height: 20px;
margin-right: 4px;
}