742
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
1 |
@media print {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
2 |
@page { margin: 0; }
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
3 |
body { margin: 1.6cm; }
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
4 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
5 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
6 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
7 |
body {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
8 |
font-family: Calibri, Segoe, "Segoe UI", "Gill Sans", "Gill Sans MT", sans-serif;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
9 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
10 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
11 |
/* It's supposed to look like a tree diagram */
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
12 |
.tree, .tree ul, .tree li {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
13 |
list-style: none;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
14 |
margin: 0;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
15 |
padding: 0;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
16 |
position: relative;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
17 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
18 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
19 |
.tree {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
20 |
margin: 0 0 1em;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
21 |
text-align: center;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
22 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
23 |
.tree, .tree ul {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
24 |
display: table;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
25 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
26 |
.tree ul {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
27 |
width: 100%;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
28 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
29 |
.tree li {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
30 |
display: table-cell;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
31 |
padding: .5em 0;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
32 |
vertical-align: top;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
33 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
34 |
/* _________ */
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
35 |
.tree li:before {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
36 |
outline: solid 1px #666;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
37 |
content: "";
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
38 |
left: 0;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
39 |
position: absolute;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
40 |
right: 0;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
41 |
top: 0;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
42 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
43 |
.tree li:first-child:before {left: 50%;}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
44 |
.tree li:last-child:before {right: 50%;}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
45 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
46 |
.tree code, .tree span {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
47 |
border: solid .1em #666;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
48 |
border-radius: .2em;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
49 |
display: inline-block;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
50 |
margin: 0 .2em .5em;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
51 |
padding: .2em .5em;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
52 |
position: relative;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
53 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
54 |
/* If the tree represents DOM structure */
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
55 |
.tree code {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
56 |
font-family: monaco, Consolas, 'Lucida Console', monospace;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
57 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
58 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
59 |
/* | */
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
60 |
.tree ul:before,
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
61 |
.tree code:before,
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
62 |
.tree span:before {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
63 |
outline: solid 1px #666;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
64 |
content: "";
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
65 |
height: .5em;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
66 |
left: 50%;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
67 |
position: absolute;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
68 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
69 |
.tree ul:before {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
70 |
top: -.5em;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
71 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
72 |
.tree code:before,
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
73 |
.tree span:before {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
74 |
top: -.55em;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
75 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
76 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
77 |
/* The root node doesn't connect upwards */
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
78 |
.tree > li {margin-top: 0;}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
79 |
.tree > li:before,
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
80 |
.tree > li:after,
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
81 |
.tree > li > code:before,
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
82 |
.tree > li > span:before {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
83 |
outline: none;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
84 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
85 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
86 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
87 |
/* Create two equal columns that floats next to each other */
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
88 |
.column {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
89 |
float: left;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
90 |
width: 40%;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
91 |
padding: 10px;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
92 |
}
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
93 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
94 |
/* Clear floats after the columns */
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
95 |
.row:after {
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
96 |
content: "";
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
97 |
display: table;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
98 |
clear: both;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
99 |
}
|