-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlineage.css
323 lines (273 loc) · 7.59 KB
/
lineage.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
/* stylesheet for the random family tree generator */
body, div#intro {
background:url('images/strange_bullseyes_ltgreen.png');
background-attachment: fixed;
background-color:#dfd;
font-family: 'Open Sans', sans-serif;
}
body {
overflow:auto;
margin:0;
padding:0;
box-sizing:border-box;
}
div#header {
background:url('images/strange_bullseyes_green.png');
background-attachment: fixed;
background-color:#779959;
border-top: 4px solid #5F0003;
font-family: 'Quando', serif;
}
div#header, div#footer, div#content {
width:100%;
padding:5px 20px;
box-sizing:border-box;
}
h1 {
text-align:center;
color:#efe;
}
#instructionsUi {
padding:5px 10px;
margin:5px;
}
#intro {
text-align:left;
border:2px solid #900;
border-radius:5px;
background-color: #dfd;
padding:5px;
margin:5px;
box-sizing:border-box;
}
span.buttonInstruction {
border:1px solid #900;
border-radius:7px;
background-color: #efe;
padding:1px 4px;
margin:2px;
white-space:nowrap;
}
#intro a:link, #intro a:visited,
#instructionsUi a:link, #instructionsUi a:visited,
#footer a:link, #footer a:visited {
text-decoration:none;
color:#900;
}
#intro a:hover, #intro a:active,
#footer a:hover, #footer a:active {color:#f54242;}
.list ul {
margin:3px 0 0 10px;
padding:0;
position:relative;
}
.list li {display:inline;list-style-type:none;}
.list li span {padding:2px 2px 2px 6px;}
.color1 {background-color:#fff;}
.color2 {background-color:#fcc;}
.color3 {background-color:#fc9;}
.color4 {background-color:#ff9;}
.color5 {background-color:#cf9;}
.color6 {background-color:#9f9;}
.color7 {background-color:#9fc;}
.color8 {background-color:#9ff;}
.color9 {background-color:#9cf;}
.color10 {background-color:#99f;}
.color11 {background-color:#c9f;}
.color12 {background-color:#f9f;}
.color13 {background-color:#f99;}
li.spouse:before {
content: "=";
position: absolute;
left:-8px;
top:4px;
color:gray;
}
#lineageUi ul {
padding:2px 4px;
border: 1px dashed #cacaca;
}
#lineageUi ul#person-1 {
border: 0;
}
div#footer {
padding-top:20px;
font-size:10px;
text-align:right;
font-weight: 300;
}
div#lineageUi li span {
padding: 0 3px;
}
div#treeUi {
width: 1000px;
}
div#nameTables table table {border: 2px solid #7ebb9c; border-radius:5px;background-color: #efe;}
div#nameTables table table table {background-color: white;}
div#nameTables table td, div#nameTables table table td {cursor:pointer;vertical-align:top;}
div#nameTables table table table td {cursor:default;}
div#nameTables table.nameList {border: 2px solid #7ebb9c; border-radius:5px;}
div#nameTables table.nameList th {background-color: white;}
div#nameTables table.nameList td {background-color: #efe;}
/* tree style from http://thecodeplayer.com/experiments/css3-family-tree-multiple-parents.html */
.tree * {margin: 0; padding: 0;}
.tree ul {
padding-top: 20px; position: relative;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
transition: all 0.5s;
}
.tree li {
float: left; text-align: center;
list-style-type: none;
position: relative;
padding: 20px 5px 0 5px;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
transition: all 0.5s;
}
/*We will use ::before and ::after to draw the connectors*/
.tree li::before, .tree li::after{
content: '';
position: absolute; top: 0; right: 50%;
border-top: 1px solid #aaa;
width: 50%; height: 45px;
z-index: -1;
}
.tree li::after{
right: auto; left: 50%;
border-left: 1px solid #aaa;
}
/*We need to remove left-right connectors from elements without
any siblings*/
.tree li:only-child::after, .tree li:only-child::before {
display: none;
}
/*Remove space from the top of single children*/
.tree li:only-child{ padding-top: 0;}
/*Remove left connector from first child and
right connector from last child*/
.tree li:first-child::before, .tree li:last-child::after{
border: 0 none;
}
/*Adding back the vertical connector to the last nodes*/
.tree li:last-child::before{
border-right: 1px solid #aaa;
border-radius: 0 5px 0 0;
-webkit-transform: translateX(1px);
-moz-transform: translateX(1px);
transform: translateX(1px);
-webkit-border-radius: 0 5px 0 0;
-moz-border-radius: 0 5px 0 0;
border-radius: 0 5px 0 0;
}
.tree li:first-child::after{
border-radius: 5px 0 0 0;
-webkit-border-radius: 5px 0 0 0;
-moz-border-radius: 5px 0 0 0;
}
/*Time to add downward connectors from parents*/
.tree ul ul::before{
content: '';
position: absolute; top: -12px; left: 50%;
border-left: 1px solid #aaa;
width: 0; height: 32px;
z-index: -1;
}
.tree li a{
border: 1px solid #aaa;
padding: 5px 10px;
text-decoration: none;
color: #444;
font-size: 11px;
display: inline-block;
background: white;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
transition: all 0.5s;
}
.tree li a+a {
margin-left: 20px;
position: relative;
}
.tree li a+a::before {
content: '';
position: absolute;
border-top: 1px solid #aaa;
top: 50%; left: -21px;
width: 20px;
}
/*Time for some hover effects*/
/*We will apply the hover effect the the lineage of the element also*/
.tree li a:hover, .tree li a:hover~ul li a {
background: #c8e4f8!important; color: #000; border: 1px solid #94a0b4;
}
/*Connector styles on hover*/
.tree li a:hover~ul li::after,
.tree li a:hover~ul li::before,
.tree li a:hover~ul::before,
.tree li a:hover~ul ul::before
{
border-color: #94a0b4;
}
/* my additions to the tree style */
/*Keep tree from wrapping using the obvious solution
http://stackoverflow.com/questions/10395016/ */
div.tree {white-space:nowrap;}
div.tree li::before, div.tree li::after,
div.tree li a+a::before {
display:inline-block;
white-space:nowrap;
}
/* color the tree like the list
also needed to make the hover background important above to override. */
.tree li a.color1 {background-color:#fff;}
.tree li a.color2 {background-color:#fcc;}
.tree li a.color3 {background-color:#fc9;}
.tree li a.color4 {background-color:#ff9;}
.tree li a.color5 {background-color:#cf9;}
.tree li a.color6 {background-color:#9f9;}
.tree li a.color7 {background-color:#9fc;}
.tree li a.color8 {background-color:#9ff;}
.tree li a.color9 {background-color:#9cf;}
.tree li a.color10 {background-color:#99f;}
.tree li a.color11 {background-color:#c9f;}
.tree li a.color12 {background-color:#f9f;}
.tree li a.color13 {background-color:#f99;}
.tree li a.male {border-radius: 0px;}
.tree li a.female {border-radius: 13px;}
/* timeline style */
div#timeUi {
position: relative;
}
div#timeUi hr {
border-style: none;
color:gray;
background-color:gray;
}
div.time {
margin: 2px 0;
padding: 0 4px;
overflow: visible;
border: 1px dotted gray;
opacity: 1;
z-index: 5;
}
.time.color1 {background-color:#fff;}
.time.color2 {background-color:#fcc;}
.time.color3 {background-color:#fc9;}
.time.color4 {background-color:#ff9;}
.time.color5 {background-color:#cf9;}
.time.color6 {background-color:#9f9;}
.time.color7 {background-color:#9fc;}
.time.color8 {background-color:#9ff;}
.time.color9 {background-color:#9cf;}
.time.color10 {background-color:#99f;}
.time.color11 {background-color:#c9f;}
.time.color12 {background-color:#f9f;}
.time.color13 {background-color:#f99;}
.time.male {border-radius: 0px;}
.time.female {border-radius: 13px;}